]> code.ossystems Code Review - openembedded-core.git/commitdiff
uclibc: Cope with other mips32 variants
authorRamax Lo <ramaxlo@gmail.com>
Tue, 23 Jun 2015 16:22:52 +0000 (00:22 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 26 Jun 2015 13:08:03 +0000 (14:08 +0100)
Update uclibc.inc to handle different tunes of mips32 like mips32el,
mips32-nf, mips32el-nf, etc.

Signed-off-by: Ramax Lo <ramaxlo@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/uclibc/uclibc.inc

index 18587ca2730b9a3c3338c7e60c88a42494a1a508..08465c4f416ced3be1b92a6119d3292774aaf5bc 100644 (file)
@@ -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}":