[U-Boot-Users] Re: MIPS LE build problems

Wolfgang Denk wd at denx.de
Wed Aug 10 08:52:51 CEST 2005


In message <c166aa9f0508091623642cef58 at mail.gmail.com> you wrote:
>
> I think the board linker scripts also need to be modified to
> work with either big or little endian toolchains like below.  The third
> argument to OUTPUT_FORMAT is only used for explicitly little endian
> compilation.

Thanks for pointing out. I was only able to compile the code, not  to
actually run it.

> The test that decides which endianess to build is not going to work for
> toolchains other than Denx ones, lots of them have prefixes that don't
> include 4KCle (they may not build u-boot very well, but that's another issue)

I am aware of this problem. This is one of the reasons why I  started
this discussion - I need input from users of other tool chains here.

> I would suggest doing it by config name and putting ENDIANNESS in
> config.mk something like so (untested):

I disagree. This is IMHO not a good idea.  I  think  the  tool  chain
should  "know" which endian mode it is. I don;t ike the ide to encode
this in a build target name:

> dbau1550_config \
> dbau1550_el_config	:	unconfig

Why do we need two build targets at all? I think there should be just
one "dbau1550" target, and your setting of  CROSS_COMPILE  determines
if this is a little or a big endian build.

Comments?

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A verbal contract isn't worth the paper it's written on.
                                                    -- Samuel Goldwyn




More information about the U-Boot mailing list