xref: /linux-6.15/lib/kunit/Makefile (revision 51104c19)
19fe124bfSAlan Maguireobj-$(CONFIG_KUNIT) +=			kunit.o
29fe124bfSAlan Maguire
39fe124bfSAlan Maguirekunit-objs +=				test.o \
4cdebea69SDaniel Latypov					resource.o \
5*51104c19SKees 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 \
11d03c720eS[email protected]					attributes.o \
12d03c720eS[email protected]					device.o
13d8e2a76bSBrendan Higgins
14e2219db2SAlan Maguireifeq ($(CONFIG_KUNIT_DEBUGFS),y)
15e2219db2SAlan Maguirekunit-objs +=				debugfs.o
16e2219db2SAlan Maguireendif
17e2219db2SAlan Maguire
187170b7edSDavid Gow# KUnit 'hooks' are built-in even when KUnit is built as a module.
1932ff6831SDavid Gowobj-y +=				hooks.o
207170b7edSDavid Gow
21c475c77dSAlan Maguireobj-$(CONFIG_KUNIT_TEST) +=		kunit-test.o
22d8e2a76bSBrendan Higgins
23c475c77dSAlan Maguire# string-stream-test compiles built-in only.
24c475c77dSAlan Maguireifeq ($(CONFIG_KUNIT_TEST),y)
25c475c77dSAlan Maguireobj-$(CONFIG_KUNIT_TEST) +=		string-stream-test.o
262c7afc2aSIvan Orlovobj-$(CONFIG_KUNIT_TEST) +=		assert_test.o
27c475c77dSAlan Maguireendif
28c475c77dSAlan Maguire
29c475c77dSAlan Maguireobj-$(CONFIG_KUNIT_EXAMPLE_TEST) +=	kunit-example-test.o
30