Skip to contentSkip to conversation

tune-ppc440: Indicate no floating point support.

PATCH New Elvis Dowson 1 participant 2 messages May 31, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 tune-ppc440: Indicate no floating point support.

* PACKAGE_EXTRA_ARCHS_tune-ppc440: Indicate no floating point support by adding -nf suffix.

---
 conf/machine/include/tune-ppc440.inc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
conf/machine/include/tune-ppc440.inc +1 -1
index 33d6cac..371fdf9 100644
@@ -8,6 +8,6 @@ TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppc440", "-mcpu=440", "",
 AVAILTUNES += "ppc440"
 TUNE_FEATURES_tune-ppc440 = "m32 fpu-soft ppc440"
 TUNE_PKGARCH_tune-ppc440 = "ppc440"
-PACKAGE_EXTRA_ARCHS_tune-ppc440 = "${PACKAGE_EXTRA_ARCHS_tune-powerpc} ppc440"
+PACKAGE_EXTRA_ARCHS_tune-ppc440 = "${PACKAGE_EXTRA_ARCHS_tune-powerpc-nf} ppc440"
 
 #MACHINEOVERRIDES .= "ppc440"
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 2/2 tune-ppc440: Add glibc configure options.

* Add glibc configure options to get ppc440 specific library.

---
 conf/machine/include/tune-ppc440.inc |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
conf/machine/include/tune-ppc440.inc +2 -1
index 371fdf9..35e93e9 100644
@@ -10,4 +10,5 @@ TUNE_FEATURES_tune-ppc440 = "m32 fpu-soft ppc440"
 TUNE_PKGARCH_tune-ppc440 = "ppc440"
 PACKAGE_EXTRA_ARCHS_tune-ppc440 = "${PACKAGE_EXTRA_ARCHS_tune-powerpc-nf} ppc440"
 
-#MACHINEOVERRIDES .= "ppc440"
+# glibc configure options to get ppc440 specific library (for sqrt)
+GLIBC_EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "ppc440", "-with-cpu=440", "", d)}"
Signature · 1 line
1.7.9.5