9
0
Fork 0

commands: move CONFIG_LONGHELP to commands/Kconfig

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Holger Schurig 2014-05-13 10:28:59 +02:00 committed by Sascha Hauer
parent fc0f7eec82
commit 2071940c76
2 changed files with 37 additions and 5 deletions

View File

@ -97,6 +97,43 @@ config CMD_HELP
-a output help on all commands
-v verbose
config LONGHELP
bool
depends on !SHELL_NONE && CMD_HELP
prompt "Long help texts"
help
This make the "help" command of barebox spit out much more information,
but (obviously) also makes barebox bigger.
Example with CONFIG_LONGHELP:
-----------------------------
barebox:/ help ls
ls - list a file or directory
Usage: ls [-lCR] [FILEDIR...]
List information about the specified files or directories.
Options:
-l long format
-C column format (opposite of long format)
-R list subdirectories recursively
-----------------------------
And now without CONFIG_LONGHELP:
-----------------------------
barebox:/ help ls
ls - list a file or directory
Usage: ls [-lCR] [FILEDIR...]
-----------------------------
With my specific .config, the binary size increased from 461500 to 481980.
config CMD_IOMEM
tristate
prompt "iomem and ioport"

View File

@ -294,11 +294,6 @@ config SIMPLE_READLINE
default y
depends on !CMDLINE_EDITING
config LONGHELP
bool
depends on !SHELL_NONE
prompt "Enable long help texts"
config CBSIZE
int
prompt "Buffer size for input from the Console"