summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-09-06 08:13:42 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-02-28 12:00:19 +0000
commit1fe51b76aa47b58dd39b5b3197dbe5caf0106cf9 (patch)
tree04ed49605416d5063357e852c2faa02ac9088c25
parent2af04820da82b9202af9834e4a64eeb66e8ea6a2 (diff)
downloaddefinitions-1fe51b76aa47b58dd39b5b3197dbe5caf0106cf9.tar.gz
armv6lhf: add suport in gcc
-rw-r--r--strata/build-essential/gcc.morph7
-rw-r--r--strata/build-essential/stage1-gcc.morph8
-rw-r--r--strata/build-essential/stage2-gcc.morph7
3 files changed, 22 insertions, 0 deletions
diff --git a/strata/build-essential/gcc.morph b/strata/build-essential/gcc.morph
index 02be4dda..135baa23 100644
--- a/strata/build-essential/gcc.morph
+++ b/strata/build-essential/gcc.morph
@@ -17,7 +17,13 @@ configure-commands:
--with-tune=cortex-a9 \
--with-fpu=vfpv3-d16 \
--with-float=hard" ;;
+
armv7*) ARCH_FLAGS="--with-arch=armv7-a" ;;
+
+ armv6lhf) ARCH_FLAGS="--with-arch=armv6zk \
+ --with-cpu=arm1176jzf-s \
+ --with-float=hard \
+ --with-fpu=vfp" ;;
esac
cd o && ../configure \
@@ -34,6 +40,7 @@ build-commands:
case "$MORPH_ARCH" in
armv7*) sed -i "s/--host=none/--host=armv7a/" o/Makefile
sed -i "s/--target=none/--target=armv7a/" o/Makefile ;;
+ armv6*) sed -i "s/none-/armv6a-/" o/Makefile ;;
esac
cd o && make
diff --git a/strata/build-essential/stage1-gcc.morph b/strata/build-essential/stage1-gcc.morph
index ed85b684..8472d86d 100644
--- a/strata/build-essential/stage1-gcc.morph
+++ b/strata/build-essential/stage1-gcc.morph
@@ -29,7 +29,13 @@ configure-commands:
--with-tune=cortex-a9 \
--with-fpu=vfpv3-d16 \
--with-float=hard" ;;
+
armv7*) ARCH_FLAGS="--with-arch=armv7-a" ;;
+
+ armv6lhf) ARCH_FLAGS="--with-arch=armv6zk \
+ --with-cpu=arm1176jzf-s \
+ --with-float=hard \
+ --with-fpu=vfp" ;;
esac
cd o && ../configure \
@@ -68,9 +74,11 @@ build-commands:
# code results on an undefined reference to `__gmpn_invert_limb' in
# ARMv7. Fix the invocation of GMP's configure script so that GMP can
# use the machine-dependent code.
+ cpu=$(uname -m)
case "$MORPH_ARCH" in
armv7*) sed -i "s/--host=none/--host=armv7a/" o/Makefile
sed -i "s/--target=none/--target=armv7a/" o/Makefile ;;
+ armv6lhf) sed -i "s/none-/$cpu-/" o/Makefile ;;
esac
cd o && make
diff --git a/strata/build-essential/stage2-gcc.morph b/strata/build-essential/stage2-gcc.morph
index 98f9cfe7..93d4085e 100644
--- a/strata/build-essential/stage2-gcc.morph
+++ b/strata/build-essential/stage2-gcc.morph
@@ -26,7 +26,13 @@ configure-commands:
--with-tune=cortex-a9 \
--with-fpu=vfpv3-d16 \
--with-float=hard" ;;
+
armv7*) ARCH_FLAGS="--with-arch=armv7-a" ;;
+
+ armv6lhf) ARCH_FLAGS="--with-arch=armv6zk \
+ --with-cpu=arm1176jzf-s \
+ --with-float=hard \
+ --with-fpu=vfp" ;;
esac
export STAGE2_SYSROOT="$(dirname $(pwd))"
export CC="$TARGET_STAGE1-gcc --sysroot=$STAGE2_SYSROOT"
@@ -54,6 +60,7 @@ build-commands:
case "$MORPH_ARCH" in
armv7*) sed -i "s/--host=none/--host=armv7a/" o/Makefile
sed -i "s/--target=none/--target=armv7a/" o/Makefile ;;
+ armv6*) sed -i "s/none-/armv6a-/" o/Makefile ;;
esac
export STAGE2_SYSROOT="$(dirname $(pwd))"
cd o && make