summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorFrancis Laniel <francis.laniel@amarulasolutions.com>2023-12-22 22:02:29 +0100
committerTom Rini <trini@konsulko.com>2023-12-28 12:02:56 -0500
commit30dcef8951d06dfa549336aebeb4ea59fc4783e1 (patch)
treeecead3ac502a63e3bd834858e36050016d0399ba /cmd
parent8197f01b9d3c03eec60f068a09eff88554f5a188 (diff)
downloadu-boot-30dcef8951d06dfa549336aebeb4ea59fc4783e1.tar.gz
u-boot-30dcef8951d06dfa549336aebeb4ea59fc4783e1.tar.bz2
u-boot-30dcef8951d06dfa549336aebeb4ea59fc4783e1.zip
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>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/Kconfig13
1 files changed, 13 insertions, 0 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 5a7678f0ac..15715ac6ad 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -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