[U-Boot] Building U-Boot under Ubuntu 8.10

Wolfgang Denk wd at denx.de
Thu Jun 11 17:59:16 CEST 2009


Dear Kenneth Johansson,

In message <1244733541.4182.81.camel at localhost.localdomain> you wrote:
>
> > > ARCH and CROSS_COMPILE are set and exported
> > > (ARCH=ppc, CROSS_COMPILE=powerpc-linux-)
> > 
> > ...which is plain wrong. "powerpc-linux-" is NOIT a legal setting for
> > CROSS_COMPILE.
> 
> why is that ? 

Because that's the way how the ELDK is designed.

> it's just a prefix to whatever you compiled the toolkit to use no? 

At least with ELDK, which supports a wide range  pf  processor  fami-
lies,  it  also has to carry information about which CPU architecture
you are targeting for.

ELDK uses two methonds to find out what you  might  want  to  do:  it
checks  the  content of CROSS_COMPILE, and it checks the name you use
to run the tools.

If you set CROSS_COMPILE=powerpc-linux- and run  "ppc_8xx-gcc"  there
is still some indication that, for example, you are on a system which
has  no FPU and only short cache lines. But with above usage, no such
information is available.

All this (including the legal values to be used for CROSS_COMPILE) is
described in the manual; please RTFM for details.

Ignoring the documentation and doing non-standard things is asking for
trouble.

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
Vor allem kein Gedanke! Nichts ist kompromittierender als ein  Gedan-
ke!            - Friedrich Wilhelm Nietzsche _Der Fall Wagner_ (1888)


More information about the U-Boot mailing list