summaryrefslogtreecommitdiffstats
path: root/hal
diff options
context:
space:
mode:
authorSachin Mohan Gadag <sgadag@codeaurora.org>2016-11-30 10:30:36 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2016-12-21 02:19:42 -0800
commit3d3e78f645e72c258ba0126ea418c1f0fb3cbf48 (patch)
tree466172d492006b711f9db9f096ce289a1b2fa0c0 /hal
parent6f4c8063ec889ae7d4a45881bce721c977388f08 (diff)
downloadhardware_qcom_audio-3d3e78f645e72c258ba0126ea418c1f0fb3cbf48.tar.gz
hardware_qcom_audio-3d3e78f645e72c258ba0126ea418c1f0fb3cbf48.tar.bz2
hardware_qcom_audio-3d3e78f645e72c258ba0126ea418c1f0fb3cbf48.zip
audiohal: Update Makefile and Configure file
Update Makefile and Configure file to compile target specific platform file. Change-Id: Ic2e5c3f5cc5484d2acaacb9708595ee670d53c03
Diffstat (limited to 'hal')
-rw-r--r--hal/Makefile.am8
1 files changed, 4 insertions, 4 deletions
diff --git a/hal/Makefile.am b/hal/Makefile.am
index 6e1b9f44..03b60ce3 100644
--- a/hal/Makefile.am
+++ b/hal/Makefile.am
@@ -4,12 +4,12 @@ AM_CFLAGS = -I ${WORKSPACE}/external/tinyalsa/include \
-I $(top_srcdir)/hal \
-I $(top_srcdir)/hal/audio_extn \
-I $(top_srcdir)/hal/voice_extn \
- -I $(top_srcdir)/hal/msm8916
+ -I $(top_srcdir)/hal/${TARGET_PLATFORM}
c_sources = audio_hw.c \
voice.c \
platform_info.c \
- msm8916/platform.c \
+ ${TARGET_PLATFORM}/platform.c \
audio_extn/audio_extn.c \
audio_extn/utils.c
@@ -56,7 +56,7 @@ endif
if HW_VARIANTS
AM_CFLAGS += -DHW_VARIANTS_ENABLED
-c_sources += msm8916/hw_info.c
+c_sources += ${TARGET_PLATFORM}/hw_info.c
endif
if COMPRESS_CAPTURE
@@ -149,5 +149,5 @@ audio_primary_default_la_CFLAGS = $(AM_CFLAGS) $(GLIB_CFLAGS)
audio_primary_default_la_CFLAGS += -Dstrlcat=g_strlcat
audio_primary_default_la_CFLAGS += -DINT_MAX=0x7fffffff
audio_primary_default_la_CFLAGS += -D__unused=__attribute__\(\(__unused__\)\)
-audio_primary_default_la_CFLAGS += -DLINUX_ENABLED
+audio_primary_default_la_CFLAGS += -DLINUX_ENABLED $(TARGET_CFLAGS)
audio_primary_default_la_LDFLAGS = -module -shared -avoid-version