Android.mk 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  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. ifeq ($(TARGET_BOARD_PLATFORM), pineapple)
  12. LOCAL_MODULE_DDK_BUILD := true
  13. endif
  14. include $(CLEAR_VARS)
  15. # This makefile is only for DLKM
  16. ifneq ($(findstring vendor,$(LOCAL_PATH)),)
  17. ifneq ($(findstring opensource,$(LOCAL_PATH)),)
  18. TOUCH_BLD_DIR := $(shell pwd)/vendor/qcom/opensource/touch-drivers
  19. endif # opensource
  20. DLKM_DIR := $(TOP)/device/qcom/common/dlkm
  21. LOCAL_ADDITIONAL_DEPENDENCIES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  22. # Build
  23. ###########################################################
  24. # This is set once per LOCAL_PATH, not per (kernel) module
  25. KBUILD_OPTIONS := TOUCH_ROOT=$(TOUCH_BLD_DIR)
  26. KBUILD_OPTIONS += MODNAME=touch_dlkm
  27. KBUILD_OPTIONS += BOARD_PLATFORM=$(TARGET_BOARD_PLATFORM)
  28. KBUILD_OPTIONS += $(TOUCH_SELECT)
  29. ###########################################################
  30. ifeq ($(TARGET_BOARD_PLATFORM), monaco)
  31. ###########################################################
  32. include $(CLEAR_VARS)
  33. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  34. LOCAL_MODULE := pt_ts.ko
  35. LOCAL_MODULE_KBUILD_NAME := pt_ts.ko
  36. LOCAL_MODULE_TAGS := optional
  37. #LOCAL_MODULE_DEBUG_ENABLE := true
  38. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  39. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  40. ###########################################################
  41. ###########################################################
  42. include $(CLEAR_VARS)
  43. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  44. LOCAL_MODULE := pt_i2c.ko
  45. LOCAL_MODULE_KBUILD_NAME := pt_i2c.ko
  46. LOCAL_MODULE_TAGS := optional
  47. #LOCAL_MODULE_DEBUG_ENABLE := true
  48. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  49. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  50. ###########################################################
  51. ###########################################################
  52. include $(CLEAR_VARS)
  53. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  54. LOCAL_MODULE := pt_device_access.ko
  55. LOCAL_MODULE_KBUILD_NAME := pt_device_access.ko
  56. LOCAL_MODULE_TAGS := optional
  57. #LOCAL_MODULE_DEBUG_ENABLE := true
  58. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  59. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  60. ###########################################################
  61. ###########################################################
  62. include $(CLEAR_VARS)
  63. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  64. LOCAL_MODULE := raydium_ts.ko
  65. LOCAL_MODULE_KBUILD_NAME := raydium_ts.ko
  66. LOCAL_MODULE_TAGS := optional
  67. #LOCAL_MODULE_DEBUG_ENABLE := true
  68. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  69. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  70. ###########################################################
  71. else ifeq ($(TARGET_BOARD_PLATFORM), kona)
  72. ###########################################################
  73. include $(CLEAR_VARS)
  74. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  75. LOCAL_MODULE := focaltech_fts.ko
  76. LOCAL_MODULE_KBUILD_NAME := focaltech_fts.ko
  77. LOCAL_MODULE_TAGS := optional
  78. #LOCAL_MODULE_DEBUG_ENABLE := true
  79. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  80. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  81. ###########################################################
  82. else ifeq ($(TARGET_BOARD_PLATFORM), pineapple)
  83. ###########################################################
  84. include $(CLEAR_VARS)
  85. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  86. LOCAL_MODULE := nt36xxx-i2c.ko
  87. LOCAL_MODULE_KBUILD_NAME := nt36xxx-i2c.ko
  88. LOCAL_MODULE_TAGS := optional
  89. #LOCAL_MODULE_DEBUG_ENABLE := true
  90. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  91. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  92. ###########################################################
  93. ###########################################################
  94. include $(CLEAR_VARS)
  95. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  96. LOCAL_MODULE := goodix_ts.ko
  97. LOCAL_MODULE_KBUILD_NAME := goodix_ts.ko
  98. LOCAL_MODULE_TAGS := optional
  99. #LOCAL_MODULE_DEBUG_ENABLE := true
  100. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  101. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  102. ###########################################################
  103. ###########################################################
  104. include $(CLEAR_VARS)
  105. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  106. LOCAL_MODULE := atmel_mxt_ts.ko
  107. LOCAL_MODULE_KBUILD_NAME := atmel_mxt_ts.ko
  108. LOCAL_MODULE_TAGS := optional
  109. #LOCAL_MODULE_DEBUG_ENABLE := true
  110. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  111. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  112. ###########################################################
  113. else ifeq ($(TARGET_BOARD_PLATFORM), kalama)
  114. ###########################################################
  115. include $(CLEAR_VARS)
  116. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  117. LOCAL_MODULE := nt36xxx-i2c.ko
  118. LOCAL_MODULE_KBUILD_NAME := nt36xxx-i2c.ko
  119. LOCAL_MODULE_TAGS := optional
  120. #LOCAL_MODULE_DEBUG_ENABLE := true
  121. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  122. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  123. ###########################################################
  124. ###########################################################
  125. include $(CLEAR_VARS)
  126. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  127. LOCAL_MODULE := goodix_ts.ko
  128. LOCAL_MODULE_KBUILD_NAME := goodix_ts.ko
  129. LOCAL_MODULE_TAGS := optional
  130. #LOCAL_MODULE_DEBUG_ENABLE := true
  131. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  132. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  133. ###########################################################
  134. ###########################################################
  135. include $(CLEAR_VARS)
  136. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  137. LOCAL_MODULE := atmel_mxt_ts.ko
  138. LOCAL_MODULE_KBUILD_NAME := atmel_mxt_ts.ko
  139. LOCAL_MODULE_TAGS := optional
  140. #LOCAL_MODULE_DEBUG_ENABLE := true
  141. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  142. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  143. ###########################################################
  144. else ifeq ($(TARGET_BOARD_PLATFORM), blair)
  145. ###########################################################
  146. include $(CLEAR_VARS)
  147. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  148. LOCAL_MODULE := focaltech_fts.ko
  149. LOCAL_MODULE_KBUILD_NAME := focaltech_fts.ko
  150. LOCAL_MODULE_TAGS := optional
  151. #LOCAL_MODULE_DEBUG_ENABLE := true
  152. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  153. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  154. ###########################################################
  155. ###########################################################
  156. include $(CLEAR_VARS)
  157. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  158. LOCAL_MODULE := nt36xxx-i2c.ko
  159. LOCAL_MODULE_KBUILD_NAME := nt36xxx-i2c.ko
  160. LOCAL_MODULE_TAGS := optional
  161. #LOCAL_MODULE_DEBUG_ENABLE := true
  162. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  163. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  164. ###########################################################
  165. ###########################################################
  166. include $(CLEAR_VARS)
  167. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  168. LOCAL_MODULE := synaptics_tcm_ts.ko
  169. LOCAL_MODULE_KBUILD_NAME := synaptics_tcm_ts.ko
  170. LOCAL_MODULE_TAGS := optional
  171. #LOCAL_MODULE_DEBUG_ENABLE := true
  172. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  173. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  174. ###########################################################
  175. else ifeq ($(TARGET_BOARD_PLATFORM), crow)
  176. ###########################################################
  177. include $(CLEAR_VARS)
  178. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  179. LOCAL_MODULE := goodix_ts.ko
  180. LOCAL_MODULE_KBUILD_NAME := goodix_ts.ko
  181. LOCAL_MODULE_TAGS := optional
  182. #LOCAL_MODULE_DEBUG_ENABLE := true
  183. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  184. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  185. ###########################################################
  186. else
  187. ###########################################################
  188. include $(CLEAR_VARS)
  189. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  190. LOCAL_MODULE := nt36xxx-i2c.ko
  191. LOCAL_MODULE_KBUILD_NAME := nt36xxx-i2c.ko
  192. LOCAL_MODULE_TAGS := optional
  193. #LOCAL_MODULE_DEBUG_ENABLE := true
  194. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  195. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  196. ###########################################################
  197. ###########################################################
  198. include $(CLEAR_VARS)
  199. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  200. LOCAL_MODULE := goodix_ts.ko
  201. LOCAL_MODULE_KBUILD_NAME := goodix_ts.ko
  202. LOCAL_MODULE_TAGS := optional
  203. #LOCAL_MODULE_DEBUG_ENABLE := true
  204. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  205. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  206. ###########################################################
  207. ###########################################################
  208. include $(CLEAR_VARS)
  209. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  210. LOCAL_MODULE := atmel_mxt_ts.ko
  211. LOCAL_MODULE_KBUILD_NAME := atmel_mxt_ts.ko
  212. LOCAL_MODULE_TAGS := optional
  213. #LOCAL_MODULE_DEBUG_ENABLE := true
  214. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  215. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  216. ###########################################################
  217. ###########################################################
  218. include $(CLEAR_VARS)
  219. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  220. LOCAL_MODULE := synaptics_tcm_ts.ko
  221. LOCAL_MODULE_KBUILD_NAME := synaptics_tcm_ts.ko
  222. LOCAL_MODULE_TAGS := optional
  223. #LOCAL_MODULE_DEBUG_ENABLE := true
  224. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  225. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  226. ###########################################################
  227. endif #kona
  228. endif # DLKM check
  229. endif