[PATCH] Fix undefined reference to `getenv_IPaddr' for ARM

Syed Mohammed Khasim khasim at ti.com
Mon Jan 18 15:07:26 CET 2010


lib_arm/libarm.a(board.o): In function `start_armboot':
/home/khasim/beagle/u-boot_mailing/u-boot-ti/lib_arm/board.c:361:
undefined reference to `getenv_IPaddr'
make: *** [u-boot] Error 1

Signed-off-by: Syed Mohammed Khasim <khasim at ti.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..1336534 100644
--- a/lib_arm/board.c
+++ b/lib_arm/board.c
@@ -356,8 +356,10 @@ void start_armboot (void)
 	serial_initialize();
 #endif

+#if defined(CONFIG_CMD_NET)
 	/* IP Address */
 	gd->bd->bi_ip_addr = getenv_IPaddr ("ipaddr");
+#endif

 	stdio_init ();	/* get the devices list going. */

-- 
1.5.6.3


More information about the U-Boot mailing list