-
Notifications
You must be signed in to change notification settings - Fork 140
Building toolchain
weex edited this page Sep 14, 2010
·
7 revisions
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:
- following the Android provided instructions at http://source.android.com/download
- git clone git://android.git.kernel.org/platform/prebuilt.git (Linux and Mac OS X),
- downloading http://test.saurik.com/xpwn/arm-eabi-4.2.1.tgz (Linux only)
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-).