From 0ce6de7adbd5fe6b268e1b8a1422cdfeb7cdebf5 Mon Sep 17 00:00:00 2001 From: Adam Coldrick Date: Mon, 14 Apr 2014 12:22:53 +0000 Subject: Add chunk morphologies to definitions repository --- chunks/armv7lhf-cross-eglibc.morph | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 chunks/armv7lhf-cross-eglibc.morph (limited to 'chunks/armv7lhf-cross-eglibc.morph') diff --git a/chunks/armv7lhf-cross-eglibc.morph b/chunks/armv7lhf-cross-eglibc.morph new file mode 100644 index 00000000..47816d99 --- /dev/null +++ b/chunks/armv7lhf-cross-eglibc.morph @@ -0,0 +1,35 @@ +name: armv7lhf-cross-eglibc +kind: chunk +repo: upstream:eglibc2 +ref: 43ee5d250ad47d2bee8ec17954efb7f22d2b804c +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 -- cgit v1.2.1