Android.mk 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. # Android makefile for display kernel modules
  2. TOUCH_DLKM_ENABLE := true
  3. ifeq ($(TARGET_KERNEL_DLKM_DISABLE), true)
  4. ifeq ($(TARGET_KERNEL_DLKM_TOUCH_OVERRIDE), false)
  5. TOUCH_DLKM_ENABLE := false
  6. endif
  7. endif
  8. ifeq ($(TOUCH_DLKM_ENABLE), true)
  9. TOUCH_SELECT := CONFIG_MSM_TOUCH=m
  10. LOCAL_PATH := $(call my-dir)
  11. include $(CLEAR_VARS)
  12. # This makefile is only for DLKM
  13. ifneq ($(findstring vendor,$(LOCAL_PATH)),)
  14. ifneq ($(findstring opensource,$(LOCAL_PATH)),)
  15. TOUCH_BLD_DIR := $(shell pwd)/vendor/qcom/opensource/touch-drivers
  16. endif # opensource
  17. DLKM_DIR := $(TOP)/device/qcom/common/dlkm
  18. LOCAL_ADDITIONAL_DEPENDENCIES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  19. # Build
  20. ###########################################################
  21. # This is set once per LOCAL_PATH, not per (kernel) module
  22. KBUILD_OPTIONS := TOUCH_ROOT=$(TOUCH_BLD_DIR)
  23. KBUILD_OPTIONS += MODNAME=touch_dlkm
  24. KBUILD_OPTIONS += BOARD_PLATFORM=$(TARGET_BOARD_PLATFORM)
  25. KBUILD_OPTIONS += $(TOUCH_SELECT)
  26. ###########################################################
  27. ifeq ($(TARGET_BOARD_PLATFORM), monaco)
  28. ###########################################################
  29. include $(CLEAR_VARS)
  30. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  31. LOCAL_MODULE := pt_ts.ko
  32. LOCAL_MODULE_KBUILD_NAME := pt_ts.ko
  33. LOCAL_MODULE_TAGS := optional
  34. #LOCAL_MODULE_DEBUG_ENABLE := true
  35. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  36. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  37. ###########################################################
  38. ###########################################################
  39. include $(CLEAR_VARS)
  40. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  41. LOCAL_MODULE := pt_i2c.ko
  42. LOCAL_MODULE_KBUILD_NAME := pt_i2c.ko
  43. LOCAL_MODULE_TAGS := optional
  44. #LOCAL_MODULE_DEBUG_ENABLE := true
  45. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  46. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  47. ###########################################################
  48. ###########################################################
  49. include $(CLEAR_VARS)
  50. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  51. LOCAL_MODULE := pt_device_access.ko
  52. LOCAL_MODULE_KBUILD_NAME := pt_device_access.ko
  53. LOCAL_MODULE_TAGS := optional
  54. #LOCAL_MODULE_DEBUG_ENABLE := true
  55. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  56. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  57. ###########################################################
  58. ###########################################################
  59. include $(CLEAR_VARS)
  60. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  61. LOCAL_MODULE := raydium_ts.ko
  62. LOCAL_MODULE_KBUILD_NAME := raydium_ts.ko
  63. LOCAL_MODULE_TAGS := optional
  64. #LOCAL_MODULE_DEBUG_ENABLE := true
  65. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  66. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  67. ###########################################################
  68. else ifeq ($(TARGET_BOARD_PLATFORM), kona)
  69. ###########################################################
  70. include $(CLEAR_VARS)
  71. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  72. LOCAL_MODULE := focaltech_fts.ko
  73. LOCAL_MODULE_KBUILD_NAME := focaltech_fts.ko
  74. LOCAL_MODULE_TAGS := optional
  75. #LOCAL_MODULE_DEBUG_ENABLE := true
  76. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  77. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  78. ###########################################################
  79. else
  80. ###########################################################
  81. include $(CLEAR_VARS)
  82. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  83. LOCAL_MODULE := nt36xxx-i2c.ko
  84. LOCAL_MODULE_KBUILD_NAME := nt36xxx-i2c.ko
  85. LOCAL_MODULE_TAGS := optional
  86. #LOCAL_MODULE_DEBUG_ENABLE := true
  87. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  88. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  89. ###########################################################
  90. ###########################################################
  91. include $(CLEAR_VARS)
  92. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  93. LOCAL_MODULE := goodix_ts.ko
  94. LOCAL_MODULE_KBUILD_NAME := goodix_ts.ko
  95. LOCAL_MODULE_TAGS := optional
  96. #LOCAL_MODULE_DEBUG_ENABLE := true
  97. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  98. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  99. ###########################################################
  100. ###########################################################
  101. include $(CLEAR_VARS)
  102. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  103. LOCAL_MODULE := atmel_mxt_ts.ko
  104. LOCAL_MODULE_KBUILD_NAME := atmel_mxt_ts.ko
  105. LOCAL_MODULE_TAGS := optional
  106. #LOCAL_MODULE_DEBUG_ENABLE := true
  107. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  108. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  109. ###########################################################
  110. ###########################################################
  111. include $(CLEAR_VARS)
  112. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  113. LOCAL_MODULE := synaptics_tcm_ts.ko
  114. LOCAL_MODULE_KBUILD_NAME := synaptics_tcm_ts.ko
  115. LOCAL_MODULE_TAGS := optional
  116. #LOCAL_MODULE_DEBUG_ENABLE := true
  117. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  118. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  119. ###########################################################
  120. endif #kona
  121. endif # DLKM check
  122. endif