]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
Add an option to enable the command line
authorSimon Glass <sjg@chromium.org>
Mon, 14 Mar 2016 01:07:28 +0000 (19:07 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 22 Mar 2016 16:16:08 +0000 (12:16 -0400)
Add a new Kconfig option for the command line. This is enabled by default,
but when disabled it will remove the command line.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
README
cmd/Kconfig

diff --git a/README b/README
index 523941f804a200929f168cd7769b3dd776967f38..4fec46734d3ce12ac6d4ccf6836e35779f8a86dc 100644 (file)
--- a/README
+++ b/README
@@ -1108,6 +1108,14 @@ The following options need to be configured:
 
                XXX - this list needs to get updated!
 
+- Removal of commands
+               If no commands are needed to boot, you can disable
+               CONFIG_CMDLINE to remove them. In this case, the command line
+               will not be available, and when U-Boot wants to execute the
+               boot command (on start-up) it will call board_run_command()
+               instead. This can reduce image size significantly for very
+               simple boot procedures.
+
 - Regular expression support:
                CONFIG_REGEX
                If this variable is defined, U-Boot is linked against
index 7cdff04a624b0448186a743303010bfaa3ae42f0..cdcaff8bea4050bdf7875a095258390caa290293 100644 (file)
@@ -1,8 +1,20 @@
 menu "Command line interface"
 
+config CMDLINE
+       bool "Support U-Boot commands"
+       default y
+       help
+         Enable U-Boot's command-line functions. This provides a means
+         to enter commands into U-Boot for a wide variety of purposes. It
+         also allows scripts (containing commands) to be executed.
+         Various commands and command categorys can be indivdually enabled.
+         Depending on the number of commands enabled, this can add
+         substantially to the size of U-Boot.
+
 config HUSH_PARSER
        bool "Use hush shell"
        select SYS_HUSH_PARSER
+       depends on CMDLINE
        help
          This option enables the "hush" shell (from Busybox) as command line
          interpreter, thus enabling powerful command line syntax like