xref: /openbmc/linux/lib/kunit/Makefile (revision cdebea69)
19fe124bfSAlan Maguireobj-$(CONFIG_KUNIT) +=			kunit.o
29fe124bfSAlan Maguire
39fe124bfSAlan Maguirekunit-objs +=				test.o \
4*cdebea69SDaniel Latypov					resource.o \
56b229e59SBrendan Higgins					string-stream.o \
65f3e0620SBrendan Higgins					assert.o \
7aac35468SAlan Maguire					try-catch.o \
8aac35468SAlan Maguire					executor.o
9d8e2a76bSBrendan Higgins
10e2219db2SAlan Maguireifeq ($(CONFIG_KUNIT_DEBUGFS),y)
11e2219db2SAlan Maguirekunit-objs +=				debugfs.o
12e2219db2SAlan Maguireendif
13e2219db2SAlan Maguire
14c475c77dSAlan Maguireobj-$(CONFIG_KUNIT_TEST) +=		kunit-test.o
15d8e2a76bSBrendan Higgins
16c475c77dSAlan Maguire# string-stream-test compiles built-in only.
17c475c77dSAlan Maguireifeq ($(CONFIG_KUNIT_TEST),y)
18c475c77dSAlan Maguireobj-$(CONFIG_KUNIT_TEST) +=		string-stream-test.o
19c475c77dSAlan Maguireendif
20c475c77dSAlan Maguire
21c475c77dSAlan Maguireobj-$(CONFIG_KUNIT_EXAMPLE_TEST) +=	kunit-example-test.o
22