Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. TARGET = sec_common_fn
  2. $(TARGET)-objs := sec_input.o sec_cmd.o
  3. ifneq ($(filter y m, $(CONFIG_SEC_DEBUG_TSP_LOG)),)
  4. $(TARGET)-objs += sec_tsp_log.o
  5. endif
  6. ifneq ($(filter y m, $(CONFIG_INPUT_TOUCHSCREEN_TCLMV2)),)
  7. $(TARGET)-objs += sec_tclm_v2.o
  8. endif
  9. ifneq ($(filter y m, $(CONFIG_INPUT_SEC_SECURE_TOUCH)),)
  10. $(TARGET)-objs += sec_secure_touch.o
  11. endif
  12. ifneq ($(filter y m, $(CONFIG_INPUT_SEC_TRUSTED_TOUCH)),)
  13. $(TARGET)-objs += sec_trusted_touch.o
  14. endif
  15. ifneq ($(filter y m, $(CONFIG_TOUCHSCREEN_DUMP_MODE)),)
  16. $(TARGET)-objs += sec_tsp_dumpkey.o
  17. endif
  18. ifneq ($(filter y m, $(CONFIG_SEC_INPUT_RAWDATA)),)
  19. $(TARGET)-objs += sec_input_rawdata.o
  20. endif
  21. ifneq ($(filter y m, $(CONFIG_SEC_INPUT_MULTI_DEVICE)),)
  22. $(TARGET)-objs += sec_input_multi_dev.o
  23. endif
  24. obj-$(CONFIG_INPUT_SEC_INPUT) += $(TARGET).o
  25. # sec_input_notifier need to be separated to avoid dependency cycle error by other modules
  26. obj-$(CONFIG_INPUT_SEC_NOTIFIER) += sec_input_notifier.o
  27. ifeq ($(CONFIG_SEC_KUNIT), y)
  28. endif
  29. ccflags-y += -Wformat
  30. GCOV_PROFILE_sec_input.o := $(CONFIG_SEC_KUNIT)
  31. GCOV_PROFILE_sec_cmd.o := $(CONFIG_SEC_KUNIT)
  32. GCOV_PROFILE_sec_tsp_log.o := $(CONFIG_SEC_KUNIT)
  33. GCOV_PROFILE_sec_tclm_v2.o := $(CONFIG_SEC_KUNIT)
  34. GCOV_PROFILE_sec_tsp_dumpkey.o := $(CONFIG_SEC_KUNIT)
  35. subdir-ccflags-$(CONFIG_SEC_KUNIT) += \
  36. -Wno-format-zero-length