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
12ifeq ($(CONFIG_KUNIT_DEBUGFS),y)
13kunit-objs +=				debugfs.o
14endif
15
16# KUnit 'hooks' are built-in even when KUnit is built as a module.
17obj-y +=				hooks.o
18
19obj-$(CONFIG_KUNIT_TEST) +=		kunit-test.o
20
21# string-stream-test compiles built-in only.
22ifeq ($(CONFIG_KUNIT_TEST),y)
23obj-$(CONFIG_KUNIT_TEST) +=		string-stream-test.o
24endif
25
26obj-$(CONFIG_KUNIT_EXAMPLE_TEST) +=	kunit-example-test.o
27