summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2013-12-27 16:25:21 +0100
committerPaul Kocialkowski <contact@paulk.fr>2013-12-27 16:25:21 +0100
commit524f68ce8f4b8b5f6c69abec5c5f06fa51661ed9 (patch)
treef83b2e021def937542ec60eeb8b1f95f85cebfaf
parenteaed2075d9d07e230779e2d5cc8cb509f43c98de (diff)
downloadhardware_tinyalsa-audio-replicant-4.2-0004.zip
hardware_tinyalsa-audio-replicant-4.2-0004.tar.gz
hardware_tinyalsa-audio-replicant-4.2-0004.tar.bz2
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
-rw-r--r--Android.mk11
1 files changed, 5 insertions, 6 deletions
diff --git a/Android.mk b/Android.mk
index 205f865..06a1533 100644
--- a/Android.mk
+++ b/Android.mk
@@ -44,15 +44,14 @@ LOCAL_SHARED_LIBRARIES := \
ifeq ($(strip $(BOARD_USE_YAMAHA_MC1N2_AUDIO)),true)
LOCAL_CFLAGS += -DYAMAHA_MC1N2_AUDIO
- LOCAL_C_INCLUDES += hardware/yamaha-mc1n2-audio/include
LOCAL_SHARED_LIBRARIES += libyamaha-mc1n2-audio
- ifeq ($(TARGET_DEVICE),galaxys2)
- LOCAL_CFLAGS += -DYAMAHA_MC1N2_AUDIO_DEVICE=\"galaxys2\"
- endif
- ifeq ($(TARGET_DEVICE),n7000)
- LOCAL_CFLAGS += -DYAMAHA_MC1N2_AUDIO_DEVICE=\"galaxys2\"
+ ifeq ($(TARGET_YAMAHA_MC1N2_AUDIO_PATH),)
+ TARGET_YAMAHA_MC1N2_AUDIO_PATH := hardware/yamaha-mc1n2-audio
endif
+
+ LOCAL_C_INCLUDES += $(TARGET_YAMAHA_MC1N2_AUDIO_PATH)/include
+ LOCAL_CFLAGS += -DYAMAHA_MC1N2_AUDIO_DEVICE=\"$(TARGET_YAMAHA_MC1N2_AUDIO_DEVICE)\"
endif
LOCAL_PRELINK_MODULE := false