From 1fe51b76aa47b58dd39b5b3197dbe5caf0106cf9 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Sat, 6 Sep 2014 08:13:42 +0000 Subject: armv6lhf: add suport in gcc --- strata/build-essential/gcc.morph | 7 +++++++ strata/build-essential/stage1-gcc.morph | 8 ++++++++ strata/build-essential/stage2-gcc.morph | 7 +++++++ 3 files changed, 22 insertions(+) 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 -- cgit v1.2.1