[U-Boot] [PATCH] push CROSS_COMPILE out to $(ARCH)_config.mk

Wolfgang Denk wd at denx.de
Sun Jul 19 21:36:22 CEST 2009


Dear Mike Frysinger,

In message <1245036794-7396-1-git-send-email-vapier at gentoo.org> you wrote:
> Each arch should handle setting a proper default CROSS_COMPILE value in
> their own config.mk file rather than having to maintain a large ugly list
> in the Makefile.  By using conditional assignment, we don't have to worry
> about the variable already being set (env/cmdline/etc...).
> 
> The common config.mk file takes care of exporting CROSS_COMPILE already,
> and while a few variables (toolchain ones) utilize CROSS_COMPILE before
> including the arch config.mk, they do so with deferred assignment.
> 
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
> ---
>  Makefile             |   44 ++------------------------------------------
>  arm_config.mk        |    2 ++
>  avr32_config.mk      |    2 ++
>  blackfin_config.mk   |    2 ++
>  i386_config.mk       |    2 ++
>  m68k_config.mk       |    2 ++
>  microblaze_config.mk |    2 ++
>  mips_config.mk       |    2 ++
>  nios2_config.mk      |    2 ++
>  nios_config.mk       |    2 ++
>  ppc_config.mk        |    2 ++
>  sh_config.mk         |    2 ++
>  sparc_config.mk      |    2 ++
>  13 files changed, 26 insertions(+), 42 deletions(-)

Applied, thanks.

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 read part of it all the way through.


More information about the U-Boot mailing list