aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancis Laniel <francis.laniel@amarulasolutions.com>2021-12-31 17:13:15 +0100
committerTom Rini <trini@konsulko.com>2022-01-31 10:06:28 -0500
commit7d008f563fc548ba1ef333877b1620de0df8095e (patch)
tree6a87e817641cbafc36558d45ce87d2f9fa6a12be
parentab403fa61e6f0e1745b7b7762ef36d29badec697 (diff)
downloadu-boot-7d008f563fc548ba1ef333877b1620de0df8095e.zip
u-boot-7d008f563fc548ba1ef333877b1620de0df8095e.tar.gz
u-boot-7d008f563fc548ba1ef333877b1620de0df8095e.tar.bz2
cli: Add choice for hush parser.
For the moment, the choice contains only entry: HUSH_OLD_PARSER which is the default. The goal of this commit is to prepare the field to add a new hush parser and it does not change anything to actual behavior. Signed-off-by: Francis Laniel <francis.laniel@amarulasolutions.com> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--cmd/Kconfig14
-rw-r--r--common/Makefile2
2 files changed, 15 insertions, 1 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 5e25e45..79da672 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -23,6 +23,20 @@ config HUSH_PARSER
If disabled, you get the old, much simpler behaviour with a somewhat
smaller memory footprint.
+choice HUSH_FLAVOR
+ bool "Hush flavor to use"
+ depends on HUSH_PARSER
+ default HUSH_OLD_PARSER
+
+ config HUSH_OLD_PARSER
+ bool "Use hush old parser"
+ 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.
+endchoice
+
config CMDLINE_EDITING
bool "Enable command line editing"
depends on CMDLINE
diff --git a/common/Makefile b/common/Makefile
index 3eff719..0ce1941 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -8,7 +8,7 @@ ifndef CONFIG_SPL_BUILD
obj-y += init/
obj-y += main.o
obj-y += exports.o
-obj-$(CONFIG_HUSH_PARSER) += cli_hush.o
+obj-$(CONFIG_HUSH_OLD_PARSER) += cli_hush.o
obj-$(CONFIG_AUTOBOOT) += autoboot.o
# # boards