cli: Add menu for hush parser

For the moment, the menu contains only entry: HUSH_OLD_PARSER which is the
default.
The goal is to prepare the field to add a new hush parser which guarantees
actual behavior is still correct.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Francis Laniel <francis.laniel@amarulasolutions.com>
This commit is contained in:
Francis Laniel
2023-12-22 22:02:29 +01:00
committed by Tom Rini
parent 8197f01b9d
commit 30dcef8951
2 changed files with 14 additions and 1 deletions

View File

@@ -22,6 +22,19 @@ config HUSH_PARSER
If disabled, you get the old, much simpler behaviour with a somewhat
smaller memory footprint.
menu "Hush flavor to use"
depends on HUSH_PARSER
config HUSH_OLD_PARSER
bool "Use hush old parser"
default y
help
This option enables the old flavor of hush based on hush Busybox from
2005.
It is actually the default U-Boot shell when decided to use hush as shell.
endmenu
config CMDLINE_EDITING
bool "Enable command line editing"
default y

View File

@@ -9,7 +9,7 @@ obj-y += init/
obj-y += main.o
obj-y += exports.o
obj-y += cli_getch.o cli_simple.o cli_readline.o
obj-$(CONFIG_HUSH_PARSER) += cli_hush.o
obj-$(CONFIG_HUSH_OLD_PARSER) += cli_hush.o
obj-$(CONFIG_AUTOBOOT) += autoboot.o
obj-y += version.o