xref: /openbmc/linux/lib/kunit/Makefile (revision 39e92cb1)
19fe124bfSAlan Maguireobj-$(CONFIG_KUNIT) +=			kunit.o
29fe124bfSAlan Maguire
39fe124bfSAlan Maguirekunit-objs +=				test.o \
4cdebea69SDaniel Latypov					resource.o \
5e047c5eaSDavid Gow					static_stub.o \
66b229e59SBrendan Higgins					string-stream.o \
75f3e0620SBrendan Higgins					assert.o \
8aac35468SAlan Maguire					try-catch.o \
9*39e92cb1SRae Moar					executor.o \
10*39e92cb1SRae Moar					attributes.o
11d8e2a76bSBrendan Higgins
12e2219db2SAlan Maguireifeq ($(CONFIG_KUNIT_DEBUGFS),y)
13e2219db2SAlan Maguirekunit-objs +=				debugfs.o
14e2219db2SAlan Maguireendif
15e2219db2SAlan Maguire
167170b7edSDavid Gow# KUnit 'hooks' are built-in even when KUnit is built as a module.
1732ff6831SDavid Gowobj-y +=				hooks.o
187170b7edSDavid Gow
19c475c77dSAlan Maguireobj-$(CONFIG_KUNIT_TEST) +=		kunit-test.o
20d8e2a76bSBrendan Higgins
21c475c77dSAlan Maguire# string-stream-test compiles built-in only.
22c475c77dSAlan Maguireifeq ($(CONFIG_KUNIT_TEST),y)
23c475c77dSAlan Maguireobj-$(CONFIG_KUNIT_TEST) +=		string-stream-test.o
24c475c77dSAlan Maguireendif
25c475c77dSAlan Maguire
26c475c77dSAlan Maguireobj-$(CONFIG_KUNIT_EXAMPLE_TEST) +=	kunit-example-test.o
27