summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorRamax Lo <ramaxlo@gmail.com>2015-06-24 00:22:52 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-27 22:42:52 +0100
commit545ff77df6fba7d6391033c6eed3cb99680cb522 (patch)
treee57150ae4e59a018a2670ed79a73aaab638245e2 /meta/recipes-core
parent8b4f659ec910e2fc8b8ef96484292e458b3f8bac (diff)
downloadpoky-545ff77df6fba7d6391033c6eed3cb99680cb522.tar.gz
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>
Diffstat (limited to 'meta/recipes-core')
-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 () {
94 # with conflicting march options to gcc. Here we 94 # with conflicting march options to gcc. Here we
95 # ask for MIPS32 ISA to match the chosen arch 95 # ask for MIPS32 ISA to match the chosen arch
96 tune = d.getVar("DEFAULTTUNE", True) 96 tune = d.getVar("DEFAULTTUNE", True)
97 if tune in ['mips32', 'mips32r2']: 97 if tune.startswith('mips32'):
98 import re
99 tune = re.sub('(el)*(-nf)*', '', tune)
98 d.setVar('configmangle_append', 100 d.setVar('configmangle_append',
99 "/^### MIPS32_CHECK$/a\\\nCONFIG_MIPS_ISA_%s=y\n\n" % (tune.upper())) 101 "/^### MIPS32_CHECK$/a\\\nCONFIG_MIPS_ISA_%s=y\n\n" % (tune.upper()))
100 if "${OE_FEATURES}": 102 if "${OE_FEATURES}":