diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2014-02-24 14:51:47 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2014-02-27 15:58:36 +0000 |
commit | d0ae7a63224d1d229a9fd2bc3e88a3a556c292ce (patch) | |
tree | 80e191261878a60022a80fd871b6639b341ada9c | |
parent | c95c6c25ca35e70d2c21daf138daff8371a8c8d9 (diff) | |
download | binutils-redhat-baserock/richardmaw/S10442/cross-toolchain.tar.gz |
Add morphology for arm cross binutilsbaserock/richardmaw/S10442/cross-toolchain
-rw-r--r-- | armv7lhf-cross-binutils.morph | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/armv7lhf-cross-binutils.morph b/armv7lhf-cross-binutils.morph new file mode 100644 index 0000000000..4181f324ce --- /dev/null +++ b/armv7lhf-cross-binutils.morph @@ -0,0 +1,24 @@ +name: armv7lhf-cross-binutils +kind: chunk +build-system: autotools + +configure-commands: + - | + # The TARGET used is the final triplet we expect, rather than that + # of the libc-less GCC we build, since the binutils only needs to + # be built once. + # This requires extra effort to get the stage 1 GCC to use these + # tools, but saves having an extra binutils build. + export TARGET=armv7lhf-baserock-linux-gnueabi + + # 1. Binutils gets installed in the default sysroot path of + # $PREFIX/$TARGET/{bin,lib}, with the actual sysroot at + # $PREFIX/$TARGET/sys-root and its tools also available as + # $PREFIX/bin/$TARGET-$tool + # 2. The '=' makes the path we give relative to the sysroot. + ./configure --prefix="$PREFIX" --disable-nls --disable-werror \ + --build=$(sh config.guess) \ + --host=$(sh config.guess) \ + --target="$TARGET" \ + `# [1]` --with-sysroot \ + `# [2]` --with-lib-path="=$PREFIX/lib" |