From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] ppc: Don't use getenv_IPaddr() systems without network support
Date: Tue, 22 Dec 2009 13:04:30 +0100 [thread overview]
Message-ID: <1261483470-29255-1-git-send-email-sr@denx.de> (raw)
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 <sr@denx.de>
---
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 ();
--
1.6.6.rc4
next reply other threads:[~2009-12-22 12:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-22 12:04 Stefan Roese [this message]
2009-12-22 14:54 ` [U-Boot] [PATCH] ppc: Don't use getenv_IPaddr() systems without network support Matthias Fuchs
2009-12-22 22:02 ` Wolfgang Denk
2009-12-23 5:50 ` Stefan Roese
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1261483470-29255-1-git-send-email-sr@denx.de \
--to=sr@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox