| Project: | Toolchains |
|---|---|
| Scope: | Provide pre-built toolchains for our demo filesystem images |
| License: | GPL, LGPL |
| Started: | May 2009 |
| Status: | support candidate |
Angstrom based cross toolchain built with OpenEmbedded.
First you need to set the environment so that your crosscompiler is in the executable search path and pkg-config uses the correct configuration files.
export PATH=$PATH:/usr/local/angstrom/arm/bin/ export PKG_CONFIG_PATH=/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/lib/pkgconfig/
If you want to compile an application using autotools (autoconf, automake) you can configure it like this:
./configure --host=arm-angstrom-linux-gnueabi
Autotools should detect the cross compiler in this case. After running configure you can compile the application with the "make" command. The default installation prefix is /usr/local, you can change this to meet the Angstrom default /usr by passing a --prefix=/usr parameter to configure.
A Linux kernel can be compiled passing settings to make directly. To configure the kernel for an ARM based platform use this command:
make ARCH=arm menuconfig
Once you are finished you can build the kernel and its modules passing the CROSS_COMPILE variable to make:
make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- zImage modules
Depending on your bootloader you might want to build a different target such as uImage if you use u-boot.
TBD