touch_driver_board.mk 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. else ifeq ($(TARGET_BOARD_PLATFORM), kalama)
  22. BOARD_VENDOR_KERNEL_MODULES += $(KERNEL_MODULES_OUT)/nt36xxx-i2c.ko \
  23. $(KERNEL_MODULES_OUT)/goodix_ts.ko \
  24. $(KERNEL_MODULES_OUT)/atmel_mxt_ts.ko
  25. else ifeq ($(TARGET_BOARD_PLATFORM), blair)
  26. BOARD_VENDOR_KERNEL_MODULES += $(KERNEL_MODULES_OUT)/focaltech_fts.ko \
  27. $(KERNEL_MODULES_OUT)/nt36xxx-i2c.ko \
  28. $(KERNEL_MODULES_OUT)/synaptics_tcm_ts.ko
  29. else ifeq ($(TARGET_BOARD_PLATFORM), crow)
  30. BOARD_VENDOR_KERNEL_MODULES += $(KERNEL_MODULES_OUT)/goodix_ts.ko
  31. else
  32. BOARD_VENDOR_KERNEL_MODULES += $(KERNEL_MODULES_OUT)/nt36xxx-i2c.ko \
  33. $(KERNEL_MODULES_OUT)/goodix_ts.ko \
  34. $(KERNEL_MODULES_OUT)/atmel_mxt_ts.ko \
  35. $(KERNEL_MODULES_OUT)/synaptics_tcm_ts.ko
  36. endif
  37. endif
  38. endif
  39. endif