diff options
author | Francis Laniel <francis.laniel@amarulasolutions.com> | 2023-12-22 22:02:30 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-12-28 12:02:56 -0500 |
commit | 603a814a3358eccdb8955bc228f9180173575083 (patch) | |
tree | 77164aa97c1d701c55ea1a0b8f407c536b30d80c | |
parent | 30dcef8951d06dfa549336aebeb4ea59fc4783e1 (diff) | |
download | u-boot-603a814a3358eccdb8955bc228f9180173575083.zip u-boot-603a814a3358eccdb8955bc228f9180173575083.tar.gz u-boot-603a814a3358eccdb8955bc228f9180173575083.tar.bz2 |
global_data.h: add GD_FLG_HUSH_OLD_PARSER flag
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>
-rw-r--r-- | common/cli.c | 2 | ||||
-rw-r--r-- | include/asm-generic/global_data.h | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/common/cli.c b/common/cli.c index 3916a7b..e5fe106 100644 --- a/common/cli.c +++ b/common/cli.c @@ -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 diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h index e8c6412..0a9b6bd 100644 --- a/include/asm-generic/global_data.h +++ b/include/asm-generic/global_data.h @@ -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__ */ |