Crosstool toolchains for Scratchbox
Notice: These instructions are for Scratchbox Apophis or newer. For instructions on how to build crosstool toolchains for older versions of Scratchbox, see CrossToolToolchainPreApophis.
For systems with glibc version 2.4 or newer
If you have glibc version 2.4 or above, you have to compile the toolchain in e.g. Scratchbox itself. Create a target with a compiler such as i686-linux-gcc3.3-glibc2.3 which is included in Scratchbox, then follow the crosstool instructions.
For other systems
Build the toolchain outside scratchbox following the crosstool instructions.
Finishing up
Copy toolchain to /scratchbox/compilers, create /scratchbox/compilers/my-toolchain/my-arch/include/asm-generic directory if not present and follow instructions in ForeignToolchains.