|
@@ -14,6 +14,10 @@ ifeq ($(call is-board-platform, bengal),true)
|
|
|
AUDIO_SELECT := CONFIG_SND_SOC_BENGAL=m
|
|
|
endif
|
|
|
|
|
|
+ifeq ($(call is-board-platform, holi blair),true)
|
|
|
+AUDIO_SELECT := CONFIG_SND_SOC_HOLI=m
|
|
|
+endif
|
|
|
+
|
|
|
ifeq ($(call is-board-platform, pineapple),true)
|
|
|
AUDIO_SELECT := CONFIG_SND_SOC_PINEAPPLE=m
|
|
|
endif
|
|
@@ -23,7 +27,7 @@ include $(call all-subdir-makefiles)
|
|
|
endif
|
|
|
|
|
|
# Build/Package only in case of supported target
|
|
|
-ifeq ($(call is-board-platform-in-list,taro kalama bengal pineapple), true)
|
|
|
+ifeq ($(call is-board-platform-in-list,taro kalama bengal pineapple holi blair), true)
|
|
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
@@ -48,7 +52,10 @@ KBUILD_OPTIONS := AUDIO_ROOT=$(AUDIO_BLD_DIR)
|
|
|
KBUILD_OPTIONS += MODNAME=audio_dlkm
|
|
|
KBUILD_OPTIONS += BOARD_PLATFORM=$(TARGET_BOARD_PLATFORM)
|
|
|
KBUILD_OPTIONS += $(AUDIO_SELECT)
|
|
|
+
|
|
|
+ifneq ($(call is-board-platform-in-list, bengal holi blair),true)
|
|
|
KBUILD_OPTIONS += KBUILD_EXTRA_SYMBOLS=$(PWD)/$(call intermediates-dir-for,DLKM,msm-ext-disp-module-symvers)/Module.symvers
|
|
|
+endif
|
|
|
|
|
|
AUDIO_SRC_FILES := \
|
|
|
$(wildcard $(LOCAL_PATH)/*) \
|
|
@@ -196,7 +203,7 @@ LOCAL_MODULE_DEBUG_ENABLE := true
|
|
|
LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
|
|
|
include $(DLKM_DIR)/Build_external_kernelmodule.mk
|
|
|
###########################################################
|
|
|
-ifneq ($(call is-board-platform-in-list, bengal),true)
|
|
|
+ifneq ($(call is-board-platform-in-list, bengal holi blair),true)
|
|
|
include $(CLEAR_VARS)
|
|
|
LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
|
|
|
LOCAL_MODULE := swr_dmic_dlkm.ko
|
|
@@ -216,7 +223,7 @@ LOCAL_MODULE_DEBUG_ENABLE := true
|
|
|
LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
|
|
|
include $(DLKM_DIR)/Build_external_kernelmodule.mk
|
|
|
###########################################################
|
|
|
-ifneq ($(call is-board-platform-in-list, bengal),true)
|
|
|
+ifneq ($(call is-board-platform-in-list, bengal holi blair),true)
|
|
|
include $(CLEAR_VARS)
|
|
|
LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
|
|
|
LOCAL_MODULE := swr_haptics_dlkm.ko
|
|
@@ -245,7 +252,7 @@ LOCAL_MODULE_DEBUG_ENABLE := true
|
|
|
LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
|
|
|
include $(DLKM_DIR)/Build_external_kernelmodule.mk
|
|
|
########################### LPASS-CDC CODEC ###########################
|
|
|
-ifneq ($(call is-board-platform-in-list, bengal),true)
|
|
|
+ifneq ($(call is-board-platform-in-list, bengal holi blair),true)
|
|
|
include $(CLEAR_VARS)
|
|
|
LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
|
|
|
LOCAL_MODULE := lpass_cdc_dlkm.ko
|
|
@@ -369,7 +376,7 @@ LOCAL_ADDITIONAL_DEPENDENCIES := $(call intermediates-dir-for,DLKM,msm-ext-disp-
|
|
|
include $(DLKM_DIR)/Build_external_kernelmodule.mk
|
|
|
endif
|
|
|
|
|
|
-ifeq ($(call is-board-platform-in-list, bengal),true)
|
|
|
+ifeq ($(call is-board-platform-in-list, bengal holi blair),true)
|
|
|
###########################################################
|
|
|
include $(CLEAR_VARS)
|
|
|
LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
|
|
@@ -434,6 +441,27 @@ LOCAL_MODULE_DEBUG_ENABLE := true
|
|
|
LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
|
|
|
include $(DLKM_DIR)/Build_external_kernelmodule.mk
|
|
|
endif
|
|
|
+
|
|
|
+ifeq ($(call is-board-platform-in-list,holi blair),true)
|
|
|
+########################### WCD938x CODEC ################################
|
|
|
+include $(CLEAR_VARS)
|
|
|
+LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
|
|
|
+LOCAL_MODULE := wcd938x_dlkm.ko
|
|
|
+LOCAL_MODULE_KBUILD_NAME := asoc/codecs/wcd938x/wcd938x_dlkm.ko
|
|
|
+LOCAL_MODULE_TAGS := optional
|
|
|
+LOCAL_MODULE_DEBUG_ENABLE := true
|
|
|
+LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
|
|
|
+include $(DLKM_DIR)/Build_external_kernelmodule.mk
|
|
|
###########################################################
|
|
|
+include $(CLEAR_VARS)
|
|
|
+LOCAL_SRC_FILES := $(AUDIO_SRC_FILES)
|
|
|
+LOCAL_MODULE := wcd938x_slave_dlkm.ko
|
|
|
+LOCAL_MODULE_KBUILD_NAME := asoc/codecs/wcd938x/wcd938x_slave_dlkm.ko
|
|
|
+LOCAL_MODULE_TAGS := optional
|
|
|
+LOCAL_MODULE_DEBUG_ENABLE := true
|
|
|
+LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
|
|
|
+include $(DLKM_DIR)/Build_external_kernelmodule.mk
|
|
|
+endif
|
|
|
+##########################################################
|
|
|
endif # DLKM check
|
|
|
endif # supported target check
|