Up to higher level directory | |||
Name | Date | Size | |
---|---|---|---|
build-install-linux.sh | 10-Oct-2012 | 6.2K | |
README | 10-Oct-2012 | 1.7K |
1 HOWTO create an LLVM crosstool from x86_64/Linux to ARM/Linux 2 ============================================================= 3 4 1. % llvm/utils/crosstool/create-snapshots.sh 5 6 This will create llvm-[REV_L].tar.bz2 and llvm-gcc-4.2-[REV_G].tar.bz2, 7 where: 8 REV_L is the revision at which "llvm" was checked out, and 9 REV_G is the revision at which "llvm-gcc-4.2" was checked out 10 11 Note that REV_L might REV_G might not be the same revision. 12 13 2. Download CodeSourcery toolchain. The exact location depends on your 14 $CROSS_TARGET but the script will tell you what the location of the file is 15 if you run it without having the file available. 16 17 For example, if you're using $CROSS_TARGET == "arm-none-linux-gnueabi" then 18 you need to download: 19 20 http://www.codesourcery.com/sgpp/lite/arm/portal/package1787/public/arm-none-linux-gnueabi/arm-2007q3-51-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 21 22 NOTE: simply changing $CROSS_TARGET and modifying the URL accordingly will 23 not work -- you'll need to go to http://www.codesourcery.com and find the 24 correct file, as the release number in the file will also be different (e.g., 25 in the file above, the release number is "51"). 26 27 3. You can override most values in the script without modifying it, e.g. 28 $INSTALL_ROOT (if you want to install in directory other than /usr/local). 29 30 Run the script as: 31 32 % env INSTALL_ROOT=[dir to install in] \ 33 CODE_SOURCERY_PKG_PATH=[dir where you downloaded CodeSourcery tarball] \ 34 LLVM_PKG_PATH=[dir where you stored your LLVM and LLVM-GCC snapshots] \ 35 LLVM_SVN_REV=${REV_L} \ 36 LLVMGCC_SVN_REV=${REV_G} \ 37 build-install-linux.sh 38