summaryrefslogtreecommitdiff
path: root/chunks/armv7lhf-cross-gcc.morph
diff options
context:
space:
mode:
Diffstat (limited to 'chunks/armv7lhf-cross-gcc.morph')
-rw-r--r--chunks/armv7lhf-cross-gcc.morph37
1 files changed, 37 insertions, 0 deletions
diff --git a/chunks/armv7lhf-cross-gcc.morph b/chunks/armv7lhf-cross-gcc.morph
new file mode 100644
index 00000000..b3227e90
--- /dev/null
+++ b/chunks/armv7lhf-cross-gcc.morph
@@ -0,0 +1,37 @@
+name: armv7lhf-cross-gcc
+kind: chunk
+repo: upstream:gcc-tarball
+ref: dd78b627480ed8d3c135271cd627096ae76fa5fc
+configure-commands:
+- mkdir o
+- |
+ export MORPH_ARCH=armv7lhf
+ export TARGET=armv7lhf-baserock-linux-gnueabi
+ export TARGET_STAGE1=armv7lhf-none-linux-gnueabi
+ cd o && ../configure \
+ $(../morph-arch-config) \
+ --build=$(sh ../config.guess) \
+ --host=$(sh ../config.guess) \
+ --target="$TARGET" \
+ `# [1]` --with-sysroot \
+ --prefix="$PREFIX" \
+ --disable-bootstrap \
+ --enable-shared --enable-threads=posix \
+ `# [2]` --enable-__cxa_atexit \
+ --enable-languages=c,c++,fortran \
+ `# [3]` --libdir="$PREFIX/lib" \
+ --disable-libgomp --disable-multilib \
+ --without-cloog --without-ppl \
+ --with-mpfr-include="$(pwd)/../mpfr/src" \
+ --with-mpfr-lib="$(pwd)/mpfr/src/.libs" \
+ `# [4]` --with-system-zlib
+build-commands:
+- cd o && make
+install-commands:
+- cd o && make DESTDIR="$DESTDIR" install
+- |
+ export TARGET=armv7lhf-baserock-linux-gnueabi
+ for fortran_alias in f77 f90 f95; do
+ ln -s "$TARGET-gfortran" \
+ "$DESTDIR/$PREFIX/bin/$TARGET-$fortran_alias"
+ done