Re: [U-Boot] [PATCH 2/9] Add an option to enable the command line

2016-02-26 Thread Tom Rini
On Thu, Feb 25, 2016 at 09:00:49PM -0700, Simon Glass wrote:

> 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 

Reviewed-by: Tom Rini 

-- 
Tom


signature.asc
Description: Digital signature
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 2/9] Add an option to enable the command line

2016-02-25 Thread Simon Glass
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 
---

 README  |  8 
 cmd/Kconfig | 12 
 2 files changed, 20 insertions(+)

diff --git a/README b/README
index 362ff19..a6d7935 100644
--- 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
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 2ed0263..8ead967 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -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
-- 
2.7.0.rc3.207.g0ac5344

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot