* [U-Boot-Users] ARM Tool chain Recommendation
@ 2004-06-07 16:26 Curt Brune
2004-06-07 17:00 ` Wolfgang Denk
0 siblings, 1 reply; 4+ messages in thread
From: Curt Brune @ 2004-06-07 16:26 UTC (permalink / raw)
To: u-boot
Hello,
What is the recommended ARM tool chain for building the current version
of u-boot? Specifically can someone point me to pre-compiled
binaries?
Related question -- For u-boot does it matter whether to use arm-linux
or arm-elf tool chain?
Cheers,
Curt
--
========================================================================
Curt Brune | Phone 1.650.380.2528 | Managing Principal
curt at cucy.com | WWW www.cucy.com | Cucy Systems
========================================================================
Cucy Systems -- Software. Integration. Training.
========================================================================
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot-Users] ARM Tool chain Recommendation
2004-06-07 16:26 [U-Boot-Users] ARM Tool chain Recommendation Curt Brune
@ 2004-06-07 17:00 ` Wolfgang Denk
2004-06-07 18:00 ` Curt Brune
0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Denk @ 2004-06-07 17:00 UTC (permalink / raw)
To: u-boot
In message <20040607092603.A4471@cucy.com> you wrote:
>
> What is the recommended ARM tool chain for building the current version
> of u-boot? Specifically can someone point me to pre-compiled
> binaries?
We use the ELDK (of course :-)
> Related question -- For u-boot does it matter whether to use arm-linux
> or arm-elf tool chain?
Explain the differerence?
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
I haven't lost my mind -- it's backed up on tape somewhere.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot-Users] ARM Tool chain Recommendation
2004-06-07 17:00 ` Wolfgang Denk
@ 2004-06-07 18:00 ` Curt Brune
0 siblings, 0 replies; 4+ messages in thread
From: Curt Brune @ 2004-06-07 18:00 UTC (permalink / raw)
To: u-boot
> > Related question -- For u-boot does it matter whether to use arm-linux
> > or arm-elf tool chain?
>
> Explain the differerence?
Well I have one tool chain call "arm-linux-" and one called "arm-elf-"
that I installed. I don't remember where I got the arm-linux tools
from, but the arm-elf tools came from
http://www.uclinux.org/pub/uClinux/m68k-elf-tools/
localhost$ arm-linux-gcc -v
Reading specs from /usr/lib/gcc-lib/arm-linux/2.95.4/specs
gcc version 2.95.4 20010319 (prerelease/franzo/20011204)
localhost$ arm-elf-gcc -v
Reading specs from /usr/local/lib/gcc-lib/arm-elf/2.95.3/specs
gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from
http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from
http://www.snapgear.com/)
The strange thing is these compiler define slightly different macros
by default. For instance running "gcc -E -dM tmp.c" on an empty tmp.c
files gives the following in the two cases:
arm-linux-gcc -E -dM tmp.c
#define __linux__ 1
#define __ARM_ARCH_3__ 1
#define __arm__ 1
#define linux 1
#define __GNUC_MINOR__ 95
#define __CHAR_UNSIGNED__ 1
#define __unix 1
#define __unix__ 1
#define __APCS_32__ 1
#define __GNUC__ 2
#define __linux 1
#define __ELF__ 1
#define unix 1
arm-elf-gcc -E -dM tmp.c
#define __arm_elf 1
#define arm_elf 1
#define __arm__ 1
#define __arm 1
#define __arm_elf__ 1
#define __ARM_ARCH_4T__ 1
#define __GNUC_MINOR__ 95
#define arm 1
#define __CHAR_UNSIGNED__ 1
#define __APCS_32__ 1
#define __GNUC__ 2
#define __ELF__ 1
Now the problem I run into with u-boot is that the arm-elf-gcc
compiler defines the symbol "arm", which the arm-linux-gcc does not.
This causes a problem when compiling
u-boot/include/asm-arm/processor.h, which has a structure member named
"arm".
I can #undef arm and things work OK. Or I can use arm-linux-gcc.
For my uclinux work, however, I need to use arm-elf-gcc.
I was just wondering what tool to use for u-boot. I figured the answer
was "ELDK, or course".
--
========================================================================
Curt Brune | Phone 1.650.380.2528 | Managing Principal
curt at cucy.com | WWW www.cucy.com | Cucy Systems
========================================================================
Cucy Systems -- Software. Integration. Training.
========================================================================
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot-Users] ARM Tool chain Recommendation
[not found] <20040607105849.B4471@cucy.com>
@ 2004-06-07 18:04 ` Wolfgang Denk
0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2004-06-07 18:04 UTC (permalink / raw)
To: u-boot
Dear Curt,
in message <20040607105849.B4471@cucy.com> you wrote:
>
> Well I have one tool chain call "arm-linux-" and one called "arm-elf-"
> that I installed. I don't remember where I got the arm-linux tools
> from, but the arm-elf tools came from
Well, if you don't even know the differences in the configurations
yourself, how do you expect us to explain them to you? Without even
knowing where one toolchain might be coming from???
> The strange thing is these compiler define slightly different macros
Obviously they are configured differently.
> Now the problem I run into with u-boot is that the arm-elf-gcc
> compiler defines the symbol "arm", which the arm-linux-gcc does not.
Then it is broken. "arm" is not a reserved symbol by the compiler.
> I was just wondering what tool to use for u-boot. I figured the answer
> was "ELDK, or course".
Personally, I wouldn't trust a tool where I don't know how it was
configured, or what for, or why, or by whom ;-)
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
I realize that command does have its fascination, even under circum-
stances such as these, but I neither enjoy the idea of command nor am
I frightened of it. It simply exists, and I will do whatever logi-
cally needs to be done.
-- Spock, "The Galileo Seven", stardate 2812.7
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-06-07 18:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-07 16:26 [U-Boot-Users] ARM Tool chain Recommendation Curt Brune
2004-06-07 17:00 ` Wolfgang Denk
2004-06-07 18:00 ` Curt Brune
[not found] <20040607105849.B4471@cucy.com>
2004-06-07 18:04 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox