[oe-commits] Ramax Lo : uclibc: Cope with other mips32 variants
git at git.openembedded.org
git at git.openembedded.org
Fri Jun 26 13:09:00 UTC 2015
Module: openembedded-core.git
Branch: master-next
Commit: fc517d9bbbcab8e3fe090deac30c4a43de2da01f
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=fc517d9bbbcab8e3fe090deac30c4a43de2da01f
Author: Ramax Lo <ramaxlo at gmail.com>
Date: Wed Jun 24 00:22:52 2015 +0800
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 <ramaxlo at gmail.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
meta/recipes-core/uclibc/uclibc.inc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-core/uclibc/uclibc.inc b/meta/recipes-core/uclibc/uclibc.inc
index 18587ca..08465c4 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}":
More information about the Openembedded-commits
mailing list