Skip to contentSkip to conversation

Fix undefined reference to `getenv_IPaddr' for ARM

PATCH New Syed Mohammed Khasim 1 participant 1 message Jan 18, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix undefined reference to `getenv_IPaddr' for ARM

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

---
 lib_arm/board.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
lib_arm/board.c +2 -0
index e148739..1336534 100644
@@ -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. */
 
Signature · 1 line
1.5.6.3