touch_driver_product.mk 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. ifeq ($(TARGET_BOARD_PLATFORM), monaco)
  9. PRODUCT_PACKAGES += $(KERNEL_MODULES_OUT)/pt_ts.ko \
  10. $(KERNEL_MODULES_OUT)/pt_i2c.ko \
  11. $(KERNEL_MODULES_OUT)/pt_device_access.ko \
  12. $(KERNEL_MODULES_OUT)/raydium_ts.ko
  13. else ifeq ($(TARGET_BOARD_PLATFORM), kona)
  14. PRODUCT_PACKAGES += $(KERNEL_MODULES_OUT)/focaltech_fts.ko
  15. else ifeq ($(TARGET_BOARD_PLATFORM), pineapple)
  16. PRODUCT_PACKAGES += $(KERNEL_MODULES_OUT)/nt36xxx-i2c.ko \
  17. $(KERNEL_MODULES_OUT)/goodix_ts.ko \
  18. $(KERNEL_MODULES_OUT)/atmel_mxt_ts.ko
  19. else ifeq ($(TARGET_BOARD_PLATFORM), kalama)
  20. PRODUCT_PACKAGES += $(KERNEL_MODULES_OUT)/nt36xxx-i2c.ko \
  21. $(KERNEL_MODULES_OUT)/goodix_ts.ko \
  22. $(KERNEL_MODULES_OUT)/atmel_mxt_ts.ko
  23. else ifeq ($(TARGET_BOARD_PLATFORM), blair)
  24. PRODUCT_PACKAGES += $(KERNEL_MODULES_OUT)/focaltech_fts.ko \
  25. $(KERNEL_MODULES_OUT)/nt36xxx-i2c.ko \
  26. $(KERNEL_MODULES_OUT)/synaptics_tcm_ts.ko \
  27. $(KERNEL_MODULES_OUT)/goodix_ts.ko
  28. else ifeq ($(TARGET_BOARD_PLATFORM), crow)
  29. PRODUCT_PACKAGES += $(KERNEL_MODULES_OUT)/goodix_ts.ko
  30. else ifeq ($(TARGET_BOARD_PLATFORM), bengal)
  31. PRODUCT_PACKAGES += $(KERNEL_MODULES_OUT)/synaptics_tcm_ts.ko \
  32. $(KERNEL_MODULES_OUT)/nt36xxx-i2c.ko
  33. else ifeq ($(TARGET_BOARD_PLATFORM), trinket)
  34. PRODUCT_PACKAGES += $(KERNEL_MODULES_OUT)/synaptics_tcm_ts.ko
  35. else ifeq ($(TARGET_BOARD_PLATFORM), pitti)
  36. PRODUCT_PACKAGES += $(KERNEL_MODULES_OUT)/focaltech_fts.ko \
  37. $(KERNEL_MODULES_OUT)/goodix_ts.ko
  38. else ifeq ($(TARGET_BOARD_PLATFORM), volcano)
  39. PRODUCT_PACKAGES += $(KERNEL_MODULES_OUT)/goodix_ts.ko
  40. else
  41. PRODUCT_PACKAGES += $(KERNEL_MODULES_OUT)/nt36xxx-i2c.ko \
  42. $(KERNEL_MODULES_OUT)/goodix_ts.ko \
  43. $(KERNEL_MODULES_OUT)/atmel_mxt_ts.ko \
  44. $(KERNEL_MODULES_OUT)/synaptics_tcm_ts.ko
  45. endif
  46. endif