summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'eclass/toolchain-funcs.eclass')
-rw-r--r--eclass/toolchain-funcs.eclass32
1 files changed, 12 insertions, 20 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass
index 5731c9239622..951d4aeb7550 100644
--- a/eclass/toolchain-funcs.eclass
+++ b/eclass/toolchain-funcs.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.110 2012/05/10 03:31:22 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.111 2012/06/09 06:56:14 vapier Exp $
# @ECLASS: toolchain-funcs.eclass
# @MAINTAINER:
@@ -179,9 +179,10 @@ tc-is-cross-compiler() {
# See if this toolchain is a softfloat based one.
# @CODE
# The possible return values:
-# - only: the target is always softfloat (never had fpu)
-# - yes: the target should support softfloat
-# - no: the target doesn't support softfloat
+# - only: the target is always softfloat (never had fpu)
+# - yes: the target should support softfloat
+# - softfp: (arm specific) the target should use hardfloat insns, but softfloat calling convention
+# - no: the target doesn't support softfloat
# @CODE
# This allows us to react differently where packages accept
# softfloat flags in the case where support is optional, but
@@ -192,26 +193,17 @@ tc-is-softfloat() {
bfin*|h8300*)
echo "only" ;;
*)
- [[ ${CTARGET//_/-} == *-softfloat-* ]] \
- && echo "yes" \
- || echo "no"
+ if [[ ${CTARGET//_/-} == *-softfloat-* ]] ; then
+ echo "yes"
+ elif [[ ${CTARGET//_/-} == *-softfp-* ]] ; then
+ echo "softfp"
+ else
+ echo "no"
+ fi
;;
esac
}
-# @FUNCTION: tc-is-hardfloat
-# @DESCRIPTION:
-# See if this toolchain is a hardfloat based one.
-# @CODE
-# The possible return values:
-# - yes: the target should support hardfloat
-# - no: the target doesn't support hardfloat
-tc-is-hardfloat() {
- [[ ${CTARGET//_/-} == *-hardfloat-* ]] \
- && echo "yes" \
- || echo "no"
-}
-
# @FUNCTION: tc-is-static-only
# @DESCRIPTION:
# Return shell true if the target does not support shared libs, shell false