Install instructions
-
Check out your ICS tree as you usually would - if you don't have your own, use ours:
$ repo init -u git://android.git.linaro.org/platform/manifest.git -b linaro_android_4.0.1 รข€“repo-url=git://android.git.linaro.org/tools/repo.git -m staging-panda.xml
Note: Replace staging-panda with the board you're trying to build for.
-
If you're trying to build something not based on the `linaro_android_*` repositories, apply the patches by unpacking the
ics-gcc-4.6 tarball
, going to the directory it has been unpacked to, and running `./apply-patches.sh /path/to/your/ICS/source`.
If you're building from the `linaro_android_4.0.*` branches, this is not necessary and will not work because the patches have already been applied.
-
Download the
Linaro Android toolchain
and unpack it somewhere, e.g. in `/opt` or `/usr/local`
-
Go to the directory containing your ICS sources, and run
$ make TARGET_PRODUCT=pandaboard TARGET_TOOLS_PREFIX=/opt/android-toolchain-eabi/bin/arm-linux-androideabi- systemtarball userdatatarball boottarball
Note: If you're building for a board other than panda, replace `TARGET_PRODUCT` accordingly - if you've unpacked the toolchain to a directory other than `/opt` in step 3, change `TARGET_TOOLS_PREFIX` accordingly.
-
Wait until the build has finished. This will take a long time.
-
Write the resulting builds to an SD card using linaro-image-tools:
$ bzr branch lp:linaro-image-tools
$ cd linaro-image-tools
$ ./linaro-android-media-create --mmc /dev/sdb --dev panda --system /path/to/your/ICS/source/out/target/product/*/system.tar.bz2 --userdata /path/to/your/ICS/source/out/target/product/*/userdata.tar.bz2 --boot /path/to/your/ICS/source/out/target/product/*/boot.tar.bz2
Note: If you're building for a board other than panda, replace the parameter to "`--dev`", and if your SD card writer is a device other than `/dev/sdb`, replace the parameter to "`--mmc`".
-
Insert the SD card and start up the device.
-
You should have a working ICS built with gcc-linaro 4.6 now -- if it doesn't work,
report a bug