summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <javier.jardon@codethink.co.uk>2015-05-28 13:24:10 +0100
committerBaserock Gerrit <gerrit@baserock.org>2015-05-28 14:05:09 +0000
commit6b14ff59f2acf6d6403f014f50e4ad475a36b381 (patch)
tree73caf5ce78c5994d3c4156fc5f14b5469bf4bc8d
parentc8852d7530c0b815fa49ca6d0dbe17b28a88fecc (diff)
downloaddefinitions-6b14ff59f2acf6d6403f014f50e4ad475a36b381.tar.gz
stage1-gcc.morph: Fix compilation support when natively compile for armv5
Change-Id: Id7b85f0700e2b422a1a610d09d76e038e14db73c
-rw-r--r--strata/build-essential/stage1-gcc.morph2
1 files changed, 2 insertions, 0 deletions
diff --git a/strata/build-essential/stage1-gcc.morph b/strata/build-essential/stage1-gcc.morph
index ed85b684..f76b0cc6 100644
--- a/strata/build-essential/stage1-gcc.morph
+++ b/strata/build-essential/stage1-gcc.morph
@@ -69,6 +69,8 @@ build-commands:
# ARMv7. Fix the invocation of GMP's configure script so that GMP can
# use the machine-dependent code.
case "$MORPH_ARCH" in
+ armv5*) sed -i "s/--host=none/--host=armv5/" o/Makefile
+ sed -i "s/--target=none/--target=armv5/" o/Makefile ;;
armv7*) sed -i "s/--host=none/--host=armv7a/" o/Makefile
sed -i "s/--target=none/--target=armv7a/" o/Makefile ;;
esac