uclibc: Cope with other mips32 variants
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.
Signed-off-by Ramax Lo <[email protected]>
--- meta/recipes-core/uclibc/uclibc.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-core/uclibc/uclibc.inc +3 -1
@@ -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