From: Matthias Fuchs Date: Tue, 22 Dec 2009 15:54:05 +0100 Subject: [U-Boot] [PATCH] ppc: Don't use getenv_IPaddr() systems without network support In-Reply-To: <1261483470-29255-1-git-send-email-sr@denx.de> References: <1261483470-29255-1-git-send-email-sr@denx.de> Message-ID: <200912221554.05648.matthias.fuchs@esd.eu> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Stefan, thanks for fixing this issue. Acked-by: Matthias Fuchs On Tuesday 22 December 2009 13:04, Stefan Roese wrote: > This patch disables the usage of getenv_IPaddr() in lib_ppc/board.c > on systems that don't have network support enabled. > > This fixes the following compilation problem: > > ./MAKEALL DP405 > Configuring for DP405 board... > lib_ppc/libppc.a(board.o): In function `board_init_r': > /home/stefan/git/u-boot/u-boot/lib_ppc/board.c:858: undefined reference to `getenv_IPaddr' > > Signed-off-by: Stefan Roese > --- > lib_ppc/board.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/lib_ppc/board.c b/lib_ppc/board.c > index dd22f99..c1fbaa5 100644 > --- a/lib_ppc/board.c > +++ b/lib_ppc/board.c > @@ -852,10 +852,10 @@ void board_init_r (gd_t *id, ulong dest_addr) > #ifdef CONFIG_HAS_ETH5 > eth_getenv_enetaddr("eth5addr", bd->bi_enet5addr); > #endif > -#endif /* CONFIG_CMD_NET */ > > /* IP Address */ > bd->bi_ip_addr = getenv_IPaddr ("ipaddr"); > +#endif /* CONFIG_CMD_NET */ > > WATCHDOG_RESET (); >