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

Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/ap/app/ab_bootinfo/Makefile b/ap/app/ab_bootinfo/Makefile
new file mode 100755
index 0000000..e3cf039
--- /dev/null
+++ b/ap/app/ab_bootinfo/Makefile
@@ -0,0 +1,35 @@
+#*******************************************************************************
+# include build/common makefile

+#*******************************************************************************

+include $(COMMON_MK)

+

+##############USER COMIZE BEGIN################
+EXEC    = ab_bootinfo

+OBJS    = ab_bootinfo.o

+
+CFLAGS += -I$(APP_DIR)/include
+CFLAGS += -I$(LIB_DIR)/libupi_ab/inc
+CFLAGS += -g -Werror=implicit-function-declaration

+
+
+LDLIBS = -lnvram_sc -L$(LIB_DIR)/libnvram
+LDLIBS += -lupi_ab  -L$(LIB_DIR)/libupi_ab
+LDLIBS += -lcrypto  -L$(LIB_DIR)/libssl/install/lib
+

+##############USER COMIZE END##################
+
+#*******************************************************************************
+# targets

+#*******************************************************************************

+all: $(EXEC)

+

+$(EXEC): $(OBJS)

+	$(CC) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) $(LDLIBS_$@) -Wl,--end-group

+	@cp $@ $@.elf
+

+romfs:
+	$(ROMFSINST) $(EXEC) /bin/$(EXEC)

+

+clean:

+	-rm -f $(EXEC) *.elf *.gdb *.o

+

diff --git a/ap/app/ab_bootinfo/ab_bootinfo.c b/ap/app/ab_bootinfo/ab_bootinfo.c
new file mode 100644
index 0000000..446cc02
--- /dev/null
+++ b/ap/app/ab_bootinfo/ab_bootinfo.c
@@ -0,0 +1,22 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include "upi_public.h"
+
+int main(int argc, char *argv[])
+{
+    int ret = upi_get_current_system(); 
+
+    switch (ret)
+    {
+        case 1:
+            printf("ab_bootinfo:ab_a\n");
+            break;
+        case 2:
+            printf("ab_bootinfo:ab_b\n");
+            break;
+        default:
+            printf("[error]ab_bootinfo:%d\n", ret);
+            break;
+    }
+    return ret;
+}
\ No newline at end of file