Skip to contentSkip to conversation

CROSS_COMPILE definition question

U-Boot-Users Stan Kuciej 3 participants 3 messages May 11, 2004

lore
Share & tools
lore
#0 lore raw

Hi All,
I''m new to u-boot and I have a question:
I want to compile u-boot for a MPC8272ADS board on a Sun with the gcc cross-compiler.
In the u-boot README it says that I have to change the CROSS_COMPILE definition.
What do I change it to in this case?
Thanks,
Stan Kuciej

#1 lore raw
Quoted 7 lines · Stan Kuciej

Hi All,
I''m new to u-boot and I have a question:
I want to compile u-boot for a MPC8272ADS board on a Sun with the gcc cross-compiler.
In the u-boot README it says that I have to change the CROSS_COMPILE definition.
What do I change it to in this case?

You set it to be the name of the cross compiling GCC binary prefix. Likely, something like "sparc-unknown-linux-ppc-". For example, I have a meticulously named toolchain environment that supplies a cross compiler like this:

    % make CROSS_COMPILE=/_TOOLS_/dist/gnu-gcc-3.3-e500-branch-20040127-binutils-2.14-powerpc-unknown-linux-gnuspe/i686-pc-linux2.4/bin/powerpc-unknown-linux-gnuspe-

Since I don't know what your toolchain looks like, you are going to have to figure out how that maps to your tools, I'm afraid...

HTH, though,
jdl

#2 lore raw
In reply to Stan Kuciej
Quoted 3 lines · In message <[email protected]> you wrote:

I want to compile u-boot for a MPC8272ADS board on a Sun with the gcc cross-compiler.

Wat exactly is the name of this cross compiler?

Quoted 3 lines

In the u-boot README it says that I have to change the CROSS_COMPILE definition.
What do I change it to in this case?

I don't know the name of your cross compiler, so how can I tell?

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
"A verbal contract isn't worth the paper it's printed on."
- Samuel Goldwyn