All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dirk Behme <dirk.behme@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] AVR32, i386, m68k, MIPS, NIOS, NIOS2 and SPARC: Fix building without CONFIG_CMD_NET
Date: Sat, 26 Dec 2009 09:11:47 +0100	[thread overview]
Message-ID: <4B35C543.7030707@googlemail.com> (raw)
In-Reply-To: <1261621373.3706.36.camel@com-21>

On 24.12.2009 03:22, Marcel Ziswiler wrote:
> Saw that this got already fixed for ppc.

Any hint how/where it was fixed for ppc? Hopefully this fix can give 
us a hint how to fix it for all other architectures. Wolfgang doesn't 
seem to like fix below ;)

Best regards

Dirk

> Duno why nobody considered the other
> archs as well!
>
> Signed-off-by: Marcel Ziswiler<marcel.ziswiler@noser.com>
> ---
>   lib_avr32/board.c |    2 ++
>   lib_i386/board.c  |    2 ++
>   lib_m68k/board.c  |    2 ++
>   lib_mips/board.c  |    2 ++
>   lib_nios/board.c  |    2 ++
>   lib_nios2/board.c |    2 ++
>   lib_sparc/board.c |    3 +++
>   7 files changed, 15 insertions(+), 0 deletions(-)
>
> diff --git a/lib_avr32/board.c b/lib_avr32/board.c
> index 917ed6c..654f39b 100644
> --- a/lib_avr32/board.c
> +++ b/lib_avr32/board.c
> @@ -331,7 +331,9 @@ void board_init_r(gd_t *new_gd, ulong dest_addr)
>   	/* initialize environment */
>   	env_relocate();
>
> +#ifdef CONFIG_CMD_NET
>   	bd->bi_ip_addr = getenv_IPaddr ("ipaddr");
> +#endif
>
>   	stdio_init();
>   	jumptable_init();
> 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
>
>   #if defined(CONFIG_PCI)
>   	/*
> diff --git a/lib_m68k/board.c b/lib_m68k/board.c
> index 732023d..f0aac98 100644
> --- a/lib_m68k/board.c
> +++ b/lib_m68k/board.c
> @@ -545,6 +545,7 @@ void board_init_r (gd_t *id, ulong dest_addr)
>   	/* relocate environment function pointers etc. */
>   	env_relocate ();
>
> +#ifdef CONFIG_CMD_NET
>   	/*
>   	 * Fill in missing fields of bd_info.
>   	 * We do this here, where we have "normal" access to the
> @@ -553,6 +554,7 @@ void board_init_r (gd_t *id, ulong dest_addr)
>   	 * the environment is in EEPROM.
>   	 */
>   	bd->bi_ip_addr = getenv_IPaddr ("ipaddr");
> +#endif
>
>   	WATCHDOG_RESET ();
>
> diff --git a/lib_mips/board.c b/lib_mips/board.c
> index b2d113e..5c35884 100644
> --- a/lib_mips/board.c
> +++ b/lib_mips/board.c
> @@ -370,8 +370,10 @@ void board_init_r (gd_t *id, ulong dest_addr)
>   	/* relocate environment function pointers etc. */
>   	env_relocate();
>
> +#ifdef CONFIG_CMD_NET
>   	/* IP Address */
>   	bd->bi_ip_addr = getenv_IPaddr("ipaddr");
> +#endif
>
>   #if defined(CONFIG_PCI)
>   	/*
> diff --git a/lib_nios/board.c b/lib_nios/board.c
> index 5d2fb2e..e782884 100644
> --- a/lib_nios/board.c
> +++ b/lib_nios/board.c
> @@ -121,7 +121,9 @@ void board_init (void)
>   	WATCHDOG_RESET ();
>   	env_relocate();
>
> +#ifdef CONFIG_CMD_NET
>   	bd->bi_ip_addr = getenv_IPaddr ("ipaddr");
> +#endif
>
>   	WATCHDOG_RESET ();
>   	stdio_init();
> diff --git a/lib_nios2/board.c b/lib_nios2/board.c
> index 41d3297..699de2e 100644
> --- a/lib_nios2/board.c
> +++ b/lib_nios2/board.c
> @@ -125,7 +125,9 @@ void board_init (void)
>   	WATCHDOG_RESET ();
>   	env_relocate();
>
> +#ifdef CONFIG_CMD_NET
>   	bd->bi_ip_addr = getenv_IPaddr ("ipaddr");
> +#endif
>
>   	WATCHDOG_RESET ();
>   	stdio_init();
> diff --git a/lib_sparc/board.c b/lib_sparc/board.c
> index 11eea60..35e7359 100644
> --- a/lib_sparc/board.c
> +++ b/lib_sparc/board.c
> @@ -361,8 +361,11 @@ void board_init_f(ulong bootflag)
>   	mac_read_from_eeprom();
>   #endif
>
> +#ifdef CONFIG_CMD_NET
>   	/* IP Address */
>   	bd->bi_ip_addr = getenv_IPaddr("ipaddr");
> +#endif
> +
>   #if defined(CONFIG_PCI)
>   	/*
>   	 * Do pci configuration

      reply	other threads:[~2009-12-26  8:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-24  2:22 [U-Boot] [PATCH] AVR32, i386, m68k, MIPS, NIOS, NIOS2 and SPARC: Fix building without CONFIG_CMD_NET Marcel Ziswiler
2009-12-26  8:11 ` Dirk Behme [this message]

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=4B35C543.7030707@googlemail.com \
    --to=dirk.behme@googlemail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.