diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-06-09 06:56:14 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-06-09 06:56:14 +0000 |
commit | 63bba5352046beadd8e8fdc607d7dadb60f77138 (patch) | |
tree | 1d8abf280cbe54c9fe2dd0746323d4cb8fc25bb3 /eclass/toolchain-funcs.eclass | |
parent | marked x86 per bug 418637 (diff) | |
download | historical-63bba5352046beadd8e8fdc607d7dadb60f77138.tar.gz historical-63bba5352046beadd8e8fdc607d7dadb60f77138.tar.bz2 historical-63bba5352046beadd8e8fdc607d7dadb60f77138.zip |
add *-softfp-* support to the vendor field for people who want this for binary compat with closed sourced drivers #416727 by Raúl Porcel; merge the tc-is-hardfloat helper into the one place where it is called in the whole tree to avoid further confusion between when the return values of tc-is-softfloat and tc-is-hardfloat
Diffstat (limited to 'eclass/toolchain-funcs.eclass')
-rw-r--r-- | eclass/toolchain-funcs.eclass | 32 |
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 |