Android.mk 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467
  1. # Android makefile for audio kernel modules
  2. LOCAL_PATH := $(call my-dir)
  3. ifeq ($(call is-board-platform, taro),true)
  4. AUDIO_SELECT := CONFIG_SND_SOC_WAIPIO=m
  5. endif
  6. ifeq ($(call is-board-platform, kalama),true)
  7. AUDIO_SELECT := CONFIG_SND_SOC_KALAMA=m
  8. endif
  9. ifeq ($(call is-board-platform, bengal),true)
  10. AUDIO_SELECT := CONFIG_SND_SOC_BENGAL=m
  11. endif
  12. ifeq ($(call is-board-platform, holi blair),true)
  13. AUDIO_SELECT := CONFIG_SND_SOC_HOLI=m
  14. endif
  15. ifeq ($(call is-board-platform, 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. DLKM_DIR := $(TOP)/device/qcom/common/dlkm
  30. ###########################################################
  31. # This is set once per LOCAL_PATH, not per (kernel) module
  32. KBUILD_OPTIONS := AUDIO_ROOT=$(AUDIO_BLD_DIR)
  33. # We are actually building audio.ko here, as per the
  34. # requirement we are specifying <chipset>_audio.ko as LOCAL_MODULE.
  35. # This means we need to rename the module to <chipset>_audio.ko
  36. # after audio.ko is built.
  37. KBUILD_OPTIONS += MODNAME=audio_dlkm
  38. KBUILD_OPTIONS += BOARD_PLATFORM=$(TARGET_BOARD_PLATFORM)
  39. KBUILD_OPTIONS += $(AUDIO_SELECT)
  40. ifneq ($(call is-board-platform-in-list, bengal holi blair),true)
  41. KBUILD_OPTIONS += KBUILD_EXTRA_SYMBOLS=$(PWD)/$(call intermediates-dir-for,DLKM,msm-ext-disp-module-symvers)/Module.symvers
  42. endif
  43. AUDIO_SRC_FILES := \
  44. $(wildcard $(LOCAL_PATH)/*) \
  45. $(wildcard $(LOCAL_PATH)/*/*) \
  46. $(wildcard $(LOCAL_PATH)/*/*/*) \
  47. $(wildcard $(LOCAL_PATH)/*/*/*/*)
  48. ########################### dsp ################################
  49. include $(CLEAR_VARS)
  50. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  51. LOCAL_MODULE := q6_notifier_dlkm.ko
  52. LOCAL_MODULE_KBUILD_NAME := dsp/q6_notifier_dlkm.ko
  53. LOCAL_MODULE_TAGS := optional
  54. LOCAL_MODULE_DEBUG_ENABLE := true
  55. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  56. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  57. ###########################################################
  58. include $(CLEAR_VARS)
  59. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  60. LOCAL_MODULE := spf_core_dlkm.ko
  61. LOCAL_MODULE_KBUILD_NAME := dsp/spf_core_dlkm.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. include $(CLEAR_VARS)
  68. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  69. LOCAL_MODULE := audpkt_ion_dlkm.ko
  70. LOCAL_MODULE_KBUILD_NAME := dsp/audpkt_ion_dlkm.ko
  71. LOCAL_MODULE_TAGS := optional
  72. LOCAL_MODULE_DEBUG_ENABLE := true
  73. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  74. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  75. ###########################################################
  76. include $(CLEAR_VARS)
  77. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  78. LOCAL_MODULE := gpr_dlkm.ko
  79. LOCAL_MODULE_KBUILD_NAME := ipc/gpr_dlkm.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. include $(CLEAR_VARS)
  86. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  87. LOCAL_MODULE := audio_pkt_dlkm.ko
  88. LOCAL_MODULE_KBUILD_NAME := ipc/audio_pkt_dlkm.ko
  89. LOCAL_MODULE_TAGS := optional
  90. LOCAL_MODULE_DEBUG_ENABLE := true
  91. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  92. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  93. ###########################################################
  94. include $(CLEAR_VARS)
  95. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  96. LOCAL_MODULE := q6_dlkm.ko
  97. LOCAL_MODULE_KBUILD_NAME := dsp/q6_dlkm.ko
  98. LOCAL_MODULE_TAGS := optional
  99. LOCAL_MODULE_DEBUG_ENABLE := true
  100. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  101. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  102. ###########################################################
  103. include $(CLEAR_VARS)
  104. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  105. LOCAL_MODULE := adsp_loader_dlkm.ko
  106. LOCAL_MODULE_KBUILD_NAME := dsp/adsp_loader_dlkm.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. ########################### ipc ################################
  112. include $(CLEAR_VARS)
  113. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  114. LOCAL_MODULE := audio_prm_dlkm.ko
  115. LOCAL_MODULE_KBUILD_NAME := dsp/audio_prm_dlkm.ko
  116. LOCAL_MODULE_TAGS := optional
  117. LOCAL_MODULE_DEBUG_ENABLE := true
  118. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  119. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  120. ###########################################################
  121. include $(CLEAR_VARS)
  122. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  123. LOCAL_MODULE := q6_pdr_dlkm.ko
  124. LOCAL_MODULE_KBUILD_NAME := dsp/q6_pdr_dlkm.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. ############################ soc ###############################
  130. include $(CLEAR_VARS)
  131. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  132. LOCAL_MODULE := pinctrl_lpi_dlkm.ko
  133. LOCAL_MODULE_KBUILD_NAME := soc/pinctrl_lpi_dlkm.ko
  134. LOCAL_MODULE_TAGS := optional
  135. LOCAL_MODULE_DEBUG_ENABLE := true
  136. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  137. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  138. ###########################################################
  139. include $(CLEAR_VARS)
  140. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  141. LOCAL_MODULE := swr_dlkm.ko
  142. LOCAL_MODULE_KBUILD_NAME := soc/swr_dlkm.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. include $(CLEAR_VARS)
  149. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  150. LOCAL_MODULE := swr_ctrl_dlkm.ko
  151. LOCAL_MODULE_KBUILD_NAME := soc/swr_ctrl_dlkm.ko
  152. LOCAL_MODULE_TAGS := optional
  153. LOCAL_MODULE_DEBUG_ENABLE := true
  154. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  155. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  156. ###########################################################
  157. include $(CLEAR_VARS)
  158. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  159. LOCAL_MODULE := snd_event_dlkm.ko
  160. LOCAL_MODULE_KBUILD_NAME := soc/snd_event_dlkm.ko
  161. LOCAL_MODULE_TAGS := optional
  162. LOCAL_MODULE_DEBUG_ENABLE := true
  163. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  164. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  165. ########################### ASOC CODEC ################################
  166. include $(CLEAR_VARS)
  167. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  168. LOCAL_MODULE := wcd_core_dlkm.ko
  169. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/wcd_core_dlkm.ko
  170. LOCAL_MODULE_TAGS := optional
  171. LOCAL_MODULE_DEBUG_ENABLE := true
  172. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  173. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  174. ###########################################################
  175. include $(CLEAR_VARS)
  176. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  177. LOCAL_MODULE := mbhc_dlkm.ko
  178. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/mbhc_dlkm.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. ifneq ($(call is-board-platform-in-list, bengal holi blair),true)
  185. include $(CLEAR_VARS)
  186. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  187. LOCAL_MODULE := swr_dmic_dlkm.ko
  188. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/swr_dmic_dlkm.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. endif
  194. ###########################################################
  195. include $(CLEAR_VARS)
  196. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  197. LOCAL_MODULE := wcd9xxx_dlkm.ko
  198. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/wcd9xxx_dlkm.ko
  199. LOCAL_MODULE_TAGS := optional
  200. LOCAL_MODULE_DEBUG_ENABLE := true
  201. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  202. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  203. ###########################################################
  204. ifneq ($(call is-board-platform-in-list, bengal holi blair),true)
  205. include $(CLEAR_VARS)
  206. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  207. LOCAL_MODULE := swr_haptics_dlkm.ko
  208. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/swr_haptics_dlkm.ko
  209. LOCAL_MODULE_TAGS := optional
  210. LOCAL_MODULE_DEBUG_ENABLE := true
  211. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  212. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  213. endif
  214. ###########################################################
  215. include $(CLEAR_VARS)
  216. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  217. LOCAL_MODULE := stub_dlkm.ko
  218. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/stub_dlkm.ko
  219. LOCAL_MODULE_TAGS := optional
  220. LOCAL_MODULE_DEBUG_ENABLE := true
  221. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  222. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  223. ########################### ASOC MACHINE ################################
  224. include $(CLEAR_VARS)
  225. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  226. LOCAL_MODULE := machine_dlkm.ko
  227. LOCAL_MODULE_KBUILD_NAME := asoc/machine_dlkm.ko
  228. LOCAL_MODULE_TAGS := optional
  229. LOCAL_MODULE_DEBUG_ENABLE := true
  230. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  231. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  232. ########################### LPASS-CDC CODEC ###########################
  233. ifneq ($(call is-board-platform-in-list, bengal holi blair),true)
  234. include $(CLEAR_VARS)
  235. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  236. LOCAL_MODULE := lpass_cdc_dlkm.ko
  237. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/lpass-cdc/lpass_cdc_dlkm.ko
  238. LOCAL_MODULE_TAGS := optional
  239. LOCAL_MODULE_DEBUG_ENABLE := true
  240. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  241. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  242. ###########################################################
  243. include $(CLEAR_VARS)
  244. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  245. LOCAL_MODULE := lpass_cdc_wsa2_macro_dlkm.ko
  246. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/lpass-cdc/lpass_cdc_wsa2_macro_dlkm.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. include $(CLEAR_VARS)
  253. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  254. LOCAL_MODULE := lpass_cdc_wsa_macro_dlkm.ko
  255. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/lpass-cdc/lpass_cdc_wsa_macro_dlkm.ko
  256. LOCAL_MODULE_TAGS := optional
  257. LOCAL_MODULE_DEBUG_ENABLE := true
  258. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  259. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  260. ###########################################################
  261. include $(CLEAR_VARS)
  262. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  263. LOCAL_MODULE := lpass_cdc_va_macro_dlkm.ko
  264. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/lpass-cdc/lpass_cdc_va_macro_dlkm.ko
  265. LOCAL_MODULE_TAGS := optional
  266. LOCAL_MODULE_DEBUG_ENABLE := true
  267. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  268. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  269. ###########################################################
  270. include $(CLEAR_VARS)
  271. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  272. LOCAL_MODULE := lpass_cdc_tx_macro_dlkm.ko
  273. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/lpass-cdc/lpass_cdc_tx_macro_dlkm.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. include $(CLEAR_VARS)
  280. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  281. LOCAL_MODULE := lpass_cdc_rx_macro_dlkm.ko
  282. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/lpass-cdc/lpass_cdc_rx_macro_dlkm.ko
  283. LOCAL_MODULE_TAGS := optional
  284. LOCAL_MODULE_DEBUG_ENABLE := true
  285. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  286. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  287. ########################### WSA884x CODEC ###########################
  288. include $(CLEAR_VARS)
  289. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  290. LOCAL_MODULE := wsa884x_dlkm.ko
  291. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/wsa884x/wsa884x_dlkm.ko
  292. LOCAL_MODULE_TAGS := optional
  293. LOCAL_MODULE_DEBUG_ENABLE := true
  294. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  295. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  296. ########################### WSA883x CODEC ###########################
  297. include $(CLEAR_VARS)
  298. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  299. LOCAL_MODULE := wsa883x_dlkm.ko
  300. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/wsa883x/wsa883x_dlkm.ko
  301. LOCAL_MODULE_TAGS := optional
  302. LOCAL_MODULE_DEBUG_ENABLE := true
  303. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  304. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  305. ########################### WCD938x CODEC ################################
  306. include $(CLEAR_VARS)
  307. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  308. LOCAL_MODULE := wcd938x_dlkm.ko
  309. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/wcd938x/wcd938x_dlkm.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. include $(CLEAR_VARS)
  316. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  317. LOCAL_MODULE := wcd938x_slave_dlkm.ko
  318. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/wcd938x/wcd938x_slave_dlkm.ko
  319. LOCAL_MODULE_TAGS := optional
  320. LOCAL_MODULE_DEBUG_ENABLE := true
  321. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  322. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  323. ########################### WCD939x CODEC ################################
  324. include $(CLEAR_VARS)
  325. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  326. LOCAL_MODULE := wcd939x_dlkm.ko
  327. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/wcd939x/wcd939x_dlkm.ko
  328. LOCAL_MODULE_TAGS := optional
  329. LOCAL_MODULE_DEBUG_ENABLE := true
  330. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  331. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  332. ###########################################################
  333. include $(CLEAR_VARS)
  334. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  335. LOCAL_MODULE := wcd939x_slave_dlkm.ko
  336. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/wcd939x/wcd939x_slave_dlkm.ko
  337. LOCAL_MODULE_TAGS := optional
  338. LOCAL_MODULE_DEBUG_ENABLE := true
  339. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  340. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  341. ###########################################################
  342. include $(CLEAR_VARS)
  343. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  344. LOCAL_MODULE := hdmi_dlkm.ko
  345. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/hdmi_dlkm.ko
  346. LOCAL_MODULE_TAGS := optional
  347. LOCAL_MODULE_DEBUG_ENABLE := true
  348. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  349. LOCAL_REQUIRED_MODULES := msm-ext-disp-module-symvers
  350. LOCAL_ADDITIONAL_DEPENDENCIES := $(call intermediates-dir-for,DLKM,msm-ext-disp-module-symvers)/Module.symvers
  351. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  352. endif
  353. ifeq ($(call is-board-platform-in-list, bengal holi blair),true)
  354. ###########################################################
  355. include $(CLEAR_VARS)
  356. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  357. LOCAL_MODULE := bolero_cdc_dlkm.ko
  358. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/bolero/bolero_cdc_dlkm.ko
  359. LOCAL_MODULE_TAGS := optional
  360. LOCAL_MODULE_DEBUG_ENABLE := true
  361. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  362. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  363. ###########################################################
  364. include $(CLEAR_VARS)
  365. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  366. LOCAL_MODULE := va_macro_dlkm.ko
  367. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/bolero/va_macro_dlkm.ko
  368. LOCAL_MODULE_TAGS := optional
  369. LOCAL_MODULE_DEBUG_ENABLE := true
  370. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  371. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  372. ###########################################################
  373. include $(CLEAR_VARS)
  374. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  375. LOCAL_MODULE := tx_macro_dlkm.ko
  376. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/bolero/tx_macro_dlkm.ko
  377. LOCAL_MODULE_TAGS := optional
  378. LOCAL_MODULE_DEBUG_ENABLE := true
  379. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  380. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  381. ###########################################################
  382. include $(CLEAR_VARS)
  383. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  384. LOCAL_MODULE := rx_macro_dlkm.ko
  385. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/bolero/rx_macro_dlkm.ko
  386. LOCAL_MODULE_TAGS := optional
  387. LOCAL_MODULE_DEBUG_ENABLE := true
  388. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  389. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  390. ###########################################################
  391. include $(CLEAR_VARS)
  392. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  393. LOCAL_MODULE := wsa881x_analog_dlkm.ko
  394. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/wsa881x_analog_dlkm.ko
  395. LOCAL_MODULE_TAGS := optional
  396. LOCAL_MODULE_DEBUG_ENABLE := true
  397. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  398. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  399. ########################### WCD937x CODEC ################################
  400. include $(CLEAR_VARS)
  401. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  402. LOCAL_MODULE := wcd937x_dlkm.ko
  403. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/wcd937x/wcd937x_dlkm.ko
  404. LOCAL_MODULE_TAGS := optional
  405. LOCAL_MODULE_DEBUG_ENABLE := true
  406. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  407. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  408. ###########################################################
  409. include $(CLEAR_VARS)
  410. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  411. LOCAL_MODULE := wcd937x_slave_dlkm.ko
  412. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/wcd937x/wcd937x_slave_dlkm.ko
  413. LOCAL_MODULE_TAGS := optional
  414. LOCAL_MODULE_DEBUG_ENABLE := true
  415. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  416. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  417. endif
  418. ifeq ($(call is-board-platform-in-list,holi blair),true)
  419. ########################### WCD938x CODEC ################################
  420. include $(CLEAR_VARS)
  421. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  422. LOCAL_MODULE := wcd938x_dlkm.ko
  423. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/wcd938x/wcd938x_dlkm.ko
  424. LOCAL_MODULE_TAGS := optional
  425. LOCAL_MODULE_DEBUG_ENABLE := true
  426. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  427. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  428. ###########################################################
  429. include $(CLEAR_VARS)
  430. LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
  431. LOCAL_MODULE := wcd938x_slave_dlkm.ko
  432. LOCAL_MODULE_KBUILD_NAME := asoc/codecs/wcd938x/wcd938x_slave_dlkm.ko
  433. LOCAL_MODULE_TAGS := optional
  434. LOCAL_MODULE_DEBUG_ENABLE := true
  435. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  436. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  437. endif
  438. ##########################################################
  439. endif # DLKM check
  440. endif # supported target check