修改API框架,兼容1806

Change-Id: Ic68e966a32e4c7ffd7137b3d7ba94e4d813c71b2
diff --git a/mbtk/mbtk_lib/Makefile b/mbtk/mbtk_lib/Makefile
index a3345fc..a92b1d5 100755
--- a/mbtk/mbtk_lib/Makefile
+++ b/mbtk/mbtk_lib/Makefile
@@ -11,7 +11,7 @@
 LIBS += -llog -lubus -lubox -lprop2uci -luci -lrilutil \
 	-lcutils \
 	-laudio-apu
-	
+
 ifeq ($(BUILD_PLATFORM), asr1803)
 LIBS += -lpolarssl \
 	-lavcodec \
@@ -50,8 +50,6 @@
 	src/g711_pcm_convert.c \
 	src/mbtk_adc.c \
 	src/mbtk_at.c \
-	src/mbtk_audio_alsa.c \
-	src/mbtk_audio.c \
 	src/mbtk_basic_at_wrapper.c \
 	src/mbtk_bs_position.c \
 	src/mbtk_coap_api.cpp \
@@ -61,8 +59,6 @@
 	src/mbtk_file.c \
 	src/mbtk_ftp_at.c \
 	src/mbtk_ftp.c \
-	src/mbtk_gnss.c \
-	src/mbtk_gnss_update.c \
 	src/mbtk_gpio.c \
 	src/mbtk_http_base.c \
 	src/mbtk_http.c \
@@ -85,11 +81,21 @@
 	src/mbtk_utf.c \
 	src/mbtk_utils.c \
 	src/ringbuffer.c
-	
+
 ifeq ($(BUILD_PLATFORM), asr1803)
 LOCAL_SRC_FILES += src/mbtk_mp3_to_wav.c
 endif
 
+ifeq ($(MBTK_GNSS_MODE), gnss_6228)
+LOCAL_SRC_FILES += src/mbtk_gnss_6228.c \
+				   src/mbtk_gnss_update.c
+endif
+
+ifeq ($(BUILD_PLATFORM), asr1803)
+LOCAL_SRC_FILES += 	src/mbtk_audio_alsa.c \
+				    src/mbtk_audio.c
+endif
+
 OBJS = $(patsubst %.c, %.o, $(patsubst %.cpp, %.o, $(LOCAL_SRC_FILES)))
 $(info OBJS = $(OBJS))
 
@@ -102,7 +108,7 @@
 
 %.o:%.c
 	$(CC) $(CFLAGS) $(INC_DIR) $(DEFINE) -c $< -o $@
-	
+
 %.o:%.cpp
 	$(CC) $(CFLAGS) $(INC_DIR) $(DEFINE) -c $< -o $@