Android.mk 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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 ifeq ($(TARGET_BOARD_PLATFORM), pineapple)
  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. else ifeq ($(TARGET_BOARD_PLATFORM), kalama)
  111. ###########################################################
  112. include $(CLEAR_VARS)
  113. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  114. LOCAL_MODULE := nt36xxx-i2c.ko
  115. LOCAL_MODULE_KBUILD_NAME := nt36xxx-i2c.ko
  116. LOCAL_MODULE_TAGS := optional
  117. #LOCAL_MODULE_DEBUG_ENABLE := true
  118. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  119. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  120. ###########################################################
  121. ###########################################################
  122. include $(CLEAR_VARS)
  123. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  124. LOCAL_MODULE := goodix_ts.ko
  125. LOCAL_MODULE_KBUILD_NAME := goodix_ts.ko
  126. LOCAL_MODULE_TAGS := optional
  127. #LOCAL_MODULE_DEBUG_ENABLE := true
  128. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  129. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  130. ###########################################################
  131. ###########################################################
  132. include $(CLEAR_VARS)
  133. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  134. LOCAL_MODULE := atmel_mxt_ts.ko
  135. LOCAL_MODULE_KBUILD_NAME := atmel_mxt_ts.ko
  136. LOCAL_MODULE_TAGS := optional
  137. #LOCAL_MODULE_DEBUG_ENABLE := true
  138. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  139. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  140. ###########################################################
  141. else ifeq ($(TARGET_BOARD_PLATFORM), blair)
  142. ###########################################################
  143. include $(CLEAR_VARS)
  144. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  145. LOCAL_MODULE := focaltech_fts.ko
  146. LOCAL_MODULE_KBUILD_NAME := focaltech_fts.ko
  147. LOCAL_MODULE_TAGS := optional
  148. #LOCAL_MODULE_DEBUG_ENABLE := true
  149. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  150. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  151. ###########################################################
  152. ###########################################################
  153. include $(CLEAR_VARS)
  154. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  155. LOCAL_MODULE := nt36xxx-i2c.ko
  156. LOCAL_MODULE_KBUILD_NAME := nt36xxx-i2c.ko
  157. LOCAL_MODULE_TAGS := optional
  158. #LOCAL_MODULE_DEBUG_ENABLE := true
  159. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  160. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  161. ###########################################################
  162. ###########################################################
  163. include $(CLEAR_VARS)
  164. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  165. LOCAL_MODULE := synaptics_tcm_ts.ko
  166. LOCAL_MODULE_KBUILD_NAME := synaptics_tcm_ts.ko
  167. LOCAL_MODULE_TAGS := optional
  168. #LOCAL_MODULE_DEBUG_ENABLE := true
  169. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  170. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  171. ###########################################################
  172. else
  173. ###########################################################
  174. include $(CLEAR_VARS)
  175. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  176. LOCAL_MODULE := nt36xxx-i2c.ko
  177. LOCAL_MODULE_KBUILD_NAME := nt36xxx-i2c.ko
  178. LOCAL_MODULE_TAGS := optional
  179. #LOCAL_MODULE_DEBUG_ENABLE := true
  180. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  181. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  182. ###########################################################
  183. ###########################################################
  184. include $(CLEAR_VARS)
  185. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  186. LOCAL_MODULE := goodix_ts.ko
  187. LOCAL_MODULE_KBUILD_NAME := goodix_ts.ko
  188. LOCAL_MODULE_TAGS := optional
  189. #LOCAL_MODULE_DEBUG_ENABLE := true
  190. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  191. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  192. ###########################################################
  193. ###########################################################
  194. include $(CLEAR_VARS)
  195. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  196. LOCAL_MODULE := atmel_mxt_ts.ko
  197. LOCAL_MODULE_KBUILD_NAME := atmel_mxt_ts.ko
  198. LOCAL_MODULE_TAGS := optional
  199. #LOCAL_MODULE_DEBUG_ENABLE := true
  200. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  201. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  202. ###########################################################
  203. ###########################################################
  204. include $(CLEAR_VARS)
  205. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  206. LOCAL_MODULE := synaptics_tcm_ts.ko
  207. LOCAL_MODULE_KBUILD_NAME := synaptics_tcm_ts.ko
  208. LOCAL_MODULE_TAGS := optional
  209. #LOCAL_MODULE_DEBUG_ENABLE := true
  210. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  211. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  212. ###########################################################
  213. endif #kona
  214. endif # DLKM check
  215. endif