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 platform.o \ 14 fwnode.o \ 15 bug.o 16 17ifeq ($(CONFIG_KUNIT_DEBUGFS),y) 18kunit-objs += debugfs.o 19endif 20 21# KUnit 'hooks' are built-in even when KUnit is built as a module. 22obj-$(if $(CONFIG_KUNIT),y) += hooks.o 23 24obj-$(CONFIG_KUNIT_TEST) += kunit-test.o 25obj-$(CONFIG_KUNIT_TEST) += platform-test.o 26obj-$(CONFIG_KUNIT_TEST) += backtrace-suppression-test.o 27 28# string-stream-test compiles built-in only. 29ifeq ($(CONFIG_KUNIT_TEST),y) 30obj-$(CONFIG_KUNIT_TEST) += string-stream-test.o 31obj-$(CONFIG_KUNIT_TEST) += assert_test.o 32endif 33 34obj-$(CONFIG_KUNIT_EXAMPLE_TEST) += kunit-example-test.o 35