touch_driver_board.mk 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. $(KERNEL_MODULES_OUT)/goodix_ts.ko
  30. else ifeq ($(TARGET_BOARD_PLATFORM), crow)
  31. BOARD_VENDOR_KERNEL_MODULES += $(KERNEL_MODULES_OUT)/goodix_ts.ko
  32. else ifeq ($(TARGET_BOARD_PLATFORM), bengal)
  33. BOARD_VENDOR_KERNEL_MODULES += $(KERNEL_MODULES_OUT)/synaptics_tcm_ts.ko \
  34. $(KERNEL_MODULES_OUT)/nt36xxx-i2c.ko
  35. else ifeq ($(TARGET_BOARD_PLATFORM), trinket)
  36. BOARD_VENDOR_KERNEL_MODULES += $(KERNEL_MODULES_OUT)/synaptics_tcm_ts.ko
  37. else ifeq ($(TARGET_BOARD_PLATFORM), pitti)
  38. BOARD_VENDOR_KERNEL_MODULES += $(KERNEL_MODULES_OUT)/focaltech_fts.ko \
  39. $(KERNEL_MODULES_OUT)/goodix_ts.ko
  40. else ifeq ($(TARGET_BOARD_PLATFORM), volcano)
  41. BOARD_VENDOR_KERNEL_MODULES += $(KERNEL_MODULES_OUT)/goodix_ts.ko
  42. else
  43. BOARD_VENDOR_KERNEL_MODULES += $(KERNEL_MODULES_OUT)/nt36xxx-i2c.ko \
  44. $(KERNEL_MODULES_OUT)/goodix_ts.ko \
  45. $(KERNEL_MODULES_OUT)/atmel_mxt_ts.ko \
  46. $(KERNEL_MODULES_OUT)/synaptics_tcm_ts.ko
  47. endif
  48. endif
  49. endif
  50. endif