diff options
author | Paul Sherwood <paul.sherwood@codethink.co.uk> | 2015-01-15 20:58:32 +0000 |
---|---|---|
committer | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2015-01-23 15:19:32 +0000 |
commit | 941c6a9653c784962aab1579ff066d7a274e8d84 (patch) | |
tree | d5fa4fb846c4ed6fd8017d4393ffd1f3df26c66d /strata/build-essential/stage2-gcc.morph | |
parent | fe5e9e45bb56bccb6c6ad755b21074ce4df26a02 (diff) | |
download | definitions-941c6a9653c784962aab1579ff066d7a274e8d84.tar.gz |
Embed morph-arch and morph-arch-configbaserock/tiagogomes/update-toolchain-v2
This will make it easier to advance refs later.
Diffstat (limited to 'strata/build-essential/stage2-gcc.morph')
-rw-r--r-- | strata/build-essential/stage2-gcc.morph | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/strata/build-essential/stage2-gcc.morph b/strata/build-essential/stage2-gcc.morph index d48e236f..98f9cfe7 100644 --- a/strata/build-essential/stage2-gcc.morph +++ b/strata/build-essential/stage2-gcc.morph @@ -20,13 +20,21 @@ configure-commands: # 4. This flag causes the correct --sysroot flag to be passed when # calling stage 1 GCC. - | + case "$MORPH_ARCH" in + armv7lhf) ARCH_FLAGS="--with-arch=armv7-a \ + --with-cpu=cortex-a9 \ + --with-tune=cortex-a9 \ + --with-fpu=vfpv3-d16 \ + --with-float=hard" ;; + armv7*) ARCH_FLAGS="--with-arch=armv7-a" ;; + esac export STAGE2_SYSROOT="$(dirname $(pwd))" export CC="$TARGET_STAGE1-gcc --sysroot=$STAGE2_SYSROOT" export CXX="$TARGET_STAGE1-g++ --sysroot=$STAGE2_SYSROOT" export AR="$TARGET_STAGE1-ar" export RANLIB="$TARGET_STAGE1-ranlib" cd o && ../configure \ - $(../morph-arch-config) \ + $ARCH_FLAGS \ --build=$(sh ../config.guess) \ `# [1]` --host=$TARGET_STAGE1 \ `# [1]` --target=$TARGET_STAGE1 \ |