修改API框架,兼容1806

Change-Id: Ic68e966a32e4c7ffd7137b3d7ba94e4d813c71b2
diff --git a/mbtk/Make.defines b/mbtk/Make.defines
index fbd4cd1..9c17fde 100755
--- a/mbtk/Make.defines
+++ b/mbtk/Make.defines
@@ -95,11 +95,21 @@
 endif

 endif

 endif

-

 endif

 

-# Only for AF custom.

-# DEFINE += -DMBTK_AF_SUPPORT

+MBTK_AT_SUPPORT=$(shell cat $(ROOT)/config | grep CONFIG_AT_SUPPORT | cut -d '=' -f 2)

+$(info MBTK_AT_SUPPORT=$(MBTK_AT_SUPPORT))

+ifeq ($(MBTK_AT_SUPPORT), y)

+DEFINE += -DMBTK_AF_SUPPORT

+endif

+

+MBTK_GNSS_MODE=$(shell cat $(ROOT)/config | grep CONFIG_MBTK_GNSS_MODE | cut -d '=' -f 2)

+$(info MBTK_GNSS_MODE=$(MBTK_GNSS_MODE))

+ifeq ($(MBTK_GNSS_MODE), gnss_6228)

+DEFINE += -DMBTK_GNSS_6228

+else

+DEFINE += -DMBTK_GNSS_5311

+endif

 

 LIB_DIR = \

 	-L$(OUT_DIR)/lib