zte's code,first commit
Change-Id: I9a04da59e459a9bc0d67f101f700d9d7dc8d681b
diff --git a/ap/build/common.mk b/ap/build/common.mk
new file mode 100755
index 0000000..46fcba8
--- /dev/null
+++ b/ap/build/common.mk
@@ -0,0 +1,26 @@
+
+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
+
+ifneq ($(CUSTOM_MACRO),"")
+CFLAGS += $(CUSTOM_MACRO)
+endif
+
+ifeq ($(CONFIG_SINGLECORE),yes)
+CFLAGS += -DCONFIG_SINGLECORE
+endif
+
+ifeq ($(USE_FOTA_AB),yes)
+CFLAGS += -DFOTA_AB
+endif