[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit

Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/ap/build/base.mk b/ap/build/base.mk
new file mode 100755
index 0000000..4691a12
--- /dev/null
+++ b/ap/build/base.mk
@@ -0,0 +1,70 @@
+
+#include linux kernel .config file
+-include $(LINUX_DIR)/.config
+
+#include lib and app config file
+include $(LIB_CFG_MK)
+include $(APP_CFG_MK)
+
+CFLAGS := -g -Os -pipe -fno-builtin -Wall
+
+CFLAGS += -ffunction-sections
+
+CFLAGS += -fomit-frame-pointer -msoft-float -fno-common -march=armv7-a -fno-short-enums
+
+ifeq ($(THUMB),yes)
+CFLAGS += -mthumb -mthumb-interwork -Wa,-mimplicit-it=thumb
+endif
+
+CFLAGS += -nostdinc 
+CFLAGS += -idirafter $(STAGEDIR)/include
+ifeq ($(LIBC_TYPE),uClibc)
+CFLAGS += -isystem   $(STAGEDIR)/libc/usr/include
+else
+CFLAGS += -isystem   $(STAGEDIR)/libc/include
+endif
+CFLAGS += -isystem   $(CROSS_COMPILE_INCLUDE_FIXED_PATH)
+CFLAGS += -isystem   $(CROSS_COMPILE_INCLUDE_PATH)
+
+CFLAGS += -I$(PUB_ROOT_DIR)/include/infra
+
+LDFLAGS := -g -fno-common -fno-builtin
+
+LDFLAGS += -Wl,--gc-sections
+
+TARGETARCH := arm-linux
+HOSTARCH := $(shell sh $(BUILD_DIR)/config.guess)
+
+CONFIGURE_OPTS = --host=$(TARGETARCH) --build=$(HOSTARCH) --target=$(TARGETARCH)
+
+ARFLAGS := rcs
+
+export CFLAGS
+export LDFLAGS
+export ARFLAGS
+
+#LDFLAGS -static
+#$(CC) $(LD_BEGIN) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) $(LDLIBS_$@) -Wl,--end-group $(LD_END)
+LD_BEGIN = -nostdlib
+ifeq ($(LIBC_TYPE),uClibc)
+LD_BEGIN += $(STAGEDIR)/libc/usr/lib/crt1.o
+LD_BEGIN += $(STAGEDIR)/libc/usr/lib/crti.o
+else
+LD_BEGIN += $(STAGEDIR)/libc/lib/crt1.o
+LD_BEGIN += $(STAGEDIR)/libc/lib/crti.o
+endif
+
+LD_BEGIN += $(CROSS_COMPILE_CRTBEGIN)
+
+LD_END = -L $(STAGEDIR)/libc/lib
+LD_END += -Wl,-rpath-link,$(STAGEDIR)/libc/lib
+LD_END += -L $(STAGEDIR)/libc/usr/lib
+LD_END += -Wl,-rpath-link,$(STAGEDIR)/libc/usr/lib
+LD_END += -Wl,--start-group -lgcc -lgcc_eh -lc -Wl,--end-group
+LD_END += $(CROSS_COMPILE_CRTEND)
+ifeq ($(LIBC_TYPE),uClibc)
+LD_END += $(STAGEDIR)/libc/usr/lib/crtn.o
+else
+LD_END += $(STAGEDIR)/libc/lib/crtn.o
+endif
+