Baseline update from LYNQ_SDK_ASR_T108_V05.03.01.00(kernel build error.)

Change-Id: I56fc72cd096e82c589920026553170e5cb9692eb
diff --git a/mbtk/mbtk_toolchain_config/Make.defines b/mbtk/mbtk_toolchain_config/Make.defines
new file mode 100755
index 0000000..4d6a1df
--- /dev/null
+++ b/mbtk/mbtk_toolchain_config/Make.defines
@@ -0,0 +1,65 @@
+# Common make definitions, customized for each platform

+

+# Definitions required in all program directories to compile and link

+# C programs using gcc.

+

+# static / shared

+BUILD_LIB_TYPE = shared

+

+ROOT = $(BUILD_ROOT)

+OUT_DIR = $(ROOT)/out

+BUILD_TOOLCHAIN_DIR = $(ROOT)/toolchain

+LOCAL_PATH=.

+

+export STAGING_DIR=

+

+CC=$(BUILD_TOOLCHAIN_DIR)/bin/arm-openwrt-linux-gnueabi-gcc

+AR=$(BUILD_TOOLCHAIN_DIR)/bin/arm-openwrt-linux-gnueabi-ar

+

+MAKE=make

+

+$(info BUILD_LIB_TYPE=$(BUILD_LIB_TYPE))

+$(info ROOT=$(ROOT))

+$(info CC=$(CC))

+$(info AR=$(AR))

+

+# -Werror=non-virtual-dtor

+#CFLAGS= --sysroot=$(BUILD_TOOLCHAIN_DIR) -Os -pipe -rdynamic -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -mfloat-abi=hard -fno-exceptions -Wno-multichar -ffunction-sections -fdata-sections -funwind-tables -Wa,--noexecstack -fno-short-enums -no-canonical-prefixes -fno-canonical-system-headers -mfpu=neon -fno-builtin-sin -fno-strict-volatile-bitfields -Wno-psabi -mthumb-interwork -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith  -g -Wstrict-aliasing=2 -fgcse-after-reload -frerun-cse-after-loop -frename-registers -mthumb -fomit-frame-pointer -fno-strict-aliasing -Werror=format-security -Werror=return-type -Werror=address -Werror=sequence-point -ffunction-sections -Wl,--gc-sections -Wl,--no-undefined -Wno-sign-compare -Wno-pointer-arith

+CFLAGS_DEF = --sysroot=$(BUILD_TOOLCHAIN_DIR) -Os -pipe -rdynamic -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -Wall -Werror -g

+

+CFLAGS_IGNORE_WARN = --sysroot=$(BUILD_TOOLCHAIN_DIR) -Os -pipe -rdynamic -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -mfloat-abi=hard -fno-exceptions -Wno-multichar -ffunction-sections -fdata-sections -funwind-tables -Wa,--noexecstack -fno-short-enums -no-canonical-prefixes -fno-canonical-system-headers -mfpu=neon -fno-builtin-sin -fno-strict-volatile-bitfields -Wno-psabi -mthumb-interwork -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith  -g -Wstrict-aliasing=2 -fgcse-after-reload -frerun-cse-after-loop -frename-registers -mthumb -fomit-frame-pointer -fno-strict-aliasing -Werror=format-security -Werror=return-type -Werror=address -Werror=sequence-point -ffunction-sections -Wl,--gc-sections -Wl,--no-undefined -Wno-sign-compare -Wno-pointer-arith

+

+AWK=awk

+

+#CFLAGS += -Wno-error=format-truncation -Wno-error=format-overflow= -Wno-error=stringop-overread -Wno-error=deprecated-declarations

+

+CFLAGS=$(CFLAGS_IGNORE_WARN)

+

+INC_DIR = \

+	-I$(LOCAL_PATH)/ \

+	-I$(BUILD_ROOT)/mbtk/include \

+	-I$(BUILD_ROOT)/mbtk/include/mbtk \

+	-I$(BUILD_ROOT)/mbtk/include/lynq \

+	-I$(BUILD_ROOT)/mbtk/include/mqtt \

+	-I$(BUILD_ROOT)/mbtk/include/ql_v2

+

+# -DCONFIG_AB_SYSTEM

+DEFINE = \

+	-DMBTK_SUPPORT \

+	-DMARVELL_EXTENDED \

+	-DPXA1826_AUDIO \

+	-D__USE_GNU \

+	-DNOT_DROPPED_FLAGS_TEST \

+	-DNDEBUG \

+	-UDEBUG \

+	-D_FORTIFY_SOURCE=2 \

+	-D_GNU_SOURCE

+

+# 	-L$(OUT_DIR)/lib

+LIB_DIR = \

+	-L$(BUILD_ROOT)/mbtk/lib

+

+LIBS = -lpthread -lstdc++

+

+# Common temp files to delete from each directory.

+TEMPFILES=core core.* *.o temp.* *.out