1obj-$(CONFIG_KUNIT) += kunit.o 2 3kunit-objs += test.o \ 4 resource.o \ 5 user_alloc.o \ 6 static_stub.o \ 7 string-stream.o \ 8 assert.o \ 9 try-catch.o \ 10 executor.o \ 11 attributes.o \ 12 device.o 13 14ifeq ($(CONFIG_KUNIT_DEBUGFS),y) 15kunit-objs += debugfs.o 16endif 17 18# KUnit 'hooks' are built-in even when KUnit is built as a module. 19obj-y += hooks.o 20 21obj-$(CONFIG_KUNIT_TEST) += kunit-test.o 22 23# string-stream-test compiles built-in only. 24ifeq ($(CONFIG_KUNIT_TEST),y) 25obj-$(CONFIG_KUNIT_TEST) += string-stream-test.o 26obj-$(CONFIG_KUNIT_TEST) += assert_test.o 27endif 28 29obj-$(CONFIG_KUNIT_EXAMPLE_TEST) += kunit-example-test.o 30