summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-05-18 04:59:55 +0000
committerMike Frysinger <vapier@gentoo.org>2012-05-18 04:59:55 +0000
commite675ed8a55564b4a947b391155c8bd15caed4f7f (patch)
tree4904f1936df832af53f21ed90b4d16e83b5a3994 /eclass
parentversion bump (bug #306617) with patches from hasufell (diff)
downloadgentoo-2-e675ed8a55564b4a947b391155c8bd15caed4f7f.tar.gz
gentoo-2-e675ed8a55564b4a947b391155c8bd15caed4f7f.tar.bz2
gentoo-2-e675ed8a55564b4a947b391155c8bd15caed4f7f.zip
only default armv7 to vfpv3-d16. default armv6 to vfp, but otherwise, keep the rest defaulting to softfloat. #415937 by jannis
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass13
1 files changed, 8 insertions, 5 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 03c6a9168685..8127779bba6e 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.537 2012/05/15 18:51:21 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.538 2012/05/18 04:59:55 vapier Exp $
#
# Maintainer: Toolchain Ninjas <toolchain@gentoo.org>
@@ -960,13 +960,16 @@ gcc-compiler-configure() {
fi
# Enable hardvfp
- if [[ ${CTARGET##*-} == *eabi* ]] && \
- [[ $(tc-is-hardfloat) == yes ]] && \
+ if [[ $(tc-is-softfloat) == no ]] && \
+ [[ ${CTARGET} == armv[67]* ]] && \
tc_version_is_at_least "4.5"
then
- confgcc+=" --with-float=hard"
# Follow the new arm hardfp distro standard by default
- confgcc+=" --with-fpu=vfpv3-d16"
+ confgcc+=" --with-float=hard"
+ case ${CTARGET} in
+ armv6*) confgcc+=" --with-fpu=vfp" ;;
+ armv7*) confgcc+=" --with-fpu=vfpv3-d16" ;;
+ esac
fi
;;
# Add --with-abi flags to set default ABI