summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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