All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] omap3: beagle: fix compile error
@ 2009-12-23 14:54 Sanjeev Premi
  2009-12-24  6:13 ` Dirk Behme
  2009-12-25 23:33 ` Wolfgang Denk
  0 siblings, 2 replies; 8+ messages in thread
From: Sanjeev Premi @ 2009-12-23 14:54 UTC (permalink / raw)
  To: u-boot

The configuration for beagle undefs CONFIG_CMD_NET.
This leads to following error:

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

This patch fixes the error by including offending line
in appropriate ifdef.

Signed-off-by: Sanjeev Premi <premi@ti.com>
---
 lib_arm/board.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lib_arm/board.c b/lib_arm/board.c
index e148739..e289fc9 100644
--- a/lib_arm/board.c
+++ b/lib_arm/board.c
@@ -357,8 +357,9 @@ void start_armboot (void)
 #endif
 
 	/* IP Address */
+#ifdef CONFIG_CMD_NET
 	gd->bd->bi_ip_addr = getenv_IPaddr ("ipaddr");
-
+#endif
 	stdio_init ();	/* get the devices list going. */
 
 	jumptable_init ();
-- 
1.6.2.2

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-12-28 19:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-23 14:54 [U-Boot] [PATCH] omap3: beagle: fix compile error Sanjeev Premi
2009-12-24  6:13 ` Dirk Behme
2009-12-25 23:33   ` Wolfgang Denk
2009-12-26  8:08     ` Dirk Behme
2009-12-28 19:38       ` Wolfgang Denk
2009-12-25 23:33 ` Wolfgang Denk
2009-12-28 12:42   ` Premi, Sanjeev
2009-12-28 19:34     ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.