xref: /linux/lib/kunit/Makefile (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
19fe124bfSAlan Maguireobj-$(CONFIG_KUNIT) +=			kunit.o
29fe124bfSAlan Maguire
39fe124bfSAlan Maguirekunit-objs +=				test.o \
4cdebea69SDaniel Latypov					resource.o \
551104c19SKees Cook					user_alloc.o \
6e047c5eaSDavid Gow					static_stub.o \
76b229e59SBrendan Higgins					string-stream.o \
85f3e0620SBrendan Higgins					assert.o \
9aac35468SAlan Maguire					try-catch.o \
1039e92cb1SRae Moar					executor.o \
11d03c720eSdavidgow@google.com					attributes.o \
12*5ac79730SStephen Boyd					device.o \
13*5ac79730SStephen Boyd					platform.o
14d8e2a76bSBrendan Higgins
15e2219db2SAlan Maguireifeq ($(CONFIG_KUNIT_DEBUGFS),y)
16e2219db2SAlan Maguirekunit-objs +=				debugfs.o
17e2219db2SAlan Maguireendif
18e2219db2SAlan Maguire
197170b7edSDavid Gow# KUnit 'hooks' are built-in even when KUnit is built as a module.
2032ff6831SDavid Gowobj-y +=				hooks.o
217170b7edSDavid Gow
22c475c77dSAlan Maguireobj-$(CONFIG_KUNIT_TEST) +=		kunit-test.o
23*5ac79730SStephen Boydobj-$(CONFIG_KUNIT_TEST) +=		platform-test.o
24d8e2a76bSBrendan Higgins
25c475c77dSAlan Maguire# string-stream-test compiles built-in only.
26c475c77dSAlan Maguireifeq ($(CONFIG_KUNIT_TEST),y)
27c475c77dSAlan Maguireobj-$(CONFIG_KUNIT_TEST) +=		string-stream-test.o
282c7afc2aSIvan Orlovobj-$(CONFIG_KUNIT_TEST) +=		assert_test.o
29c475c77dSAlan Maguireendif
30c475c77dSAlan Maguire
31c475c77dSAlan Maguireobj-$(CONFIG_KUNIT_EXAMPLE_TEST) +=	kunit-example-test.o
32