Android.mk 14 KB

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