Commit 6c77509000000396a6ad0815e76ffd38d95fb3fd

Authored by Masahiro Yamada
Committed by Tom Rini
1 parent b6cf44395f

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>

Showing 2 changed files with 17 additions and 12 deletions Side-by-side Diff

... ... @@ -2835,18 +2835,6 @@
2835 2835  
2836 2836 Enable auto completion of commands using TAB.
2837 2837  
2838   - CONFIG_SYS_HUSH_PARSER
2839   -
2840   - Define this variable to enable the "hush" shell (from
2841   - Busybox) as command line interpreter, thus enabling
2842   - powerful command line syntax like
2843   - if...then...else...fi conditionals or `&&' and '||'
2844   - constructs ("shell scripts").
2845   -
2846   - If undefined, you get the old, much simpler behaviour
2847   - with a somewhat smaller memory footprint.
2848   -
2849   -
2850 2838 CONFIG_SYS_PROMPT_HUSH_PS2
2851 2839  
2852 2840 This defines the secondary prompt string, which is
1 1 menu "Command line interface"
2 2 depends on !SPL_BUILD
3 3  
  4 +config HUSH_PARSER
  5 + bool "Use hush shell"
  6 + select SYS_HUSH_PARSER
  7 + help
  8 + This option enables the "hush" shell (from Busybox) as command line
  9 + interpreter, thus enabling powerful command line syntax like
  10 + if...then...else...fi conditionals or `&&' and '||'
  11 + constructs ("shell scripts").
  12 +
  13 + If disabled, you get the old, much simpler behaviour with a somewhat
  14 + smaller memory footprint.
  15 +
  16 +config SYS_HUSH_PARSER
  17 + bool
  18 + help
  19 + Backward compatibility.
  20 +
4 21 config CMD_BOOTM
5 22 bool "Enable bootm command"
6 23 default y