public
Description: Port Linux to the iPhone
Home | Edit | New

Building toolchain

If you are having a particularly difficult time compiling the toolchain (or are getting bad errors while trying to use it), Google’s Android project has a prebuilt toolchain for ARM EABI that can be used to compile openiboot. It is provided for both Linux and Darwin (Mac OS X) on x86. As described by Jay Freeman (saurik), who had success with this:

1. Obtain the Android binary arm-eabi build of gcc 4.2.1. This can be done by doing any of:

2. Add the folder arm-eabi-4.2.1/bin to your path (as in prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin or …/darwin-x86/…).

3. Use CROSS_COMPILE=arm-eabi- with make (example: PLATFORM=3G make CROSS_COMPILE=arm-eabi-).

Last edited by weex, Sat Dec 06 15:22:34 -0800 2008
Home | Edit | New
Versions: