1 |
armin76 10/04/22 18:28:11 |
2 |
|
3 |
Modified: toolchain-funcs.eclass |
4 |
Log: |
5 |
Add tc-is-hardfloat function, rename 'no' of tc-is-softfloat to 'target doesn't support softfloat', acked by vapier, bug #315987 |
6 |
|
7 |
Revision Changes Path |
8 |
1.99 eclass/toolchain-funcs.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/toolchain-funcs.eclass?rev=1.99&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/toolchain-funcs.eclass?rev=1.99&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/toolchain-funcs.eclass?r1=1.98&r2=1.99 |
13 |
|
14 |
Index: toolchain-funcs.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v |
17 |
retrieving revision 1.98 |
18 |
retrieving revision 1.99 |
19 |
diff -u -r1.98 -r1.99 |
20 |
--- toolchain-funcs.eclass 15 Mar 2010 23:51:14 -0000 1.98 |
21 |
+++ toolchain-funcs.eclass 22 Apr 2010 18:28:11 -0000 1.99 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2007 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.98 2010/03/15 23:51:14 vapier Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.99 2010/04/22 18:28:11 armin76 Exp $ |
27 |
|
28 |
# @ECLASS: toolchain-funcs.eclass |
29 |
# @MAINTAINER: |
30 |
@@ -150,7 +150,7 @@ |
31 |
# The possible return values: |
32 |
# - only: the target is always softfloat (never had fpu) |
33 |
# - yes: the target should support softfloat |
34 |
-# - no: the target should support hardfloat |
35 |
+# - no: the target doesn't support softfloat |
36 |
# @CODE |
37 |
# This allows us to react differently where packages accept |
38 |
# softfloat flags in the case where support is optional, but |
39 |
@@ -167,6 +167,19 @@ |
40 |
esac |
41 |
} |
42 |
|
43 |
+# @FUNCTION: tc-is-hardfloat |
44 |
+# @DESCRIPTION: |
45 |
+# See if this toolchain is a hardfloat based one. |
46 |
+# @CODE |
47 |
+# The possible return values: |
48 |
+# - yes: the target should support hardfloat |
49 |
+# - no: the target doesn't support hardfloat |
50 |
+tc-is-hardfloat() { |
51 |
+ [[ ${CTARGET//_/-} == *-hardfloat-* ]] \ |
52 |
+ && echo "yes" \ |
53 |
+ || echo "no" |
54 |
+} |
55 |
+ |
56 |
# @FUNCTION: tc-is-static-only |
57 |
# @DESCRIPTION: |
58 |
# Return shell true if the target does not support shared libs, shell false |