[U-Boot] [PATCH] ARM: Fix building without CONFIG_CMD_NET

Marcel Ziswiler marcel at ziswiler.com
Thu Dec 24 03:08:50 CET 2009


Delta and Zylonite both do not define CONFIG_CMD_NET by default and therefore
failed building:

lib_arm/libarm.a(board.o): In function `start_armboot':
/home/sumo/Noser/Linux/u-boot.git/lib_arm/board.c:360: undefined reference to `getenv_IPaddr'
make: *** [u-boot] Error 1

Saw that this got already fixed for ppc. Duno why nobody considered ARM as well!

Signed-off-by: Marcel Ziswiler <marcel.ziswiler at noser.com>
---
 lib_arm/board.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib_arm/board.c b/lib_arm/board.c
index e148739..453d660 100644
--- a/lib_arm/board.c
+++ b/lib_arm/board.c
@@ -356,8 +356,10 @@ void start_armboot (void)
 	serial_initialize();
 #endif
 
+#ifdef CONFIG_CMD_NET
 	/* IP Address */
 	gd->bd->bi_ip_addr = getenv_IPaddr ("ipaddr");
+#endif
 
 	stdio_init ();	/* get the devices list going. */
 
-- 
1.6.0.4




More information about the U-Boot mailing list