uclibc: Cope with other mips32 variants

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

(From OE-Core rev: fc517d9bbbcab8e3fe090deac30c4a43de2da01f)

Signed-off-by: Ramax Lo <ramaxlo@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ramax Lo 2015-06-24 00:22:52 +08:00 committed by Richard Purdie
parent 8b4f659ec9
commit 545ff77df6
1 changed files with 3 additions and 1 deletions

View 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}":