From 6d74b706f036462971c470f39af81077cfffb7a8 Mon Sep 17 00:00:00 2001 From: Abhishek Arpure Date: Thu, 5 Apr 2018 13:50:25 +0530 Subject: [PATCH] Initial Android target definition for msmsteppe Add MSMSTEPPE in the makefile rules to enable compilation for SDM640. Change-Id: I36437404d98229c8b292fd63304498122d8c8687 Signed-off-by: Tanya Dixit --- Android.mk | 6 +++--- asoc/Android.mk | 7 ++++++- asoc/Kbuild | 5 +++++ asoc/codecs/Android.mk | 6 +++++- asoc/codecs/Kbuild | 5 +++++ asoc/codecs/aqt1000/Kbuild | 5 +++++ asoc/codecs/wcd934x/Android.mk | 6 +++++- asoc/codecs/wcd934x/Kbuild | 5 +++++ asoc/codecs/wcd9360/Android.mk | 6 +++++- asoc/codecs/wcd9360/Kbuild | 5 +++++ dsp/Android.mk | 6 +++++- dsp/Kbuild | 5 +++++ dsp/codecs/Android.mk | 6 +++++- dsp/codecs/Kbuild | 5 +++++ ipc/Android.mk | 6 +++++- soc/Android.mk | 6 +++++- soc/Kbuild | 5 +++++ 17 files changed, 84 insertions(+), 11 deletions(-) diff --git a/Android.mk b/Android.mk index 6b4894bbf0f6..55bcbf10d14e 100644 --- a/Android.mk +++ b/Android.mk @@ -3,7 +3,7 @@ MY_LOCAL_PATH := $(call my-dir) UAPI_OUT := $(PRODUCT_OUT)/obj/vendor/qcom/opensource/audio-kernel/include -ifeq ($(call is-board-platform-in-list,msm8953 sdm845 sdm670 qcs605 msmnile),true) +ifeq ($(call is-board-platform-in-list,msm8953 sdm845 sdm670 qcs605 msmnile $(MSMSTEPPE)),true) $(shell mkdir -p $(UAPI_OUT)/linux;) $(shell mkdir -p $(UAPI_OUT)/sound;) $(shell rm -rf $(PRODUCT_OUT)/obj/vendor/qcom/opensource/audio-kernel/ipc/Module.symvers) @@ -24,7 +24,7 @@ include $(MY_LOCAL_PATH)/asoc/codecs/Android.mk include $(MY_LOCAL_PATH)/asoc/codecs/wcd934x/Android.mk endif -ifeq ($(call is-board-platform-in-list,sdm670 msmnile),true) +ifeq ($(call is-board-platform-in-list,sdm670 msmnile $(MSMSTEPPE)),true) $(shell rm -rf $(PRODUCT_OUT)/obj/vendor/qcom/opensource/audio-kernel/asoc/codecs/aqt1000/Module.symvers) include $(MY_LOCAL_PATH)/asoc/codecs/aqt1000/Android.mk endif @@ -36,7 +36,7 @@ include $(MY_LOCAL_PATH)/asoc/codecs/sdm660_cdc/Android.mk include $(MY_LOCAL_PATH)/asoc/codecs/msm_sdw/Android.mk endif -ifeq ($(call is-board-platform-in-list,msmnile),true) +ifeq ($(call is-board-platform-in-list,msmnile $(MSMSTEPPE)),true) $(shell rm -rf $(PRODUCT_OUT)/obj/vendor/qcom/opensource/audio-kernel/asoc/codecs/wcd9360/Module.symvers) include $(MY_LOCAL_PATH)/asoc/codecs/wcd9360/Android.mk endif diff --git a/asoc/Android.mk b/asoc/Android.mk index cb2ce0c9f24f..26c898bdb059 100644 --- a/asoc/Android.mk +++ b/asoc/Android.mk @@ -18,9 +18,14 @@ TARGET := msmnile AUDIO_SELECT := CONFIG_SND_SOC_SM8150=m endif +ifeq ($(call is-board-platform,$(MSMSTEPPE)),true) +TARGET := $(MSMSTEPPE) +AUDIO_SELECT := CONFIG_SND_SOC_SM6150=m +endif + AUDIO_CHIPSET := audio # Build/Package only in case of supported target -ifeq ($(call is-board-platform-in-list,msm8953 sdm845 sdm670 qcs605 msmnile),true) +ifeq ($(call is-board-platform-in-list,msm8953 sdm845 sdm670 qcs605 msmnile $(MSMSTEPPE)),true) LOCAL_PATH := $(call my-dir) diff --git a/asoc/Kbuild b/asoc/Kbuild index aea56621abbc..893d95b06763 100644 --- a/asoc/Kbuild +++ b/asoc/Kbuild @@ -35,6 +35,11 @@ ifeq ($(KERNEL_BUILD), 0) export INCS += -include $(AUDIO_ROOT)/config/sm8150autoconf.h endif + ifeq ($(CONFIG_ARCH_SDM640), y) + include $(AUDIO_ROOT)/config/sm8150auto.conf + export + INCS += -include $(AUDIO_ROOT)/config/sm8150autoconf.h + endif ifeq ($(CONFIG_ARCH_SDMSHRIKE), y) include $(AUDIO_ROOT)/config/sm8150auto.conf export diff --git a/asoc/codecs/Android.mk b/asoc/codecs/Android.mk index 803e4809c30a..a35a64bb7b5d 100644 --- a/asoc/codecs/Android.mk +++ b/asoc/codecs/Android.mk @@ -15,9 +15,13 @@ ifeq ($(call is-board-platform,msmnile),true) AUDIO_SELECT := CONFIG_SND_SOC_SM8150=m endif +ifeq ($(call is-board-platform,$(MSMSTEPPE)),true) +AUDIO_SELECT := CONFIG_SND_SOC_SM6150=m +endif + AUDIO_CHIPSET := audio # Build/Package only in case of supported target -ifeq ($(call is-board-platform-in-list,msm8953 sdm845 sdm670 qcs605 msmnile),true) +ifeq ($(call is-board-platform-in-list,msm8953 sdm845 sdm670 qcs605 msmnile $(MSMSTEPPE)),true) LOCAL_PATH := $(call my-dir) diff --git a/asoc/codecs/Kbuild b/asoc/codecs/Kbuild index 9f3cfce55288..d3789b553f5b 100644 --- a/asoc/codecs/Kbuild +++ b/asoc/codecs/Kbuild @@ -34,6 +34,11 @@ ifeq ($(KERNEL_BUILD), 0) export INCS += -include $(AUDIO_ROOT)/config/sm8150autoconf.h endif + ifeq ($(CONFIG_ARCH_SDM640), y) + include $(AUDIO_ROOT)/config/sm8150auto.conf + export + INCS += -include $(AUDIO_ROOT)/config/sm8150autoconf.h + endif ifeq ($(CONFIG_ARCH_SDMSHRIKE), y) include $(AUDIO_ROOT)/config/sm8150auto.conf export diff --git a/asoc/codecs/aqt1000/Kbuild b/asoc/codecs/aqt1000/Kbuild index 6523ce6d6b09..d870c1df1278 100644 --- a/asoc/codecs/aqt1000/Kbuild +++ b/asoc/codecs/aqt1000/Kbuild @@ -28,6 +28,11 @@ ifeq ($(KERNEL_BUILD), 0) export INCS += -include $(AUDIO_ROOT)/config/sm8150autoconf.h endif + ifeq ($(CONFIG_ARCH_SDM640), y) + include $(AUDIO_ROOT)/config/sm8150auto.conf + export + INCS += -include $(AUDIO_ROOT)/config/sm8150autoconf.h + endif ifeq ($(CONFIG_ARCH_SDMSHRIKE), y) include $(AUDIO_ROOT)/config/sm8150auto.conf diff --git a/asoc/codecs/wcd934x/Android.mk b/asoc/codecs/wcd934x/Android.mk index 313d51355d25..6b5cca55e922 100644 --- a/asoc/codecs/wcd934x/Android.mk +++ b/asoc/codecs/wcd934x/Android.mk @@ -11,13 +11,17 @@ ifeq ($(call is-board-platform,msmnile),true) AUDIO_SELECT := CONFIG_SND_SOC_SM8150=m endif +ifeq ($(call is-board-platform,$(MSMSTEPPE)),true) +AUDIO_SELECT := CONFIG_SND_SOC_SM6150=m +endif + ifeq ($(call is-board-platform-in-list,msm8953 sdm670 qcs605),true) AUDIO_SELECT := CONFIG_SND_SOC_SDM670=m endif AUDIO_CHIPSET := audio # Build/Package only in case of supported target -ifeq ($(call is-board-platform-in-list,msm8953 sdm845 sdm670 qcs605 msmnile),true) +ifeq ($(call is-board-platform-in-list,msm8953 sdm845 sdm670 qcs605 msmnile $(MSMSTEPPE)),true) LOCAL_PATH := $(call my-dir) diff --git a/asoc/codecs/wcd934x/Kbuild b/asoc/codecs/wcd934x/Kbuild index 256f518535f3..40326113c549 100644 --- a/asoc/codecs/wcd934x/Kbuild +++ b/asoc/codecs/wcd934x/Kbuild @@ -31,6 +31,11 @@ ifeq ($(KERNEL_BUILD), 0) export INCS += -include $(AUDIO_ROOT)/config/sdm670autoconf.h endif + ifeq ($(CONFIG_ARCH_SDM640), y) + include $(AUDIO_ROOT)/config/sm8150auto.conf + export + INCS += -include $(AUDIO_ROOT)/config/sm8150autoconf.h + endif ifeq ($(CONFIG_ARCH_SM8150), y) include $(AUDIO_ROOT)/config/sm8150auto.conf export diff --git a/asoc/codecs/wcd9360/Android.mk b/asoc/codecs/wcd9360/Android.mk index bee0364ecd41..b7566a108054 100644 --- a/asoc/codecs/wcd9360/Android.mk +++ b/asoc/codecs/wcd9360/Android.mk @@ -7,9 +7,13 @@ ifeq ($(call is-board-platform,msmnile),true) AUDIO_SELECT := CONFIG_SND_SOC_SM8150=m endif +ifeq ($(call is-board-platform,$(MSMSTEPPE)),true) +AUDIO_SELECT := CONFIG_SND_SOC_SM6150=m +endif + AUDIO_CHIPSET := audio # Build/Package only in case of supported target -ifeq ($(call is-board-platform-in-list,msmnile),true) +ifeq ($(call is-board-platform-in-list,msmnile $(MSMSTEPPE)),true) LOCAL_PATH := $(call my-dir) diff --git a/asoc/codecs/wcd9360/Kbuild b/asoc/codecs/wcd9360/Kbuild index 6bba0c525599..e815e24675e3 100644 --- a/asoc/codecs/wcd9360/Kbuild +++ b/asoc/codecs/wcd9360/Kbuild @@ -21,6 +21,11 @@ ifeq ($(KERNEL_BUILD), 0) export INCS += -include $(AUDIO_ROOT)/config/sm8150autoconf.h endif + ifeq ($(CONFIG_ARCH_SDM640), y) + include $(AUDIO_ROOT)/config/sm8150auto.conf + export + INCS += -include $(AUDIO_ROOT)/config/sm8150autoconf.h + endif ifeq ($(CONFIG_ARCH_SDMSHRIKE), y) include $(AUDIO_ROOT)/config/sm8150auto.conf diff --git a/dsp/Android.mk b/dsp/Android.mk index 281ed8786e5e..48b068c732f5 100644 --- a/dsp/Android.mk +++ b/dsp/Android.mk @@ -15,9 +15,13 @@ ifeq ($(call is-board-platform,msmnile),true) AUDIO_SELECT := CONFIG_SND_SOC_SM8150=m endif +ifeq ($(call is-board-platform,$(MSMSTEPPE)),true) +AUDIO_SELECT := CONFIG_SND_SOC_SM6150=m +endif + AUDIO_CHIPSET := audio # Build/Package only in case of supported target -ifeq ($(call is-board-platform-in-list,msm8953 sdm845 sdm670 qcs605 msmnile),true) +ifeq ($(call is-board-platform-in-list,msm8953 sdm845 sdm670 qcs605 msmnile $(MSMSTEPPE)),true) LOCAL_PATH := $(call my-dir) diff --git a/dsp/Kbuild b/dsp/Kbuild index 348e2ee39ea2..e75dbd1986fe 100644 --- a/dsp/Kbuild +++ b/dsp/Kbuild @@ -29,6 +29,11 @@ ifeq ($(KERNEL_BUILD), 0) export INCS += -include $(AUDIO_ROOT)/config/sdm670autoconf.h endif + ifeq ($(CONFIG_ARCH_SDM640), y) + include $(AUDIO_ROOT)/config/sm8150auto.conf + export + INCS += -include $(AUDIO_ROOT)/config/sm8150autoconf.h + endif ifeq ($(CONFIG_ARCH_SM8150), y) include $(AUDIO_ROOT)/config/sm8150auto.conf export diff --git a/dsp/codecs/Android.mk b/dsp/codecs/Android.mk index a2fd453d91a6..69af58eefdf5 100644 --- a/dsp/codecs/Android.mk +++ b/dsp/codecs/Android.mk @@ -15,9 +15,13 @@ ifeq ($(call is-board-platform,msmnile),true) AUDIO_SELECT := CONFIG_SND_SOC_SM8150=m endif +ifeq ($(call is-board-platform,$(MSMSTEPPE)),true) +AUDIO_SELECT := CONFIG_SND_SOC_SM6150=m +endif + AUDIO_CHIPSET := audio # Build/Package only in case of supported target -ifeq ($(call is-board-platform-in-list,msm8953 sdm845 sdm670 qcs605 msmnile),true) +ifeq ($(call is-board-platform-in-list,msm8953 sdm845 sdm670 qcs605 msmnile $(MSMSTEPPE)),true) LOCAL_PATH := $(call my-dir) diff --git a/dsp/codecs/Kbuild b/dsp/codecs/Kbuild index cc9a2db127e3..67ac30c02ec1 100644 --- a/dsp/codecs/Kbuild +++ b/dsp/codecs/Kbuild @@ -30,6 +30,11 @@ ifeq ($(KERNEL_BUILD), 0) export INCS += -include $(AUDIO_ROOT)/config/sdm670autoconf.h endif + ifeq ($(CONFIG_ARCH_SDM640), y) + include $(AUDIO_ROOT)/config/sm8150auto.conf + export + INCS += -include $(AUDIO_ROOT)/config/sm8150autoconf.h + endif ifeq ($(CONFIG_ARCH_SM8150), y) include $(AUDIO_ROOT)/config/sm8150auto.conf export diff --git a/ipc/Android.mk b/ipc/Android.mk index 38b215f117bc..fe9ce0f54915 100644 --- a/ipc/Android.mk +++ b/ipc/Android.mk @@ -15,9 +15,13 @@ ifeq ($(call is-board-platform,msmnile),true) AUDIO_SELECT := CONFIG_SND_SOC_SM8150=m endif +ifeq ($(call is-board-platform,$(MSMSTEPPE)),true) +AUDIO_SELECT := CONFIG_SND_SOC_SM6150=m +endif + AUDIO_CHIPSET := audio # Build/Package only in case of supported target -ifeq ($(call is-board-platform-in-list,msm8953 sdm845 sdm670 qcs605 msmnile),true) +ifeq ($(call is-board-platform-in-list,msm8953 sdm845 sdm670 qcs605 msmnile $(MSMSTEPPE)),true) LOCAL_PATH := $(call my-dir) diff --git a/soc/Android.mk b/soc/Android.mk index f92e238ff97e..9ce525e4c378 100644 --- a/soc/Android.mk +++ b/soc/Android.mk @@ -15,9 +15,13 @@ ifeq ($(call is-board-platform,msmnile),true) AUDIO_SELECT := CONFIG_SND_SOC_SM8150=m endif +ifeq ($(call is-board-platform,$(MSMSTEPPE)),true) +AUDIO_SELECT := CONFIG_SND_SOC_SM6150=m +endif + AUDIO_CHIPSET := audio # Build/Package only in case of supported target -ifeq ($(call is-board-platform-in-list,msm8953 sdm845 sdm670 qcs605 msmnile),true) +ifeq ($(call is-board-platform-in-list,msm8953 sdm845 sdm670 qcs605 msmnile $(MSMSTEPPE)),true) LOCAL_PATH := $(call my-dir) diff --git a/soc/Kbuild b/soc/Kbuild index 9007b8e217a3..5ea10931af30 100644 --- a/soc/Kbuild +++ b/soc/Kbuild @@ -34,6 +34,11 @@ ifeq ($(KERNEL_BUILD), 0) export INCS += -include $(AUDIO_ROOT)/config/sm8150autoconf.h endif + ifeq ($(CONFIG_ARCH_SDM640), y) + include $(AUDIO_ROOT)/config/sm8150auto.conf + export + INCS += -include $(AUDIO_ROOT)/config/sm8150autoconf.h + endif ifeq ($(CONFIG_ARCH_SDMSHRIKE), y) include $(AUDIO_ROOT)/config/sm8150auto.conf export