summaryrefslogtreecommitdiff
path: root/strata/build-essential/stage2-gcc.morph
diff options
context:
space:
mode:
authorPaul Sherwood <paul.sherwood@codethink.co.uk>2015-01-15 20:58:32 +0000
committerPaul Sherwood <paul.sherwood@codethink.co.uk>2015-01-15 21:01:54 +0000
commit1e57dd9ebe5a90bc24830d6b07e10aa61e99ecd5 (patch)
tree420abee7b0749370c67e489e130f5590955f6fd2 /strata/build-essential/stage2-gcc.morph
parentf125f46535729b6d439478d1317b6192d570bc3f (diff)
downloaddefinitions-1e57dd9ebe5a90bc24830d6b07e10aa61e99ecd5.tar.gz
Move morph-arch and morph-arch-config into definitionsbaserock/ps/morph-arch-to-definitions
Now that morph files are in definitions, these two scripts can go into definitions too, so it will be easier advance refs later
Diffstat (limited to 'strata/build-essential/stage2-gcc.morph')
-rw-r--r--strata/build-essential/stage2-gcc.morph10
1 files changed, 9 insertions, 1 deletions
diff --git a/strata/build-essential/stage2-gcc.morph b/strata/build-essential/stage2-gcc.morph
index bf6378c1..4130dc4d 100644
--- a/strata/build-essential/stage2-gcc.morph
+++ b/strata/build-essential/stage2-gcc.morph
@@ -21,11 +21,19 @@ configure-commands:
# 4. C++ is built in stage 3.
# 5. Standard flags. See gcc.morph.
- |
+ 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 LDFLAGS="-Wl,--sysroot=$STAGE2_SYSROOT"
cd o && ../configure \
- $(../morph-arch-config) \
+ $ARCH_FLAGS \
`# [1]` --build=$(sh ../config.guess) \
--host=$TARGET_STAGE1 \
--target=$TARGET_STAGE1 \