diff options
author | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-04-09 08:16:20 +0000 |
---|---|---|
committer | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-04-09 08:16:20 +0000 |
commit | 2deabedb6e998d3bd96fd910617461a24a11d73b (patch) | |
tree | c61c71fda6768404ccfde568d9fcb36c2e787f52 /build-essential/stage2-eglibc.morph | |
parent | 895bd79b3fa5178a6e2bf0d190ea7b5e660d8859 (diff) | |
download | definitions-baserock/adamcoldrick/chunks-in-definitions.tar.gz |
Move chunk morphologies into the definitions repositorybaserock/adamcoldrick/chunks-in-definitions
Actually move all the chunk morphologies into the subdirectory for the
stratum containing each chunk. Also add a repo and ref field to the
chunk morphologies.
Any chunks which did not previously have chunk morphologies have now had
a morphology generated.
Diffstat (limited to 'build-essential/stage2-eglibc.morph')
-rw-r--r-- | build-essential/stage2-eglibc.morph | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/build-essential/stage2-eglibc.morph b/build-essential/stage2-eglibc.morph new file mode 100644 index 00000000..7fe3b626 --- /dev/null +++ b/build-essential/stage2-eglibc.morph @@ -0,0 +1,44 @@ +name: build-essential/stage2-eglibc.morph +kind: chunk +repo: upstream:eglibc2 +ref: 43ee5d250ad47d2bee8ec17954efb7f22d2b804c +configure-commands: +- mkdir o +- cd libc && ln -s ../ports ports +- | + export CFLAGS="-O2 $CFLAGS"; export CXX=false; \ + cd o && ../libc/configure \ + $(../morph-arch-config) \ + --build=$(../libc/scripts/config.guess) --host=$TARGET_STAGE1 \ + --prefix="$PREFIX" \ + `# [1]` --libdir="$PREFIX/lib" \ + `# [2]` --with-headers="$(pwd)/../../$PREFIX/include" \ + `# [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: +- cd o && make install_root="$DESTDIR" localtime=UTC install +- sh stage2-eglibc-fix-specs +- install -d $DESTDIR/lib +- | + cpu=$(echo $TARGET | cut -d '-' -f 1) + case "$cpu" in + x86_64) + install -d "$DESTDIR/lib64" + ln -s "$PREFIX/lib/ld-linux-x86-64.so.2" \ + "$DESTDIR/lib64/ld-linux-x86-64.so.2" ;; + ppc64) + install -d "$DESTDIR/lib64" + ln -s "$PREFIX/lib/ld64.so.1" \ + "$DESTDIR/lib64/ld64.so.1" ;; + *) + loader=$(basename $(ls "$DESTDIR$PREFIX"/lib/ld-linux*)) + ln -s "$PREFIX/lib/$loader" "$DESTDIR/lib/$loader" + esac +build_depends: +- build-essential/stage1-binutils.morph +- build-essential/stage1-gcc.morph +- build-essential/stage2-linux-api-headers.morph |