summaryrefslogtreecommitdiff
path: root/meta/recipes-core/uclibc/uclibc.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/uclibc/uclibc.inc')
-rw-r--r--meta/recipes-core/uclibc/uclibc.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-core/uclibc/uclibc.inc b/meta/recipes-core/uclibc/uclibc.inc
index 18587ca273..08465c4f41 100644
--- a/meta/recipes-core/uclibc/uclibc.inc
+++ b/meta/recipes-core/uclibc/uclibc.inc
@@ -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}":