Android.mk 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468
  1. # Android makefile for audio kernel modules
  2. LOCAL_PATH := $(call my-dir)
  3. ifeq ($(call is-board-platform-in-list,taro),true)
  4. AUDIO_SELECT := CONFIG_SND_SOC_WAIPIO=m
  5. endif
  6. ifeq ($(call is-board-platform-in-list,kalama),true)
  7. AUDIO_SELECT := CONFIG_SND_SOC_KALAMA=m
  8. endif
  9. ifeq ($(call is-board-platform-in-list,bengal),true)
  10. AUDIO_SELECT := CONFIG_SND_SOC_BENGAL=m
  11. endif
  12. ifeq ($(call is-board-platform-in-list,holi blair),true)
  13. AUDIO_SELECT := CONFIG_SND_SOC_HOLI=m
  14. endif
  15. ifeq ($(call is-board-platform-in-list,pineapple),true)
  16. AUDIO_SELECT := CONFIG_SND_SOC_PINEAPPLE=m
  17. endif
  18. ifeq ($(ENABLE_AUDIO_LEGACY_TECHPACK),true)
  19. include $(call all-subdir-makefiles)
  20. endif
  21. # Build/Package only in case of supported target
  22. ifeq ($(call is-board-platform-in-list,taro kalama bengal pineapple holi blair), true)
  23. LOCAL_PATH := $(call my-dir)
  24. # This makefile is only for DLKM
  25. ifneq ($(findstring vendor,$(LOCAL_PATH)),)
  26. ifneq ($(findstring opensource,$(LOCAL_PATH)),)
  27. AUDIO_BLD_DIR := $(abspath .)/vendor/qcom/opensource/audio-kernel
  28. endif # opensource
  29. include $(AUDIO_BLD_DIR)/EnableBazel.mk
  30. DLKM_DIR := $(TOP)/device/qcom/common/dlkm
  31. ###########################################################
  32. # This is set once per LOCAL_PATH, not per (kernel) module
  33. KBUILD_OPTIONS := AUDIO_ROOT=$(AUDIO_BLD_DIR)
  34. # We are actually building audio.ko here, as per the
  35. # requirement we are specifying <chipset>_audio.ko as LOCAL_MODULE.
  36. # This means we need to rename the module to <chipset>_audio.ko
  37. # after audio.ko is built.
  38. KBUILD_OPTIONS += MODNAME=audio_dlkm
  39. KBUILD_OPTIONS += BOARD_PLATFORM=$(TARGET_BOARD_PLATFORM)
  40. KBUILD_OPTIONS += $(AUDIO_SELECT)
  41. ifneq ($(call is-board-platform-in-list, bengal holi blair),true)
  42. KBUILD_OPTIONS += KBUILD_EXTRA_SYMBOLS=$(PWD)/$(call intermediates-dir-for,DLKM,msm-ext-disp-module-symvers)/Module.symvers
  43. endif
  44. AUDIO_SRC_FILES := \
  45. $(wildcard $(LOCAL_PATH)/*) \
  46. $(wildcard $(LOCAL_PATH)/*/*) \
  47. $(wildcard $(LOCAL_PATH)/*/*/*) \
  48. $(wildcard $(LOCAL_PATH)/*/*/*/*)
  49. ########################### dsp ################################
  50. include $(CLEAR_VARS)
  51. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  52. LOCAL_MODULE := q6_notifier_dlkm.ko
  53. LOCAL_MODULE_KBUILD_NAME := dsp/q6_notifier_dlkm.ko
  54. LOCAL_MODULE_TAGS := optional
  55. LOCAL_MODULE_DEBUG_ENABLE := true
  56. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  57. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  58. ###########################################################
  59. include $(CLEAR_VARS)
  60. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  61. LOCAL_MODULE := spf_core_dlkm.ko
  62. LOCAL_MODULE_KBUILD_NAME := dsp/spf_core_dlkm.ko
  63. LOCAL_MODULE_TAGS := optional
  64. LOCAL_MODULE_DEBUG_ENABLE := true
  65. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  66. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  67. ###########################################################
  68. include $(CLEAR_VARS)
  69. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  70. LOCAL_MODULE := audpkt_ion_dlkm.ko
  71. LOCAL_MODULE_KBUILD_NAME := dsp/audpkt_ion_dlkm.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. include $(CLEAR_VARS)
  78. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  79. LOCAL_MODULE := gpr_dlkm.ko
  80. LOCAL_MODULE_KBUILD_NAME := ipc/gpr_dlkm.ko
  81. LOCAL_MODULE_TAGS := optional
  82. LOCAL_MODULE_DEBUG_ENABLE := true
  83. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  84. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  85. ###########################################################
  86. include $(CLEAR_VARS)
  87. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  88. LOCAL_MODULE := audio_pkt_dlkm.ko
  89. LOCAL_MODULE_KBUILD_NAME := ipc/audio_pkt_dlkm.ko
  90. LOCAL_MODULE_TAGS := optional
  91. LOCAL_MODULE_DEBUG_ENABLE := true
  92. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  93. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  94. ###########################################################
  95. include $(CLEAR_VARS)
  96. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  97. LOCAL_MODULE := q6_dlkm.ko
  98. LOCAL_MODULE_KBUILD_NAME := dsp/q6_dlkm.ko
  99. LOCAL_MODULE_TAGS := optional
  100. LOCAL_MODULE_DEBUG_ENABLE := true
  101. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  102. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  103. ###########################################################
  104. include $(CLEAR_VARS)
  105. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  106. LOCAL_MODULE := adsp_loader_dlkm.ko
  107. LOCAL_MODULE_KBUILD_NAME := dsp/adsp_loader_dlkm.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. ########################### ipc ################################
  113. include $(CLEAR_VARS)
  114. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  115. LOCAL_MODULE := audio_prm_dlkm.ko
  116. LOCAL_MODULE_KBUILD_NAME := dsp/audio_prm_dlkm.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. include $(CLEAR_VARS)
  123. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  124. LOCAL_MODULE := q6_pdr_dlkm.ko
  125. LOCAL_MODULE_KBUILD_NAME := dsp/q6_pdr_dlkm.ko
  126. LOCAL_MODULE_TAGS := optional
  127. LOCAL_MODULE_DEBUG_ENABLE := true
  128. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  129. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  130. ############################ soc ###############################
  131. include $(CLEAR_VARS)
  132. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  133. LOCAL_MODULE := pinctrl_lpi_dlkm.ko
  134. LOCAL_MODULE_KBUILD_NAME := soc/pinctrl_lpi_dlkm.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. include $(CLEAR_VARS)
  141. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  142. LOCAL_MODULE := swr_dlkm.ko
  143. LOCAL_MODULE_KBUILD_NAME := soc/swr_dlkm.ko
  144. LOCAL_MODULE_TAGS := optional
  145. LOCAL_MODULE_DEBUG_ENABLE := true
  146. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  147. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  148. ###########################################################
  149. include $(CLEAR_VARS)
  150. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  151. LOCAL_MODULE := swr_ctrl_dlkm.ko
  152. LOCAL_MODULE_KBUILD_NAME := soc/swr_ctrl_dlkm.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. include $(CLEAR_VARS)
  159. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  160. LOCAL_MODULE := snd_event_dlkm.ko
  161. LOCAL_MODULE_KBUILD_NAME := soc/snd_event_dlkm.ko
  162. LOCAL_MODULE_TAGS := optional
  163. LOCAL_MODULE_DEBUG_ENABLE := true
  164. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  165. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  166. ########################### ASOC CODEC ################################
  167. include $(CLEAR_VARS)
  168. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  169. LOCAL_MODULE := wcd_core_dlkm.ko
  170. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/wcd_core_dlkm.ko
  171. LOCAL_MODULE_TAGS := optional
  172. LOCAL_MODULE_DEBUG_ENABLE := true
  173. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  174. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  175. ###########################################################
  176. include $(CLEAR_VARS)
  177. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  178. LOCAL_MODULE := mbhc_dlkm.ko
  179. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/mbhc_dlkm.ko
  180. LOCAL_MODULE_TAGS := optional
  181. LOCAL_MODULE_DEBUG_ENABLE := true
  182. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  183. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  184. ###########################################################
  185. ifneq ($(call is-board-platform-in-list, bengal holi blair),true)
  186. include $(CLEAR_VARS)
  187. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  188. LOCAL_MODULE := swr_dmic_dlkm.ko
  189. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/swr_dmic_dlkm.ko
  190. LOCAL_MODULE_TAGS := optional
  191. LOCAL_MODULE_DEBUG_ENABLE := true
  192. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  193. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  194. endif
  195. ###########################################################
  196. include $(CLEAR_VARS)
  197. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  198. LOCAL_MODULE := wcd9xxx_dlkm.ko
  199. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/wcd9xxx_dlkm.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. ifneq ($(call is-board-platform-in-list, bengal holi blair),true)
  206. include $(CLEAR_VARS)
  207. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  208. LOCAL_MODULE := swr_haptics_dlkm.ko
  209. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/swr_haptics_dlkm.ko
  210. LOCAL_MODULE_TAGS := optional
  211. LOCAL_MODULE_DEBUG_ENABLE := true
  212. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  213. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  214. endif
  215. ###########################################################
  216. include $(CLEAR_VARS)
  217. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  218. LOCAL_MODULE := stub_dlkm.ko
  219. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/stub_dlkm.ko
  220. LOCAL_MODULE_TAGS := optional
  221. LOCAL_MODULE_DEBUG_ENABLE := true
  222. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  223. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  224. ########################### ASOC MACHINE ################################
  225. include $(CLEAR_VARS)
  226. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  227. LOCAL_MODULE := machine_dlkm.ko
  228. LOCAL_MODULE_KBUILD_NAME := asoc/machine_dlkm.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. ########################### LPASS-CDC CODEC ###########################
  234. ifneq ($(call is-board-platform-in-list, bengal holi blair),true)
  235. include $(CLEAR_VARS)
  236. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  237. LOCAL_MODULE := lpass_cdc_dlkm.ko
  238. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/lpass-cdc/lpass_cdc_dlkm.ko
  239. LOCAL_MODULE_TAGS := optional
  240. LOCAL_MODULE_DEBUG_ENABLE := true
  241. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  242. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  243. ###########################################################
  244. include $(CLEAR_VARS)
  245. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  246. LOCAL_MODULE := lpass_cdc_wsa2_macro_dlkm.ko
  247. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/lpass-cdc/lpass_cdc_wsa2_macro_dlkm.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. include $(CLEAR_VARS)
  254. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  255. LOCAL_MODULE := lpass_cdc_wsa_macro_dlkm.ko
  256. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/lpass-cdc/lpass_cdc_wsa_macro_dlkm.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. include $(CLEAR_VARS)
  263. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  264. LOCAL_MODULE := lpass_cdc_va_macro_dlkm.ko
  265. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/lpass-cdc/lpass_cdc_va_macro_dlkm.ko
  266. LOCAL_MODULE_TAGS := optional
  267. LOCAL_MODULE_DEBUG_ENABLE := true
  268. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  269. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  270. ###########################################################
  271. include $(CLEAR_VARS)
  272. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  273. LOCAL_MODULE := lpass_cdc_tx_macro_dlkm.ko
  274. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/lpass-cdc/lpass_cdc_tx_macro_dlkm.ko
  275. LOCAL_MODULE_TAGS := optional
  276. LOCAL_MODULE_DEBUG_ENABLE := true
  277. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  278. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  279. ###########################################################
  280. include $(CLEAR_VARS)
  281. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  282. LOCAL_MODULE := lpass_cdc_rx_macro_dlkm.ko
  283. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/lpass-cdc/lpass_cdc_rx_macro_dlkm.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. ########################### WSA884x CODEC ###########################
  289. include $(CLEAR_VARS)
  290. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  291. LOCAL_MODULE := wsa884x_dlkm.ko
  292. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/wsa884x/wsa884x_dlkm.ko
  293. LOCAL_MODULE_TAGS := optional
  294. LOCAL_MODULE_DEBUG_ENABLE := true
  295. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  296. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  297. ########################### WSA883x CODEC ###########################
  298. include $(CLEAR_VARS)
  299. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  300. LOCAL_MODULE := wsa883x_dlkm.ko
  301. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/wsa883x/wsa883x_dlkm.ko
  302. LOCAL_MODULE_TAGS := optional
  303. LOCAL_MODULE_DEBUG_ENABLE := true
  304. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  305. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  306. ########################### WCD938x CODEC ################################
  307. include $(CLEAR_VARS)
  308. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  309. LOCAL_MODULE := wcd938x_dlkm.ko
  310. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/wcd938x/wcd938x_dlkm.ko
  311. LOCAL_MODULE_TAGS := optional
  312. LOCAL_MODULE_DEBUG_ENABLE := true
  313. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  314. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  315. ###########################################################
  316. include $(CLEAR_VARS)
  317. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  318. LOCAL_MODULE := wcd938x_slave_dlkm.ko
  319. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/wcd938x/wcd938x_slave_dlkm.ko
  320. LOCAL_MODULE_TAGS := optional
  321. LOCAL_MODULE_DEBUG_ENABLE := true
  322. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  323. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  324. ########################### WCD939x CODEC ################################
  325. include $(CLEAR_VARS)
  326. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  327. LOCAL_MODULE := wcd939x_dlkm.ko
  328. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/wcd939x/wcd939x_dlkm.ko
  329. LOCAL_MODULE_TAGS := optional
  330. LOCAL_MODULE_DEBUG_ENABLE := true
  331. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  332. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  333. ###########################################################
  334. include $(CLEAR_VARS)
  335. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  336. LOCAL_MODULE := wcd939x_slave_dlkm.ko
  337. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/wcd939x/wcd939x_slave_dlkm.ko
  338. LOCAL_MODULE_TAGS := optional
  339. LOCAL_MODULE_DEBUG_ENABLE := true
  340. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  341. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  342. ###########################################################
  343. include $(CLEAR_VARS)
  344. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  345. LOCAL_MODULE := hdmi_dlkm.ko
  346. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/hdmi_dlkm.ko
  347. LOCAL_MODULE_TAGS := optional
  348. LOCAL_MODULE_DEBUG_ENABLE := true
  349. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  350. LOCAL_REQUIRED_MODULES := msm-ext-disp-module-symvers
  351. LOCAL_ADDITIONAL_DEPENDENCIES := $(call intermediates-dir-for,DLKM,msm-ext-disp-module-symvers)/Module.symvers
  352. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  353. endif
  354. ifeq ($(call is-board-platform-in-list, bengal holi blair),true)
  355. ###########################################################
  356. include $(CLEAR_VARS)
  357. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  358. LOCAL_MODULE := bolero_cdc_dlkm.ko
  359. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/bolero/bolero_cdc_dlkm.ko
  360. LOCAL_MODULE_TAGS := optional
  361. LOCAL_MODULE_DEBUG_ENABLE := true
  362. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  363. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  364. ###########################################################
  365. include $(CLEAR_VARS)
  366. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  367. LOCAL_MODULE := va_macro_dlkm.ko
  368. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/bolero/va_macro_dlkm.ko
  369. LOCAL_MODULE_TAGS := optional
  370. LOCAL_MODULE_DEBUG_ENABLE := true
  371. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  372. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  373. ###########################################################
  374. include $(CLEAR_VARS)
  375. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  376. LOCAL_MODULE := tx_macro_dlkm.ko
  377. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/bolero/tx_macro_dlkm.ko
  378. LOCAL_MODULE_TAGS := optional
  379. LOCAL_MODULE_DEBUG_ENABLE := true
  380. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  381. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  382. ###########################################################
  383. include $(CLEAR_VARS)
  384. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  385. LOCAL_MODULE := rx_macro_dlkm.ko
  386. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/bolero/rx_macro_dlkm.ko
  387. LOCAL_MODULE_TAGS := optional
  388. LOCAL_MODULE_DEBUG_ENABLE := true
  389. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  390. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  391. ###########################################################
  392. include $(CLEAR_VARS)
  393. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  394. LOCAL_MODULE := wsa881x_analog_dlkm.ko
  395. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/wsa881x_analog_dlkm.ko
  396. LOCAL_MODULE_TAGS := optional
  397. LOCAL_MODULE_DEBUG_ENABLE := true
  398. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  399. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  400. ########################### WCD937x CODEC ################################
  401. include $(CLEAR_VARS)
  402. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  403. LOCAL_MODULE := wcd937x_dlkm.ko
  404. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/wcd937x/wcd937x_dlkm.ko
  405. LOCAL_MODULE_TAGS := optional
  406. LOCAL_MODULE_DEBUG_ENABLE := true
  407. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  408. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  409. ###########################################################
  410. include $(CLEAR_VARS)
  411. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  412. LOCAL_MODULE := wcd937x_slave_dlkm.ko
  413. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/wcd937x/wcd937x_slave_dlkm.ko
  414. LOCAL_MODULE_TAGS := optional
  415. LOCAL_MODULE_DEBUG_ENABLE := true
  416. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  417. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  418. endif
  419. ifeq ($(call is-board-platform-in-list,holi blair),true)
  420. ########################### WCD938x CODEC ################################
  421. include $(CLEAR_VARS)
  422. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  423. LOCAL_MODULE := wcd938x_dlkm.ko
  424. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/wcd938x/wcd938x_dlkm.ko
  425. LOCAL_MODULE_TAGS := optional
  426. LOCAL_MODULE_DEBUG_ENABLE := true
  427. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  428. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  429. ###########################################################
  430. include $(CLEAR_VARS)
  431. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  432. LOCAL_MODULE := wcd938x_slave_dlkm.ko
  433. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/wcd938x/wcd938x_slave_dlkm.ko
  434. LOCAL_MODULE_TAGS := optional
  435. LOCAL_MODULE_DEBUG_ENABLE := true
  436. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  437. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  438. endif
  439. ##########################################################
  440. endif # DLKM check
  441. endif # supported target check