Skip to contentSkip to conversation

uclibc: Cope with other mips32 variants

PATCH New Ramax Lo 1 participant 1 message Jun 23, 2015

lore
Share & tools
lore

Ramax Lo

author
#0 lore raw

PATCH 1/1 uclibc: Cope with other mips32 variants

Update uclibc.inc to handle different tunes of mips32 like mips32el, mips32-nf, mips32el-nf, etc.

---
 meta/recipes-core/uclibc/uclibc.inc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-core/uclibc/uclibc.inc +3 -1
index 18587ca..08465c4 100644
@@ -94,7 +94,9 @@ python () {
     # with conflicting march options to gcc. Here we
     # ask for MIPS32 ISA to match the chosen arch
     tune = d.getVar("DEFAULTTUNE", True)
-    if tune in ['mips32', 'mips32r2']:
+    if tune.startswith('mips32'):
+        import re
+        tune = re.sub('(el)*(-nf)*', '', tune)
         d.setVar('configmangle_append',
                  "/^### MIPS32_CHECK$/a\\\nCONFIG_MIPS_ISA_%s=y\n\n" % (tune.upper()))
     if "${OE_FEATURES}":
Signature · 1 line
2.1.4