public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] ppc: Don't use getenv_IPaddr() systems without network support
@ 2009-12-22 12:04 Stefan Roese
  2009-12-22 14:54 ` Matthias Fuchs
  2009-12-22 22:02 ` Wolfgang Denk
  0 siblings, 2 replies; 4+ messages in thread
From: Stefan Roese @ 2009-12-22 12:04 UTC (permalink / raw)
  To: u-boot

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

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

* [U-Boot] [PATCH] ppc: Don't use getenv_IPaddr() systems without network support
  2009-12-22 12:04 [U-Boot] [PATCH] ppc: Don't use getenv_IPaddr() systems without network support Stefan Roese
@ 2009-12-22 14:54 ` Matthias Fuchs
  2009-12-22 22:02 ` Wolfgang Denk
  1 sibling, 0 replies; 4+ messages in thread
From: Matthias Fuchs @ 2009-12-22 14:54 UTC (permalink / raw)
  To: u-boot

Hi Stefan,

thanks for fixing this issue.

Acked-by: Matthias Fuchs <matthias.fuchs@esd.eu>

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 <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 ();
>  

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

* [U-Boot] [PATCH] ppc: Don't use getenv_IPaddr() systems without network support
  2009-12-22 12:04 [U-Boot] [PATCH] ppc: Don't use getenv_IPaddr() systems without network support Stefan Roese
  2009-12-22 14:54 ` Matthias Fuchs
@ 2009-12-22 22:02 ` Wolfgang Denk
  2009-12-23  5:50   ` Stefan Roese
  1 sibling, 1 reply; 4+ messages in thread
From: Wolfgang Denk @ 2009-12-22 22:02 UTC (permalink / raw)
  To: u-boot

Dear Stefan Roese,

In message <1261483470-29255-1-git-send-email-sr@denx.de> you 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 <sr@denx.de>
> ---
>  lib_ppc/board.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Will this patch make the "bdinfo" command print a random IP address?


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
You see things; and you say ``Why?'' But I dream  things  that  never
were; and I say ``Why not?''
       - George Bernard Shaw _Back to Methuselah_ (1921) pt. 1, act 1

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

* [U-Boot] [PATCH] ppc: Don't use getenv_IPaddr() systems without network support
  2009-12-22 22:02 ` Wolfgang Denk
@ 2009-12-23  5:50   ` Stefan Roese
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Roese @ 2009-12-23  5:50 UTC (permalink / raw)
  To: u-boot

Hi Wolfgang,

On Tuesday 22 December 2009 23:02:54 Wolfgang Denk 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 <sr@denx.de>
> > ---
> >  lib_ppc/board.c |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> Will this patch make the "bdinfo" command print a random IP address?

Maybe. Or it will be all zero's. 

The first intention of this patch was to fix the recent build breakage on 
those boards without networking support. I'll try to cook up a patch to remove 
networking stuff from the bdinfo command soon.

Cheers,
Stefan

--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de

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

end of thread, other threads:[~2009-12-23  5:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-22 12:04 [U-Boot] [PATCH] ppc: Don't use getenv_IPaddr() systems without network support Stefan Roese
2009-12-22 14:54 ` Matthias Fuchs
2009-12-22 22:02 ` Wolfgang Denk
2009-12-23  5:50   ` Stefan Roese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox