[PATCH 19/19] commands: move CONFIG_LONGHELP to commands/Kconfig
Holger Schurig
holgerschurig at gmail.com
Tue May 13 01:28:59 PDT 2014
Signed-off-by: Holger Schurig <holgerschurig at gmail.com>
---
commands/Kconfig | 37 +++++++++++++++++++++++++++++++++++++
common/Kconfig | 5 -----
2 files changed, 37 insertions(+), 5 deletions(-)
diff --git a/commands/Kconfig b/commands/Kconfig
index e105b84..9b61b57 100644
--- a/commands/Kconfig
+++ b/commands/Kconfig
@@ -105,6 +105,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"
diff --git a/common/Kconfig b/common/Kconfig
index 7a92a59..1afee93 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -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"
--
1.7.10.4
More information about the barebox
mailing list