[U-Boot-Users] [PATCH] Added ETHPRIME to default_environment

Ben Warren bwarren at qstreams.com
Thu Oct 26 22:09:56 CEST 2006


This patch adds the ETHPRIME option to the default_environment list.  It
not being there prevented CONFIG_ETHPRIME from working on a newly
flashed board.  The lists in 'common/env_common.c' and
'common/environment.c' are now synchronized.

Signed-off-by: Ben Warren <bwarren at qstreams.com>
---
common/env_common.c |    9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/common/env_common.c b/common/env_common.c
index eb33422..5f91851 100644
--- a/common/env_common.c
+++ b/common/env_common.c
@@ -99,6 +99,9 @@ #endif
#ifdef CONFIG_ETH3ADDR
"eth3addr=" MK_STR(CONFIG_ETH3ADDR) "\0"
#endif
+#ifdef CONFIG_ETHPRIME
+ "ethprime=" CONFIG_ETHPRIME "\0"
+#endif
#ifdef CONFIG_IPADDR
"ipaddr=" MK_STR(CONFIG_IPADDR) "\0"
#endif
@@ -108,9 +111,6 @@ #endif
#ifdef CFG_AUTOLOAD
"autoload=" CFG_AUTOLOAD "\0"
#endif
-#ifdef CONFIG_PREBOOT
- "preboot=" CONFIG_PREBOOT "\0"
-#endif
#ifdef CONFIG_ROOTPATH
"rootpath=" MK_STR(CONFIG_ROOTPATH) "\0"
#endif
@@ -129,6 +129,9 @@ #endif
#ifdef CONFIG_LOADADDR
"loadaddr=" MK_STR(CONFIG_LOADADDR) "\0"
#endif
+#ifdef CONFIG_PREBOOT
+ "preboot=" CONFIG_PREBOOT "\0"
+#endif
#ifdef  CONFIG_CLOCKS_IN_MHZ
"clocks_in_mhz=1\0"
#endif
-- 
1.4.1






More information about the U-Boot mailing list