summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorCong Tang <congt@codeaurora.org>2018-12-17 19:45:55 +0800
committerDerek Chen <chenche@codeaurora.org>2019-06-20 13:50:31 -0700
commit1fa4e0449ca1518d80f4c6aebddd7d057961e216 (patch)
tree93d0782a056039247a2df77e9e2b2a7a753ddbea /ipc
parentac2cc5456ab3823dea5f7376e279053d6c4ae826 (diff)
downloadmsm-extra-1fa4e0449ca1518d80f4c6aebddd7d057961e216.tar.gz
audio-driver: Update build files for LA automotive
enable conditional build for audio driver modules for LA automotive. Change-Id: Ifb18ea6f8af531a99e29904c2245424657b42df7 Signed-off-by: Cong Tang <congt@codeaurora.org>
Diffstat (limited to 'ipc')
-rw-r--r--ipc/Android.mk6
-rw-r--r--ipc/Kbuild12
2 files changed, 15 insertions, 3 deletions
diff --git a/ipc/Android.mk b/ipc/Android.mk
index 800d8d4b..e3374ead 100644
--- a/ipc/Android.mk
+++ b/ipc/Android.mk
@@ -4,8 +4,12 @@
# Check if this driver needs be built for current target
ifeq ($(call is-board-platform,msmnile),true)
+ifeq ($(TARGET_PRODUCT), $(filter $(TARGET_PRODUCT), msmnile_au))
+AUDIO_SELECT := CONFIG_SND_SOC_SA8155=m
+else
AUDIO_SELECT := CONFIG_SND_SOC_SM8150=m
endif
+endif
ifeq ($(call is-board-platform,$(MSMSTEPPE) $(TRINKET)),true)
AUDIO_SELECT := CONFIG_SND_SOC_SM6150=m
@@ -57,6 +61,7 @@ LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
include $(DLKM_DIR)/AndroidKernelModule.mk
###########################################################
ifeq ($(call is-board-platform-in-list,msmnile $(MSMSTEPPE) $(TRINKET)),true)
+ifneq ($(TARGET_PRODUCT), $(filter $(TARGET_PRODUCT), msmnile_au))
include $(CLEAR_VARS)
LOCAL_MODULE := $(AUDIO_CHIPSET)_wglink.ko
LOCAL_MODULE_KBUILD_NAME := wglink_dlkm.ko
@@ -65,6 +70,7 @@ LOCAL_MODULE_DEBUG_ENABLE := true
LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
include $(DLKM_DIR)/AndroidKernelModule.mk
endif
+endif
###########################################################
endif # DLKM check
diff --git a/ipc/Kbuild b/ipc/Kbuild
index 5ab0131b..30afc60c 100644
--- a/ipc/Kbuild
+++ b/ipc/Kbuild
@@ -35,9 +35,15 @@ ifeq ($(KERNEL_BUILD), 0)
INCS += -include $(AUDIO_ROOT)/config/litoautoconf.h
endif
ifeq ($(CONFIG_ARCH_SM8150), y)
- include $(AUDIO_ROOT)/config/sm8150auto.conf
- export
- INCS += -include $(AUDIO_ROOT)/config/sm8150autoconf.h
+ ifdef CONFIG_SND_SOC_SA8155
+ include $(AUDIO_ROOT)/config/sa8155auto.conf
+ export
+ INCS += -include $(AUDIO_ROOT)/config/sa8155autoconf.h
+ else
+ include $(AUDIO_ROOT)/config/sm8150auto.conf
+ export
+ INCS += -include $(AUDIO_ROOT)/config/sm8150autoconf.h
+ endif
endif
ifeq ($(CONFIG_ARCH_QCS405), y)
include $(AUDIO_ROOT)/config/qcs405auto.conf