]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
global_data.h: add GD_FLG_HUSH_OLD_PARSER flag
authorFrancis Laniel <francis.laniel@amarulasolutions.com>
Fri, 22 Dec 2023 21:02:30 +0000 (22:02 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 28 Dec 2023 17:02:56 +0000 (12:02 -0500)
This flag is used to indicate we are using the hush parser.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Francis Laniel <francis.laniel@amarulasolutions.com>
common/cli.c
include/asm-generic/global_data.h

index 3916a7b10a7dd6c28ca26f35d5445d2669ae5df9..e5fe1060d0beeee09c6240ce4fab8c83c29c1017 100644 (file)
@@ -268,6 +268,8 @@ void cli_loop(void)
 void cli_init(void)
 {
 #ifdef CONFIG_HUSH_PARSER
+       if (!(gd->flags & GD_FLG_HUSH_OLD_PARSER))
+               gd->flags |= GD_FLG_HUSH_OLD_PARSER;
        u_boot_hush_start();
 #endif
 
index e8c6412e3f8dfa357e844e6292eb7c597af1e671..0a9b6bd92a42540ed9a0da50ebebd03a5bdc6568 100644 (file)
@@ -697,6 +697,10 @@ enum gd_flags {
         * @GD_FLG_BLOBLIST_READY: bloblist is ready for use
         */
        GD_FLG_BLOBLIST_READY = 0x800000,
+       /**
+        * @GD_FLG_HUSH_OLD_PARSER: Use hush old parser.
+        */
+       GD_FLG_HUSH_OLD_PARSER = 0x1000000,
 };
 
 #endif /* __ASSEMBLY__ */