1obj-$(CONFIG_KUNIT) +=			kunit.o
2
3kunit-objs +=				test.o \
4					resource.o \
5					static_stub.o \
6					string-stream.o \
7					assert.o \
8					try-catch.o \
9					executor.o \
10					attributes.o \
11					device.o
12
13ifeq ($(CONFIG_KUNIT_DEBUGFS),y)
14kunit-objs +=				debugfs.o
15endif
16
17# KUnit 'hooks' are built-in even when KUnit is built as a module.
18obj-y +=				hooks.o
19
20obj-$(CONFIG_KUNIT_TEST) +=		kunit-test.o
21
22# string-stream-test compiles built-in only.
23ifeq ($(CONFIG_KUNIT_TEST),y)
24obj-$(CONFIG_KUNIT_TEST) +=		string-stream-test.o
25endif
26
27obj-$(CONFIG_KUNIT_EXAMPLE_TEST) +=	kunit-example-test.o
28