Linux 6.7-rc7
[linux-modified.git] / lib / kunit / Makefile
1 obj-$(CONFIG_KUNIT) +=                  kunit.o
2
3 kunit-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
12 ifeq ($(CONFIG_KUNIT_DEBUGFS),y)
13 kunit-objs +=                           debugfs.o
14 endif
15
16 # KUnit 'hooks' are built-in even when KUnit is built as a module.
17 obj-y +=                                hooks.o
18
19 obj-$(CONFIG_KUNIT_TEST) +=             kunit-test.o
20
21 # string-stream-test compiles built-in only.
22 ifeq ($(CONFIG_KUNIT_TEST),y)
23 obj-$(CONFIG_KUNIT_TEST) +=             string-stream-test.o
24 endif
25
26 obj-$(CONFIG_KUNIT_EXAMPLE_TEST) +=     kunit-example-test.o