summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/Kconfig13
-rw-r--r--common/Makefile2
2 files changed, 14 insertions, 1 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 5a7678f0ac9..15715ac6ad3 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
diff --git a/common/Makefile b/common/Makefile
index 1495436d5d4..3bb33b4e36d 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -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