diff options
author | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-04-14 16:02:36 +0000 |
---|---|---|
committer | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-04-14 16:13:23 +0000 |
commit | aa85df216ef454a47f2d6d027fcec2400d1083e3 (patch) | |
tree | eb238277d6e9f1c7be5d99043d507d9c0e5961ff /chunks/armv7lhf-cross-binutils.morph | |
parent | 519294adf840fd3981a9aafc7744d3fe66301c68 (diff) | |
download | definitions-aa85df216ef454a47f2d6d027fcec2400d1083e3.tar.gz |
Add chunk morphologies to the definitions repository
Diffstat (limited to 'chunks/armv7lhf-cross-binutils.morph')
-rw-r--r-- | chunks/armv7lhf-cross-binutils.morph | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/chunks/armv7lhf-cross-binutils.morph b/chunks/armv7lhf-cross-binutils.morph new file mode 100644 index 00000000..6ccbcbf8 --- /dev/null +++ b/chunks/armv7lhf-cross-binutils.morph @@ -0,0 +1,26 @@ +name: armv7lhf-cross-binutils +kind: chunk +repo: upstream:binutils-redhat +ref: 987eb543a034cddc4eeb103f08f566f24a5f964a +unpetrify-ref: baserock/build-essential +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" |