Files

32 lines
743 B
Makefile
Raw Permalink Normal View History

2020-01-06 22:28:22 +00:00
obj-$(CONFIG_KUNIT) += kunit.o
kunit-objs += test.o \
resource.o \
user_alloc.o \
static_stub.o \
2019-09-23 02:02:34 -07:00
string-stream.o \
2019-09-23 02:02:39 -07:00
assert.o \
try-catch.o \
2023-07-25 21:25:12 +00:00
executor.o \
2023-12-15 15:39:08 +08:00
attributes.o \
device.o \
platform.o
2019-09-23 02:02:37 -07:00
ifeq ($(CONFIG_KUNIT_DEBUGFS),y)
kunit-objs += debugfs.o
endif
# KUnit 'hooks' are built-in even when KUnit is built as a module.
obj-$(if $(CONFIG_KUNIT),y) += hooks.o
obj-$(CONFIG_KUNIT_TEST) += kunit-test.o
obj-$(CONFIG_KUNIT_TEST) += platform-test.o
2019-09-23 02:02:37 -07:00
# string-stream-test compiles built-in only.
ifeq ($(CONFIG_KUNIT_TEST),y)
obj-$(CONFIG_KUNIT_TEST) += string-stream-test.o
2024-05-16 22:17:31 +01:00
obj-$(CONFIG_KUNIT_TEST) += assert_test.o
endif
obj-$(CONFIG_KUNIT_EXAMPLE_TEST) += kunit-example-test.o