[Feature][ZXW-88]merge P50 version
Only Configure: No
Affected branch: master
Affected module: unknown
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No
Change-Id: I34667719d9e0e7e29e8e4368848601cde0a48408
diff --git a/ap/app/ab_bootinfo/Makefile b/ap/app/ab_bootinfo/Makefile
index e3cf039..1df9e84 100755
--- a/ap/app/ab_bootinfo/Makefile
+++ b/ap/app/ab_bootinfo/Makefile
@@ -8,14 +8,10 @@
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
-
+LDLIBS += -lflags -L$(zte_lib_path)/libflags
##############USER COMIZE END##################
#*******************************************************************************
diff --git a/ap/app/ab_bootinfo/ab_bootinfo.c b/ap/app/ab_bootinfo/ab_bootinfo.c
old mode 100644
new mode 100755
index 3f1e0cf..0e23e36
--- a/ap/app/ab_bootinfo/ab_bootinfo.c
+++ b/ap/app/ab_bootinfo/ab_bootinfo.c
@@ -1,18 +1,19 @@
#include <stdio.h>
#include <stdlib.h>
-#include "zxic_fota_ab_upgrade.h"
+#include "pub_flags.h"
+#include "flags_api.h"
int main(int argc, char *argv[])
{
- int ret = zxic_dual_get_current_system();
+ int ret = flags_get_current_system();
switch (ret)
{
- case Z_DUAL_SYSTEM:
+ case DUAL_SYSTEM:
printf("ab_bootinfo:ab_a\n");
ret = 1;
break;
- case Z_DUAL_SYSTEM2:
+ case DUAL_SYSTEM2:
printf("ab_bootinfo:ab_b\n");
ret = 2;
break;
@@ -22,4 +23,4 @@
break;
}
return ret;
-}
\ No newline at end of file
+}