summaryrefslogtreecommitdiff
path: root/common/Kconfig
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-11-13 19:29:07 +0900
committerTom Rini <trini@ti.com>2014-11-23 06:49:03 -0500
commit6c77509000000396a6ad0815e76ffd38d95fb3fd (patch)
treef0aad9e7cec8bedb4aab439ccf1107810df4012b /common/Kconfig
parentb6cf44395f82d990b9855d6244880c9b9cfd5044 (diff)
downloadu-boot-imx-6c77509000000396a6ad0815e76ffd38d95fb3fd.zip
u-boot-imx-6c77509000000396a6ad0815e76ffd38d95fb3fd.tar.gz
u-boot-imx-6c77509000000396a6ad0815e76ffd38d95fb3fd.tar.bz2
hush: add CONFIG_HUSH_PARSER to Kconfig
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>
Diffstat (limited to 'common/Kconfig')
-rw-r--r--common/Kconfig17
1 files changed, 17 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig
index 216a8de..7f8359d 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -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