Patchwork [U-Boot,1/4] common/env_common: Add CONFIG_SILENT_CONSOLE_AT_BOOT env option

login
register
mail settings
Submitter Matthew McClintock
Date June 2, 2011, 7:34 p.m.
Message ID <1307043300-11253-1-git-send-email-msm@freescale.com>
Download mbox | patch
Permalink /patch/98473/
State Rejected
Headers show

Comments

Matthew McClintock - June 2, 2011, 7:34 p.m.
Just setting CONFIG_SILENT_CONSOLE does not make the CONSOLE
silent without the silent env variable set. This adds a new
define to add this to the default environment easily

Signed-off-by: Matthew McClintock <msm@freescale.com>
---
 README              |    4 ++++
 common/env_common.c |    3 +++
 2 files changed, 7 insertions(+), 0 deletions(-)
Mike Frysinger - June 3, 2011, 4:55 a.m.
On Thursday, June 02, 2011 15:34:57 Matthew McClintock wrote:
> Just setting CONFIG_SILENT_CONSOLE does not make the CONSOLE
> silent without the silent env variable set. This adds a new
> define to add this to the default environment easily

any reason you couldnt add silent=0 to CONFIG_EXTRA_ENV_SETTINGS ?
-mike

Patch

diff --git a/README b/README
index ed73981..8779544 100644
--- a/README
+++ b/README
@@ -546,6 +546,10 @@  The following options need to be configured:
 		the "silent" environment variable. See
 		doc/README.silent for more information.
 
+		When CONFIG_SILENT_CONSOLE_AT_BOOT is set u-boot
+		will be built with silent defined in the default
+		environment for a completly silent console at boot
+
 - Console Baudrate:
 		CONFIG_BAUDRATE - in bps
 		Select one of the baudrates listed in
diff --git a/common/env_common.c b/common/env_common.c
index c3e6388..3b09373 100644
--- a/common/env_common.c
+++ b/common/env_common.c
@@ -123,6 +123,9 @@  uchar default_environment[] = {
 #if defined(CONFIG_PCI_BOOTDELAY) && (CONFIG_PCI_BOOTDELAY > 0)
 	"pcidelay="	MK_STR(CONFIG_PCI_BOOTDELAY)	"\0"
 #endif
+#ifdef CONFIG_SILENT_CONSOLE_AT_BOOT
+	"silent=1\0"
+#endif
 #ifdef  CONFIG_EXTRA_ENV_SETTINGS
 	CONFIG_EXTRA_ENV_SETTINGS
 #endif