]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
hush: add CONFIG_HUSH_PARSER to Kconfig
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Thu, 13 Nov 2014 10:29:07 +0000 (19:29 +0900)
committerTom Rini <trini@ti.com>
Sun, 23 Nov 2014 11:49:03 +0000 (06:49 -0500)
The README file states that the macros beginning with "CONFIG_SYS_"
depend on the hardware etc. and should not be meddled with if you do
not what you're doing.
We have already screwed up with this policy; we have given the prefix
"CONFIG_SYS_" to many user-selectable configurations.
Here, "CONFIG_SYS_HUSH_PARSER" is one of them.  Users can enable it
if they want to use a more powerful command line parser, or disable it
if they only need a simple one.

This commit attempts to rename CONFIG_SYS_HUSH_PARSER to
CONFIG_HUSH_PARSER and move it to Kconfig.

Every board maintainer is expected to enable CONFIG_HUSH_PARSER
(= add "CONFIG_HUSH_PARSER=y" to his defconfig file) and remove
"#define CONFIG_SYS_HUSH_PARSER" from his header file.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
README
common/Kconfig

diff --git a/README b/README
index 380656563fe4f8b8fa01d46e5c9f409b57e3a309..f52a5f7f64d78bb87aed645598860843154701de 100644 (file)
--- a/README
+++ b/README
@@ -2835,18 +2835,6 @@ CBFS (Coreboot Filesystem) support
 
                Enable auto completion of commands using TAB.
 
-               CONFIG_SYS_HUSH_PARSER
-
-               Define this variable to enable the "hush" shell (from
-               Busybox) as command line interpreter, thus enabling
-               powerful command line syntax like
-               if...then...else...fi conditionals or `&&' and '||'
-               constructs ("shell scripts").
-
-               If undefined, you get the old, much simpler behaviour
-               with a somewhat smaller memory footprint.
-
-
                CONFIG_SYS_PROMPT_HUSH_PS2
 
                This defines the secondary prompt string, which is
index 216a8debd9afb7021622d70453511ea9f35c9fc2..7f8359d691c027f09149dd0cf4209223844f086a 100644 (file)
@@ -1,6 +1,23 @@
 menu "Command line interface"
        depends on !SPL_BUILD
 
+config HUSH_PARSER
+       bool "Use hush shell"
+       select SYS_HUSH_PARSER
+       help
+         This option enables the "hush" shell (from Busybox) as command line
+         interpreter, thus enabling powerful command line syntax like
+         if...then...else...fi conditionals or `&&' and '||'
+         constructs ("shell scripts").
+
+         If disabled, you get the old, much simpler behaviour with a somewhat
+         smaller memory footprint.
+
+config SYS_HUSH_PARSER
+       bool
+       help
+         Backward compatibility.
+
 config CMD_BOOTM
        bool "Enable bootm command"
        default y