diff options
author | Paul Sherwood <paul.sherwood@codethink.co.uk> | 2014-11-19 16:09:07 +0000 |
---|---|---|
committer | Paul Sherwood <paul.sherwood@codethink.co.uk> | 2014-11-19 16:09:07 +0000 |
commit | 53c7140bfe3317abeeaa85fc2f72cc8d9b052355 (patch) | |
tree | 7f02dd4c306b5619988b87b9a2a5cf28a5fcd02b /strata/armv7lhf-cross-toolchain/armv7lhf-cross-binutils.def | |
parent | e3e0baf91a5f0e1bcd1fad06345bbe4ec88fad1d (diff) | |
download | definitions-53c7140bfe3317abeeaa85fc2f72cc8d9b052355.tar.gz |
After morph-converter.shbaserock/ps/simple-defs
Diffstat (limited to 'strata/armv7lhf-cross-toolchain/armv7lhf-cross-binutils.def')
-rw-r--r-- | strata/armv7lhf-cross-toolchain/armv7lhf-cross-binutils.def | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/strata/armv7lhf-cross-toolchain/armv7lhf-cross-binutils.def b/strata/armv7lhf-cross-toolchain/armv7lhf-cross-binutils.def new file mode 100644 index 00000000..07c75279 --- /dev/null +++ b/strata/armv7lhf-cross-toolchain/armv7lhf-cross-binutils.def @@ -0,0 +1,23 @@ +name: armv7lhf-cross-binutils +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" |