兼容glibc
Change-Id: I7b1361d8f1e3c31c2d94b31b6addc32869dee457
diff --git a/mbtk/Make.defines b/mbtk/Make.defines
index 03ca961..516d6c3 100755
--- a/mbtk/Make.defines
+++ b/mbtk/Make.defines
@@ -8,7 +8,7 @@
OUT_DIR = $(ROOT)/out
LOCAL_PATH=.
-ifeq ($(BUILD_PLATFORM), asr1803)
+ifeq ($(BUILD_PLATFORM), master)
ifeq ($(BUILD_BRANCH), rls3895)
BUILD_TOOLCHAIN_DIR = $(ROOT)/toolchain/gcc-4.9-rls3895
else
@@ -16,12 +16,17 @@
endif
CC=$(BUILD_TOOLCHAIN_DIR)/bin/arm-openwrt-linux-uclibcgnueabi-gcc
AR=$(BUILD_TOOLCHAIN_DIR)/bin/arm-openwrt-linux-uclibcgnueabi-ar
-else ifeq ($(BUILD_PLATFORM), asr1806)
+else ifeq ($(BUILD_PLATFORM), v2102)
+ifeq ($(BUILD_STD_LIBC), glibc)
+BUILD_TOOLCHAIN_DIR = $(ROOT)/toolchain/gcc-8.4-glibc
+CC=$(BUILD_TOOLCHAIN_DIR)/bin/arm-openwrt-linux-gnueabi-gcc
+AR=$(BUILD_TOOLCHAIN_DIR)/bin/arm-openwrt-linux-gnueabi-ar
+else
BUILD_TOOLCHAIN_DIR = $(ROOT)/toolchain/gcc-8.4
-
CC=$(BUILD_TOOLCHAIN_DIR)/bin/arm-openwrt-linux-muslgnueabi-gcc
AR=$(BUILD_TOOLCHAIN_DIR)/bin/arm-openwrt-linux-muslgnueabi-ar
+endif
else
CC=gcc
AR=ar
@@ -73,8 +78,8 @@
#$(info BUILD_PROJECT_X=$(BUILD_PROJECT_X))
# 1806
-ifeq ($(BUILD_PLATFORM), asr1806)
-DEFINE += -DMBTK_PLATFORM_ASR1806
+ifeq ($(BUILD_PLATFORM), v2102)
+DEFINE += -DMBTK_PLATFORM_KERNEL_5
ifeq ($(BUILD_PROJECT), L508_X6)
DEFINE += -DMBTK_PROJECT_L508_X6
@@ -102,7 +107,7 @@
DEFINE += -DMBTK_MP3_SUPPORT
endif
-DEFINE += -DMBTK_PLATFORM_ASR1803
+DEFINE += -DMBTK_PLATFORM_KERNEL_3
ifeq ($(BUILD_PROJECT), L508)
DEFINE += -DMBTK_PROJECT_L508