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