fix makefile
Change-Id: I1a676983193412e5f3f421db8aa9331b8c885880
diff --git a/mbtk/Make.defines b/mbtk/Make.defines
index 3a87aa3..f6cca72 100755
--- a/mbtk/Make.defines
+++ b/mbtk/Make.defines
@@ -54,11 +54,6 @@
-UDEBUG \
-D_FORTIFY_SOURCE=2 \
-D_GNU_SOURCE
-
-ifeq ($(BUILD_PLATFORM), asr1803)
-DEFINE += -DMBTK_POLARSSL_SUPPORT
-DEFINE += -DMBTK_MP3_SUPPORT
-endif
#$(info TOPDIR=$(TOPDIR))
BUILD_PROJECT=$(shell cat $(ROOT)/../build_version | grep PROJECT | cut -d '=' -f 2)
@@ -67,6 +62,9 @@
#BUILD_PROJECT_X=$(shell echo $(BUILD_PROJECT) | cut -c 1-4)
#$(info BUILD_PROJECT_X=$(BUILD_PROJECT_X))
+ifeq ($(BUILD_PLATFORM), asr1806)
+DEFINE += -DMBTK_PLATFORM_ASR1806
+
ifeq ($(shell echo $(BUILD_PROJECT) | cut -c 1-7), L508_X6)
$(info BUILD_PROJECT=L508_X6)
DEFINE += -DMBTK_PROJECT_L508_X6
@@ -75,6 +73,14 @@
$(info BUILD_PROJECT=T108)
DEFINE += -DMBTK_PROJECT_T108
else
+$(info BUILD_PROJECT=Unknown)
+endif
+endif
+else
+DEFINE += -DMBTK_POLARSSL_SUPPORT
+DEFINE += -DMBTK_MP3_SUPPORT
+DEFINE += -DMBTK_PLATFORM_ASR1803
+
ifeq ($(shell echo $(BUILD_PROJECT) | cut -c 1-4), L508)
$(info BUILD_PROJECT=L508)
DEFINE += -DMBTK_PROJECT_L508
@@ -89,7 +95,7 @@
endif
endif
endif
-endif
+
endif
LIB_DIR = \