Android.mk 16 KB

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