Cross Compiler

Hello all,

So I'm looking to start development on some BeagleBoard-xM stuff. So I've been looking into some cross-compiler's. So far I've found at least 3 possibilities:

1- crosstool-ng
2- Angstrom - use the online builder tool and have it produce the cross compiler
3- Scratchbox

It seems to me that Angstrom is probably the easiest to use since it appears to create a tarball that just needs to be extracted and then some env variables set before compiling.

Who here has experience cross compiling with the Angstrom tool and would like to share how you got your environment set up and what steps are needed before beginning to cross compile? Is it as simple as untarring the tarball, adding the bin directory of the cross compiler to the PATH and then setting the CROSS_COMPILE environment variable? Or are other steps required?

What are the pros/cons of the three mentioned tools above? Should I look into another tool not listed?

Thanks again.
Jim

Hello all,

So I'm looking to start development on some BeagleBoard-xM stuff. So I've
been looking into some cross-compiler's. So far I've found at least 3
possibilities:

1- crosstool-ng

This seems like a pretty good choice, depending on your goals. Do you
care about aligning your cross-toolchain build mechanism with your
target build mechanism?

2- Angstrom - use the online builder tool and have it produce the cross
compiler

You can also download pre-built tool chains from the Angstrom site.

3- Scratchbox

The write-ups on ALIP probably make this fairly easy to follow. A lot
has been done with this by Maemo developers as well.

Have you considered Gentoo? I rather like the cross-compilation
support that it provides.

Code Sourcery compilers come with some build scripts. You could
consider using those.

It seems to me that Angstrom is probably the easiest to use since it appears
to create a tarball that just needs to be extracted and then some env
variables set before compiling.

Who here has experience cross compiling with the Angstrom tool and would
like to share how you got your environment set up and what steps are needed
before beginning to cross compile? Is it as simple as untarring the tarball,
adding the bin directory of the cross compiler to the PATH and then setting
the CROSS_COMPILE environment variable? Or are other steps required?

You need to source the environment script, not just set CROSS_COMPILE.
It is really easy to use and the instructions are on the Angstrom
Distribution site's toolchain page.

What are the pros/cons of the three mentioned tools above? Should I look
into another tool not listed?

I certainly don't know the pros/cons of each, but as I mentioned, I'd
certainly include Gentoo as an option if I was simply looking for the
easiest way to build a cross toolchain, primarily because I already
use it on my systems. I more typically use Angstrom these days due to
the community building applications with it and what they've produced
on the BeagleBoard.