diff options
author | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2015-02-25 17:27:27 +0000 |
---|---|---|
committer | Morph (on behalf of Adam Coldrick) <adam.coldrick@codethink.co.uk> | 2015-02-25 17:27:27 +0000 |
commit | a03288578c2b9dd0711c2d759e3ab3628e08c1a1 (patch) | |
tree | 694a3d87dab5d174daea7a10d8e727bf768b8eac /strata/armv7lhf-cross-toolchain/armv7lhf-cross-eglibc.morph | |
parent | a53f12c1c97658f4765da8eb034ab8abcbd95e4c (diff) | |
download | definitions-a03288578c2b9dd0711c2d759e3ab3628e08c1a1.tar.gz |
Morph build da949bf8201c4ad3a43a3e4fbf4ca2a2
System branch: master
Diffstat (limited to 'strata/armv7lhf-cross-toolchain/armv7lhf-cross-eglibc.morph')
-rw-r--r-- | strata/armv7lhf-cross-toolchain/armv7lhf-cross-eglibc.morph | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/strata/armv7lhf-cross-toolchain/armv7lhf-cross-eglibc.morph b/strata/armv7lhf-cross-toolchain/armv7lhf-cross-eglibc.morph new file mode 100644 index 00000000..afbfa939 --- /dev/null +++ b/strata/armv7lhf-cross-toolchain/armv7lhf-cross-eglibc.morph @@ -0,0 +1,33 @@ +name: armv7lhf-cross-eglibc +kind: chunk +configure-commands: +- mkdir o +- cd libc && ln -s ../ports ports +- | + export MORPH_ARCH=armv7lhf + export TARGET=armv7lhf-baserock-linux-gnueabi + export TARGET_STAGE1=armv7lhf-none-linux-gnueabi + export CFLAGS="-O2 $CFLAGS" + # eglibc looks for $TARGET-gcc, but not $TARGET_STAGE1-gcc even + # though --build is specified, so we have to override what gcc to + # use here. + export CC="$TARGET_STAGE1-gcc" + cd o && ../libc/configure \ + $(../morph-arch-config) \ + --build=$TARGET_STAGE1 --host=$TARGET \ + --prefix="$PREFIX" \ + `# [1]` --with-headers="$PREFIX/$TARGET/sys-root/$PREFIX/include" \ + `# [2]` --with-binutils="$PREFIX/$TARGET/bin" \ + `# [3]` --disable-profile --enable-kernel=2.6.25 \ + --enable-add-ons=nptl,ports --without-cvs --without-selinux \ + `# [4]` libc_cv_c_cleanup=yes libc_cv_ctors_header=yes \ + libc_cv_forced_unwind=yes libc_cv_ssp=no +build-commands: +- cd o && make localtime=UTC +install-commands: +- | + # eglibc doesn't help with sysroots, so we need to spell out the + # full path ourselves. + export TARGET=armv7lhf-baserock-linux-gnueabi + cd o && make install_root="$DESTDIR/$PREFIX/$TARGET/sys-root/" \ + localtime=UTC install |