From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dirk Behme Date: Thu, 24 Dec 2009 07:13:59 +0100 Subject: [U-Boot] [PATCH] omap3: beagle: fix compile error In-Reply-To: <1261580085-22547-1-git-send-email-premi@ti.com> References: <1261580085-22547-1-git-send-email-premi@ti.com> Message-ID: <4B3306A7.5010409@googlemail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 23.12.2009 15:54, Sanjeev Premi wrote: > 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 Acked-by: Dirk Behme Tom: Could we get this applied and sent to Wolfgang asap? Mainline Beagle, Pandora, Zoom1and Zoom2 are broken without this. Best regards Dirk > --- > 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 ();