[U-Boot] [PATCH 13/28] SPEAr : Supporting various configurations for spear3xx and spear6xx boards

Wolfgang Denk wd at denx.de
Thu Jul 15 23:55:11 CEST 2010


Dear Vipin KUMAR,

In message <1279084204-3263-14-git-send-email-vipin.kumar at st.com> you wrote:
> From: Vipin KUMAR <vipin.kumar at st.com>
> 
> spear3xx and 6xx boards can be compiled in following configurations
> 1. Environment placed in NAND
> 2. console on usb device
> 3. console on usb device with environment placed in NAND
> 
> Also, renaming the include/configs/spearxxx.h files to spear3xx_evb.h,
> spear6xx_evb.h etc to depict evaluation board configuration.
> 
> Signed-off-by: Vipin Kumar <vipin.kumar at st.com>
> ---
>  Makefile                                       |   25 +++++++++++++++----
>  board/spear/spear300/config.mk                 |   11 --------
>  board/spear/spear310/config.mk                 |   11 --------
>  board/spear/spear320/config.mk                 |   11 --------
>  board/spear/spear600/config.mk                 |   11 --------
>  doc/README.spear                               |   31 +++++++++++++++++-------
>  include/configs/{spear3xx.h => spear3xx_evb.h} |   10 +++++++
>  include/configs/{spear6xx.h => spear6xx_evb.h} |   10 +++++++
>  8 files changed, 62 insertions(+), 58 deletions(-)
>  rename include/configs/{spear3xx.h => spear3xx_evb.h} (95%)
>  rename include/configs/{spear6xx.h => spear6xx_evb.h} (88%)
> 
> diff --git a/Makefile b/Makefile
> index 1d87f37..e264c50 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -2088,12 +2088,27 @@ omap730p2_cs3boot_config :	unconfig
>  	@$(MKCONFIG) -n $@ -a omap730p2 arm arm926ejs omap730p2 ti omap
>  
>  spear300_config \
> +spear300_nand_config \
> +spear300_usbtty_config \
> +spear300_usbtty_nand_config \
>  spear310_config \
> -spear320_config :	unconfig
> -	@$(MKCONFIG) -n $@ -t $@ spear3xx arm arm926ejs $(@:_config=) spear spear
> -
> -spear600_config :	unconfig
> -	@$(MKCONFIG) -n $@ -t $@ spear6xx arm arm926ejs $(@:_config=) spear spear
> +spear310_nand_config \
> +spear310_usbtty_config \
> +spear310_usbtty_nand_config \
> +spear320_config \
> +spear320_nand_config \
> +spear320_usbtty_config \
> +spear320_usbtty_nand_config :	unconfig
> +	@$(MKCONFIG) -n $@ -t $@ spear3xx_evb arm arm926ejs $(@:_config=) spear spear
> +
> +spear600_config \
> +spear600_nand_config \
> +spear600_usbtty_config \
> +spear600_usbtty_nand_config :	unconfig
> +	@$(MKCONFIG) -n $@ -t $@ spear6xx_evb arm arm926ejs $(@:_config=) spear spear
> +
> +suen3_config:	unconfig
> +	@$(MKCONFIG) $(@:_config=) arm arm926ejs km_arm keymile kirkwood

NAK.


I don't want to have such stuff in the Makefile any more.  Please try
to find a way how to do this using boards.cfg instead.

[I know that tis is non-trivial; you may want to talk to Detlev about
this - he was thinking about the same issue, but I don;t know if he
came to any conclusions.]


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
I have the simplest tastes.  I am always satisfied with the best.
                                                       -- Oscar Wilde


More information about the U-Boot mailing list