Android.mk 16 KB

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