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. 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 26