Android.mk 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  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. BOARD_OPENSOURCE_DIR ?= vendor/qcom/opensource
  11. BOARD_COMMON_DIR ?= device/qcom/common
  12. LOCAL_PATH := $(call my-dir)
  13. ifeq ($(TARGET_BOARD_PLATFORM), pineapple)
  14. LOCAL_MODULE_DDK_BUILD := true
  15. endif
  16. ifeq ($(TARGET_BOARD_PLATFORM), blair)
  17. LOCAL_MODULE_DDK_BUILD := true
  18. endif
  19. ifeq ($(TARGET_BOARD_PLATFORM), pitti)
  20. LOCAL_MODULE_DDK_BUILD := true
  21. endif
  22. ifeq ($(TARGET_BOARD_PLATFORM), monaco)
  23. LOCAL_MODULE_DDK_BUILD := true
  24. endif
  25. ifeq ($(TARGET_BOARD_PLATFORM), volcano)
  26. LOCAL_MODULE_DDK_BUILD := true
  27. endif
  28. include $(CLEAR_VARS)
  29. # This makefile is only for DLKM
  30. ifneq ($(findstring vendor,$(LOCAL_PATH)),)
  31. ifneq ($(findstring opensource,$(LOCAL_PATH)),)
  32. TOUCH_BLD_DIR := $(shell pwd)/$(BOARD_OPENSOURCE_DIR)/touch-drivers
  33. endif # opensource
  34. DLKM_DIR := $(TOP)/$(BOARD_COMMON_DIR)/dlkm
  35. LOCAL_ADDITIONAL_DEPENDENCIES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  36. # Build
  37. ###########################################################
  38. # This is set once per LOCAL_PATH, not per (kernel) module
  39. KBUILD_OPTIONS := TOUCH_ROOT=$(TOUCH_BLD_DIR)
  40. KBUILD_OPTIONS += MODNAME=touch_dlkm
  41. KBUILD_OPTIONS += BOARD_PLATFORM=$(TARGET_BOARD_PLATFORM)
  42. KBUILD_OPTIONS += $(TOUCH_SELECT)
  43. ###########################################################
  44. ifeq ($(TARGET_BOARD_PLATFORM), monaco)
  45. ###########################################################
  46. include $(CLEAR_VARS)
  47. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  48. LOCAL_MODULE := pt_ts.ko
  49. LOCAL_MODULE_KBUILD_NAME := pt_ts.ko
  50. LOCAL_MODULE_TAGS := optional
  51. #LOCAL_MODULE_DEBUG_ENABLE := true
  52. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  53. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  54. ###########################################################
  55. ###########################################################
  56. include $(CLEAR_VARS)
  57. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  58. LOCAL_MODULE := pt_i2c.ko
  59. LOCAL_MODULE_KBUILD_NAME := pt_i2c.ko
  60. LOCAL_MODULE_TAGS := optional
  61. #LOCAL_MODULE_DEBUG_ENABLE := true
  62. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  63. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  64. ###########################################################
  65. ###########################################################
  66. include $(CLEAR_VARS)
  67. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  68. LOCAL_MODULE := pt_device_access.ko
  69. LOCAL_MODULE_KBUILD_NAME := pt_device_access.ko
  70. LOCAL_MODULE_TAGS := optional
  71. #LOCAL_MODULE_DEBUG_ENABLE := true
  72. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  73. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  74. ###########################################################
  75. ###########################################################
  76. include $(CLEAR_VARS)
  77. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  78. LOCAL_MODULE := raydium_ts.ko
  79. LOCAL_MODULE_KBUILD_NAME := raydium_ts.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), kona)
  86. ###########################################################
  87. include $(CLEAR_VARS)
  88. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  89. LOCAL_MODULE := focaltech_fts.ko
  90. LOCAL_MODULE_KBUILD_NAME := focaltech_fts.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. else ifeq ($(TARGET_BOARD_PLATFORM), pineapple)
  97. ###########################################################
  98. include $(CLEAR_VARS)
  99. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  100. LOCAL_MODULE := nt36xxx-i2c.ko
  101. LOCAL_MODULE_KBUILD_NAME := nt36xxx-i2c.ko
  102. LOCAL_MODULE_TAGS := optional
  103. #LOCAL_MODULE_DEBUG_ENABLE := true
  104. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  105. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  106. ###########################################################
  107. ###########################################################
  108. include $(CLEAR_VARS)
  109. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  110. LOCAL_MODULE := goodix_ts.ko
  111. LOCAL_MODULE_KBUILD_NAME := goodix_ts.ko
  112. LOCAL_MODULE_TAGS := optional
  113. #LOCAL_MODULE_DEBUG_ENABLE := true
  114. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  115. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  116. ###########################################################
  117. ###########################################################
  118. include $(CLEAR_VARS)
  119. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  120. LOCAL_MODULE := atmel_mxt_ts.ko
  121. LOCAL_MODULE_KBUILD_NAME := atmel_mxt_ts.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. else ifeq ($(TARGET_BOARD_PLATFORM), kalama)
  128. ###########################################################
  129. include $(CLEAR_VARS)
  130. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  131. LOCAL_MODULE := nt36xxx-i2c.ko
  132. LOCAL_MODULE_KBUILD_NAME := nt36xxx-i2c.ko
  133. LOCAL_MODULE_TAGS := optional
  134. #LOCAL_MODULE_DEBUG_ENABLE := true
  135. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  136. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  137. ###########################################################
  138. ###########################################################
  139. include $(CLEAR_VARS)
  140. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  141. LOCAL_MODULE := goodix_ts.ko
  142. LOCAL_MODULE_KBUILD_NAME := goodix_ts.ko
  143. LOCAL_MODULE_TAGS := optional
  144. #LOCAL_MODULE_DEBUG_ENABLE := true
  145. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  146. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  147. ###########################################################
  148. ###########################################################
  149. include $(CLEAR_VARS)
  150. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  151. LOCAL_MODULE := atmel_mxt_ts.ko
  152. LOCAL_MODULE_KBUILD_NAME := atmel_mxt_ts.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. else ifeq ($(TARGET_BOARD_PLATFORM), blair)
  159. ###########################################################
  160. include $(CLEAR_VARS)
  161. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  162. LOCAL_MODULE := focaltech_fts.ko
  163. LOCAL_MODULE_KBUILD_NAME := focaltech_fts.ko
  164. LOCAL_MODULE_TAGS := optional
  165. #LOCAL_MODULE_DEBUG_ENABLE := true
  166. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  167. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  168. ###########################################################
  169. ###########################################################
  170. include $(CLEAR_VARS)
  171. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  172. LOCAL_MODULE := nt36xxx-i2c.ko
  173. LOCAL_MODULE_KBUILD_NAME := nt36xxx-i2c.ko
  174. LOCAL_MODULE_TAGS := optional
  175. #LOCAL_MODULE_DEBUG_ENABLE := true
  176. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  177. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  178. ###########################################################
  179. ###########################################################
  180. include $(CLEAR_VARS)
  181. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  182. LOCAL_MODULE := synaptics_tcm_ts.ko
  183. LOCAL_MODULE_KBUILD_NAME := synaptics_tcm_ts.ko
  184. LOCAL_MODULE_TAGS := optional
  185. #LOCAL_MODULE_DEBUG_ENABLE := true
  186. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  187. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  188. ###########################################################
  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), crow)
  200. ###########################################################
  201. include $(CLEAR_VARS)
  202. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  203. LOCAL_MODULE := goodix_ts.ko
  204. LOCAL_MODULE_KBUILD_NAME := goodix_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. else ifeq ($(TARGET_BOARD_PLATFORM), bengal)
  211. ###########################################################
  212. include $(CLEAR_VARS)
  213. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  214. LOCAL_MODULE := synaptics_tcm_ts.ko
  215. LOCAL_MODULE_KBUILD_NAME := synaptics_tcm_ts.ko
  216. LOCAL_MODULE_TAGS := optional
  217. #LOCAL_MODULE_DEBUG_ENABLE := true
  218. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  219. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  220. ###########################################################
  221. ###########################################################
  222. include $(CLEAR_VARS)
  223. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  224. LOCAL_MODULE := nt36xxx-i2c.ko
  225. LOCAL_MODULE_KBUILD_NAME := nt36xxx-i2c.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 ifeq ($(TARGET_BOARD_PLATFORM), trinket)
  232. ###########################################################
  233. include $(CLEAR_VARS)
  234. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  235. LOCAL_MODULE := synaptics_tcm_ts.ko
  236. LOCAL_MODULE_KBUILD_NAME := synaptics_tcm_ts.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. else ifeq ($(TARGET_BOARD_PLATFORM), pitti)
  243. ###########################################################
  244. include $(CLEAR_VARS)
  245. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  246. LOCAL_MODULE := focaltech_fts.ko
  247. LOCAL_MODULE_KBUILD_NAME := focaltech_fts.ko
  248. LOCAL_MODULE_TAGS := optional
  249. #LOCAL_MODULE_DEBUG_ENABLE := true
  250. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  251. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  252. ###########################################################
  253. ###########################################################
  254. include $(CLEAR_VARS)
  255. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  256. LOCAL_MODULE := goodix_ts.ko
  257. LOCAL_MODULE_KBUILD_NAME := goodix_ts.ko
  258. LOCAL_MODULE_TAGS := optional
  259. #LOCAL_MODULE_DEBUG_ENABLE := true
  260. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  261. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  262. ###########################################################
  263. else ifeq ($(TARGET_BOARD_PLATFORM), volcano)
  264. ###########################################################
  265. include $(CLEAR_VARS)
  266. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  267. LOCAL_MODULE := goodix_ts.ko
  268. LOCAL_MODULE_KBUILD_NAME := goodix_ts.ko
  269. LOCAL_MODULE_TAGS := optional
  270. #LOCAL_MODULE_DEBUG_ENABLE := true
  271. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  272. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  273. ###########################################################
  274. else
  275. ###########################################################
  276. include $(CLEAR_VARS)
  277. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  278. LOCAL_MODULE := nt36xxx-i2c.ko
  279. LOCAL_MODULE_KBUILD_NAME := nt36xxx-i2c.ko
  280. LOCAL_MODULE_TAGS := optional
  281. #LOCAL_MODULE_DEBUG_ENABLE := true
  282. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  283. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  284. ###########################################################
  285. ###########################################################
  286. include $(CLEAR_VARS)
  287. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  288. LOCAL_MODULE := goodix_ts.ko
  289. LOCAL_MODULE_KBUILD_NAME := goodix_ts.ko
  290. LOCAL_MODULE_TAGS := optional
  291. #LOCAL_MODULE_DEBUG_ENABLE := true
  292. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  293. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  294. ###########################################################
  295. ###########################################################
  296. include $(CLEAR_VARS)
  297. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  298. LOCAL_MODULE := atmel_mxt_ts.ko
  299. LOCAL_MODULE_KBUILD_NAME := atmel_mxt_ts.ko
  300. LOCAL_MODULE_TAGS := optional
  301. #LOCAL_MODULE_DEBUG_ENABLE := true
  302. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  303. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  304. ###########################################################
  305. ###########################################################
  306. include $(CLEAR_VARS)
  307. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  308. LOCAL_MODULE := synaptics_tcm_ts.ko
  309. LOCAL_MODULE_KBUILD_NAME := synaptics_tcm_ts.ko
  310. LOCAL_MODULE_TAGS := optional
  311. #LOCAL_MODULE_DEBUG_ENABLE := true
  312. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  313. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  314. ###########################################################
  315. endif #kona
  316. endif # DLKM check
  317. endif