[U-Boot] [PATCH 1/2 for 2010.12 ] Add support PLATFORM_LDFLAGS to cmd_link_o_target

Nobuhiro Iwamatsu iwamatsu at nigauri.org
Sun Dec 26 00:02:58 CET 2010


Oh, sorry.
I mistake subject...
This is not for 2010.12..

Nobuhiro

2010/12/26 Nobuhiro Iwamatsu <iwamatsu at nigauri.org>:
> Current cmd_link_o_target function in config.mk does not support the set
> of the endian.
>
> Some architecture is bi-endian (e.g. mips and sh).
> Therefore, there is case supporting big endian and little endian
> with one toolchain.
> For example, when user builds target of big endian in host of little endian,
> they need set endian.
>
> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu at nigauri.org>
> ---
>  config.mk |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/config.mk b/config.mk
> index c6d6f7b..bbcefbe 100644
> --- a/config.mk
> +++ b/config.mk
> @@ -262,7 +262,7 @@ $(obj)%.s:  %.c
>
>  # If the list of objects to link is empty, just create an empty built-in.o
>  cmd_link_o_target = $(if $(strip $1),\
> -                     $(LD) -r -o $@ $1 ,\
> +                     $(LD) $(ENDIANNESS) -r -o $@ $1 ,\
>                      rm -f $@; $(AR) rcs $@ )
>
>  #########################################################################
> --
> 1.7.2.3
>
>



-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6


More information about the U-Boot mailing list