projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84209af
)
fw_env: Add env vars describing U-Boot target board
author
Benoît Thébaudeau
<benoit.thebaudeau@advansee.com>
Fri, 10 Aug 2012 07:45:15 +0000
(07:45 +0000)
committer
Tom Rini
<trini@ti.com>
Tue, 18 Sep 2012 19:01:51 +0000
(12:01 -0700)
Commit
5e724ca
did the same thing for env_common and env_embedded, but forgot
fw_env.
Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Cc: Wolfgang Denk <wd@denx.de>
tools/env/fw_env.c
patch
|
blob
|
history
diff --git
a/tools/env/fw_env.c
b/tools/env/fw_env.c
index e292d2ba1db43e1f248fb30beadb9732762b0393..1a2c22756eeed6c840cb6b7fbc2b3f253e99b7ce 100644
(file)
--- a/
tools/env/fw_env.c
+++ b/
tools/env/fw_env.c
@@
-203,6
+203,17
@@
static char default_environment[] = {
#if defined(CONFIG_PCI_BOOTDELAY) && (CONFIG_PCI_BOOTDELAY > 0)
"pcidelay=" MK_STR (CONFIG_PCI_BOOTDELAY) "\0"
#endif
+#ifdef CONFIG_ENV_VARS_UBOOT_CONFIG
+ "arch=" CONFIG_SYS_ARCH "\0"
+ "cpu=" CONFIG_SYS_CPU "\0"
+ "board=" CONFIG_SYS_BOARD "\0"
+#ifdef CONFIG_SYS_VENDOR
+ "vendor=" CONFIG_SYS_VENDOR "\0"
+#endif
+#ifdef CONFIG_SYS_SOC
+ "soc=" CONFIG_SYS_SOC "\0"
+#endif
+#endif
#ifdef CONFIG_EXTRA_ENV_SETTINGS
CONFIG_EXTRA_ENV_SETTINGS
#endif