From: Vipin Kumar Date: Thu, 25 Mar 2010 17:15:54 +0530 Subject: [U-Boot] [RFC][PATCH 02/21] [x86] #ifdef out getenv_IPaddr() In-Reply-To: <1269516183-9306-3-git-send-email-graeme.russ@gmail.com> References: <1269516183-9306-1-git-send-email-graeme.russ@gmail.com> <1269516183-9306-3-git-send-email-graeme.russ@gmail.com> Message-ID: <83d1d72b1003250445x26e51debma147d3f0de7234df@mail.gmail.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 Thu, Mar 25, 2010 at 4:52 PM, Graeme Russ wrote: > --- > I cannot recall exactly why this is needed but it is > > ?lib_i386/board.c | ? ?2 ++ > ?1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/lib_i386/board.c b/lib_i386/board.c > index f3b6348..af81cd5 100644 > --- a/lib_i386/board.c > +++ b/lib_i386/board.c > @@ -280,8 +280,10 @@ void board_init_r(gd_t *id, ulong ram_start) > ? ? ? ?show_boot_progress(0x26); > > > +#ifdef CONFIG_CMD_NET > ? ? ? ?/* IP Address */ > ? ? ? ?bd_data.bi_ip_addr = getenv_IPaddr ("ipaddr"); > +#endif > Some boards do not support CMD_NET interface. getenvIPaddr is not defined in that case. that's why > ?#if defined(CONFIG_PCI) > ? ? ? ?/* > -- > 1.7.0.2.182.ge007 > > _______________________________________________ > U-Boot mailing list > U-Boot at lists.denx.de > http://lists.denx.de/mailman/listinfo/u-boot >