[U-Boot-Users] PPC as host

Richard Klingler
2004-10-25T15:02:29Z

Evening (o;

Apparently no one uses Linux PPC as host?
So no one ever had problems cross-compiling u-boot
for another target then (o;

In the top Makefile we have:

ifndef CROSS_COMPILE
ifeq ($(HOSTARCH),ppc)
CROSS_COMPILE =
else
....

which always picks up the host ppc compiler regardless
what ARCH you have defined for your board...

Since I don't use PPC as target someone might come up
with a better idea then:

ifeq ($(HOSTARCH,$(ARCH))
CROSS_COMPILE =
else
...

In my case it is YDL-3.0.1 PPC Linux running on G4.
This doesn't happen on OSX since it is solved in the
top config.mk file.

best regards
rick