blob: 0e23e36161d2b3cf6ad7b4ff64dc4b267387c525 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#include <stdio.h>
2#include <stdlib.h>
xf.li6c8fc1e2023-08-12 00:11:09 -07003#include "pub_flags.h"
4#include "flags_api.h"
lh9ed821d2023-04-07 01:36:19 -07005
6int main(int argc, char *argv[])
7{
xf.li6c8fc1e2023-08-12 00:11:09 -07008 int ret = flags_get_current_system();
lh9ed821d2023-04-07 01:36:19 -07009
10 switch (ret)
11 {
xf.li6c8fc1e2023-08-12 00:11:09 -070012 case DUAL_SYSTEM:
lh9ed821d2023-04-07 01:36:19 -070013 printf("ab_bootinfo:ab_a\n");
lh758261d2023-07-13 05:52:04 -070014 ret = 1;
lh9ed821d2023-04-07 01:36:19 -070015 break;
xf.li6c8fc1e2023-08-12 00:11:09 -070016 case DUAL_SYSTEM2:
lh9ed821d2023-04-07 01:36:19 -070017 printf("ab_bootinfo:ab_b\n");
lh758261d2023-07-13 05:52:04 -070018 ret = 2;
lh9ed821d2023-04-07 01:36:19 -070019 break;
20 default:
21 printf("[error]ab_bootinfo:%d\n", ret);
lh758261d2023-07-13 05:52:04 -070022 ret = 1;
lh9ed821d2023-04-07 01:36:19 -070023 break;
24 }
25 return ret;
xf.li6c8fc1e2023-08-12 00:11:09 -070026}