diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-07-07 10:01:07 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-07-07 10:01:07 +0000 |
commit | f6046f9b54c1f14d12a67fa66ca0c881b49e8ceb (patch) | |
tree | 7c4d5b1aa87b991fecb0b2c585514069947c3f0a /old/strata/armv7lhf-cross-toolchain/armv7lhf-cross-binutils.morph | |
parent | deba555368fd21316025c5ee0eaaf517b938775e (diff) | |
download | definitions-f6046f9b54c1f14d12a67fa66ca0c881b49e8ceb.tar.gz |
Move old Baserock format definitions into old/ directory
Diffstat (limited to 'old/strata/armv7lhf-cross-toolchain/armv7lhf-cross-binutils.morph')
-rw-r--r-- | old/strata/armv7lhf-cross-toolchain/armv7lhf-cross-binutils.morph | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/old/strata/armv7lhf-cross-toolchain/armv7lhf-cross-binutils.morph b/old/strata/armv7lhf-cross-toolchain/armv7lhf-cross-binutils.morph new file mode 100644 index 00000000..8e842e41 --- /dev/null +++ b/old/strata/armv7lhf-cross-toolchain/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" |