[U-Boot] [PATCH 15/31] powerpc: keymile boards: conditional definition of a private env part

Heiko Schocher hs at denx.de
Wed Jan 28 10:39:49 CET 2009


by defining CONFIG_KM_DEF_ENV_PRIVATE somewhere
the content of CONFIG_KM_DEF_ENV_PRIVATE will be
included into the default environment

Signed-off-by: Thomas Herzmann <thomas.herzmann at keymile.com>
Signed-off-by: Heiko Schocher <hs at denx.de>
---
 include/configs/keymile-common.h |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/include/configs/keymile-common.h b/include/configs/keymile-common.h
index 417f6b0..6abe27a 100644
--- a/include/configs/keymile-common.h
+++ b/include/configs/keymile-common.h
@@ -155,6 +155,11 @@
 	"stdout=serial \0"
 #endif

+#ifndef CONFIG_KM_DEF_ENV_PRIVATE
+#define	CONFIG_KM_DEF_ENV_PRIVATE \
+	"kmprivate=empty\0"
+#endif
+
 #define xstr(s)	str(s)
 #define str(s)	#s

@@ -196,7 +201,7 @@
 		"hwKey=${IVM_HWKey} boardId=0x${IVM_BoardId} \0" 	\
 	"net_nfs=tftp ${kernel_addr_r} ${kernel_file}; "		\
 		"tftp ${fdt_addr_r} ${fdt_file}; "			\
-		"run nfsargs addip addcon;"				\
+		"run nfsargs addip addcon addboardid;"			\
 		"bootm ${kernel_addr_r} - ${fdt_addr_r}\0"		\
 	"net_self=tftp ${kernel_addr_r} ${kernel_file}; "		\
 		"tftp ${fdt_addr_r} ${fdt_file}; "			\
@@ -244,6 +249,7 @@
 		"iminfo ${autoscr_ws}; autoscr ${autoscr_ws} \0"	\
 	"bootlimit=0 \0" 						\
 	CONFIG_KM_DEF_ENV_IOMUX						\
+	CONFIG_KM_DEF_ENV_PRIVATE					\
 	""
 #endif /* CONFIG_KM_DEF_ENV */

-- 
1.6.0.6

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany


More information about the U-Boot mailing list