touch_driver_board.mk 1.7 KB

12345678910111213141516171819202122232425262728293031
  1. TOUCH_DLKM_ENABLE := true
  2. ifeq ($(TARGET_KERNEL_DLKM_DISABLE), true)
  3. ifeq ($(TARGET_KERNEL_DLKM_TOUCH_OVERRIDE), false)
  4. TOUCH_DLKM_ENABLE := false
  5. endif
  6. endif
  7. ifeq ($(TOUCH_DLKM_ENABLE), true)
  8. ifneq ($(TARGET_BOARD_AUTO),true)
  9. ifeq ($(call is-board-platform-in-list,$(TARGET_BOARD_PLATFORM)),true)
  10. ifeq ($(TARGET_BOARD_PLATFORM), monaco)
  11. BOARD_VENDOR_KERNEL_MODULES += $(KERNEL_MODULES_OUT)/pt_ts.ko \
  12. $(KERNEL_MODULES_OUT)/pt_i2c.ko \
  13. $(KERNEL_MODULES_OUT)/pt_device_access.ko \
  14. $(KERNEL_MODULES_OUT)/raydium_ts.ko
  15. else ifeq ($(TARGET_BOARD_PLATFORM), kona)
  16. BOARD_VENDOR_KERNEL_MODULES += $(KERNEL_MODULES_OUT)/focaltech_fts.ko
  17. else ifeq ($(TARGET_BOARD_PLATFORM), pineapple)
  18. BOARD_VENDOR_KERNEL_MODULES += $(KERNEL_MODULES_OUT)/nt36xxx-i2c.ko \
  19. $(KERNEL_MODULES_OUT)/goodix_ts.ko \
  20. $(KERNEL_MODULES_OUT)/atmel_mxt_ts.ko \
  21. $(KERNEL_MODULES_OUT)/synaptics_tcm_ts.ko
  22. else
  23. BOARD_VENDOR_KERNEL_MODULES += $(KERNEL_MODULES_OUT)/nt36xxx-i2c.ko \
  24. $(KERNEL_MODULES_OUT)/goodix_ts.ko \
  25. $(KERNEL_MODULES_OUT)/atmel_mxt_ts.ko \
  26. $(KERNEL_MODULES_OUT)/synaptics_tcm_ts.ko
  27. endif
  28. endif
  29. endif
  30. endif