llvm.org GIT mirror llvm / 38bc2d0
Added step-by-step directions on how to use the script to build and install an x86_64/Linux -> ARM/Linux crosstool. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74603 91177308-0d34-0410-b5e6-96231b3b80d8 Misha Brukman 11 years ago
1 changed file(s) with 37 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 HOWTO create an LLVM crosstool from x86_64/Linux to ARM/Linux
1 =============================================================
2
3 1. % llvm/utils/crosstool/create-snapshots.sh
4
5 This will create llvm-[REV_L].tar.bz2 and llvm-gcc-4.2-[REV_G].tar.bz2,
6 where:
7 REV_L is the revision at which "llvm" was checked out, and
8 REV_G is the revision at which "llvm-gcc-4.2" was checked out
9
10 Note that REV_L might REV_G might not be the same revision.
11
12 2. Download CodeSourcery toolchain. The exact location depends on your
13 $CROSS_TARGET but the script will tell you what the location of the file is
14 if you run it without having the file available.
15
16 For example, if you're using $CROSS_TARGET == "arm-none-linux-gnueabi" then
17 you need to download:
18
19 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
20
21 NOTE: simply changing $CROSS_TARGET and modifying the URL accordingly will
22 not work -- you'll need to go to http://www.codesourcery.com and find the
23 correct file, as the release number in the file will also be different (e.g.,
24 in the file above, the release number is "51").
25
26 3. You can override most values in the script without modifying it, e.g.
27 $INSTALL_ROOT (if you want to install in directory other than /usr/local).
28
29 Run the script as:
30
31 % env INSTALL_ROOT=[dir to install in] \
32 CODE_SOURCERY_PKG_PATH=[dir where you downloaded CodeSourcery tarball] \
33 LLVM_PKG_PATH=[dir where you stored your LLVM and LLVM-GCC snapshots] \
34 LLVM_SVN_REV=${REV_L} \
35 LLVMGCC_SVN_REV=${REV_G} \
36 build-install-linux.sh