[U-Boot-Users] [PATCH: cmdcfg: 12/19] cpu/mpc*/ : Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).

Jon Loeliger jdl at freescale.com
Tue Jun 12 21:07:00 CEST 2007


On Mon, 2007-06-11 at 19:03, Jon Loeliger wrote:
> This is a compatibility step that allows both the older form
> and the new form to co-exist for a while until the older can
> be removed entirely.
> 
> All transformations are of the form:
> Before:
>     #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT)
> After:
>     #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT)
> 
> Signed-off-by: Jon Loeliger <jdl at freescale.com>
> ---

Minor note here.  I fixed a typo in this patch.
I will spare you reposting it, but it will be
available in my repository.

Here:

> diff --git a/cpu/mpc85xx/ether_fcc.c b/cpu/mpc85xx/ether_fcc.c
> index d15d242..a6b2ae3 100644
> --- a/cpu/mpc85xx/ether_fcc.c
> +++ b/cpu/mpc85xx/ether_fcc.c

> @@ -458,7 +458,7 @@ int fec_initialize(bd_t *bis)
>  
>  		eth_register(dev);
>  
> -#if (defined(CONFIG_MII) || (CONFIG_COMMANDS & CFG_CMD_MII)) \
> +#if (defined(CONFIG_MII) || (CONFIG_COMMANDS & CFG_CMD_MII) || defined(CONFIG_CMD_MII)) || \
>  		&& defined(CONFIG_BITBANGMII)
>  		miiphy_register(dev->name,
>  				bb_miiphy_read,	bb_miiphy_write);

Bad trailing " || " there.  Feh.

jdl






More information about the U-Boot mailing list