Makefile 743 B

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