[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit
Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/ap/build/common.mk b/ap/build/common.mk
new file mode 100755
index 0000000..3736593
--- /dev/null
+++ b/ap/build/common.mk
@@ -0,0 +1,32 @@
+
+include $(COMMON_BASE_MK)
+
+ifeq ($(USERDATA_FS_TYPE),jffs2)
+CFLAGS += -DUSE_JFFS2
+endif
+
+ifeq ($(USERDATA_FS_TYPE),ubifs)
+CFLAGS += -DUSE_UBIFS
+endif
+
+ifeq ($(GLOBAL_DEBUG),yes)
+CFLAGS += -DGLOBAL_DEBUG
+endif
+
+ifeq ($(LIBC_TYPE),glibc)
+CUSTOM_MACRO += -DHAVE_STRDUP
+CUSTOM_MACRO += -DHAVE_STRNLEN
+CUSTOM_MACRO += -DUSE_GLIBC
+endif
+
+ifneq ($(CUSTOM_MACRO),"")
+CFLAGS += $(CUSTOM_MACRO)
+endif
+
+ifeq ($(CONFIG_SINGLECORE),yes)
+CFLAGS += -DCONFIG_SINGLECORE
+endif
+
+ifeq ($(USE_FOTA_AB),yes)
+CFLAGS += -DFOTA_AB
+endif