mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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>
This commit is contained in:
parent
603a814a33
commit
6bb39f5d16
5 changed files with 178 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue