aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorFrancis Laniel2023-12-22 22:02:31 +0100
committerTom Rini2023-12-28 12:02:56 -0500
commit6bb39f5d16e8531eeca8237454cc528aa54c9e81 (patch)
tree1f3eacc199ccf7dff72b21750b5ec6213d907b4a /common
parent603a814a3358eccdb8955bc228f9180173575083 (diff)
cmd: Add new cli command
This command can be used to print the current parser with 'cli get'. It can also be used to set the current parser with 'cli set'. For the moment, only one value is valid for set: old. Signed-off-by: Francis Laniel <francis.laniel@amarulasolutions.com>
Diffstat (limited to 'common')
-rw-r--r--common/cli.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/cli.c b/common/cli.c
index e5fe1060d0b..d419671e8c8 100644
--- a/common/cli.c
+++ b/common/cli.c
@@ -268,7 +268,8 @@ void cli_loop(void)
void cli_init(void)
{
#ifdef CONFIG_HUSH_PARSER
- if (!(gd->flags & GD_FLG_HUSH_OLD_PARSER))
+ if (!(gd->flags & GD_FLG_HUSH_OLD_PARSER)
+ && CONFIG_IS_ENABLED(HUSH_OLD_PARSER))
gd->flags |= GD_FLG_HUSH_OLD_PARSER;
u_boot_hush_start();
#endif