summaryrefslogtreecommitdiff
path: root/strata/build-essential/stage1-gcc.morph
diff options
context:
space:
mode:
authorPaul Sherwood <paul.sherwood@codethink.co.uk>2015-01-15 20:58:32 +0000
committerTiago Gomes <tiago.gomes@codethink.co.uk>2015-01-23 15:19:32 +0000
commit941c6a9653c784962aab1579ff066d7a274e8d84 (patch)
treed5fa4fb846c4ed6fd8017d4393ffd1f3df26c66d /strata/build-essential/stage1-gcc.morph
parentfe5e9e45bb56bccb6c6ad755b21074ce4df26a02 (diff)
downloaddefinitions-baserock/tiagogomes/update-toolchain-v2.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/stage1-gcc.morph')
-rw-r--r--strata/build-essential/stage1-gcc.morph11
1 files changed, 10 insertions, 1 deletions
diff --git a/strata/build-essential/stage1-gcc.morph b/strata/build-essential/stage1-gcc.morph
index 1bf6dfb2..ed85b684 100644
--- a/strata/build-essential/stage1-gcc.morph
+++ b/strata/build-essential/stage1-gcc.morph
@@ -23,8 +23,17 @@ configure-commands:
# without an existing libc, and generally try to keep this build as
# simple as possible.
- |
+ 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
+
cd o && ../configure \
- $(../morph-arch-config) \
+ $ARCH_FLAGS \
--build=$(sh ../config.guess) \
--host=$(sh ../config.guess) \
--target=$TARGET_STAGE1 \