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