aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/uclibc/uclibc.inc
diff options
context:
space:
mode:
authorAristov Maxim <aristovmax@gmail.com>2012-10-20 06:57:07 +0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-23 12:27:15 +0100
commitc096d57d7c55f97897956c192c9ccef2c9cbbe44 (patch)
treed15ce2142ed33147dcebe4c3c1f63fa422ad62f0 /meta/recipes-core/uclibc/uclibc.inc
parentb635e47a2b8b711d5ddae3b3e5a5656402aee845 (diff)
downloadopenembedded-core-contrib-c096d57d7c55f97897956c192c9ccef2c9cbbe44.tar.gz
uClibc: Resolve conflicting options when building for mips32
Signed-off-by: Aristov Maxim <m@ximilian.ru> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/uclibc/uclibc.inc')
-rw-r--r--meta/recipes-core/uclibc/uclibc.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/recipes-core/uclibc/uclibc.inc b/meta/recipes-core/uclibc/uclibc.inc
index 6c980902f7..707b14efdd 100644
--- a/meta/recipes-core/uclibc/uclibc.inc
+++ b/meta/recipes-core/uclibc/uclibc.inc
@@ -85,6 +85,15 @@ OE_DEL := "${@features_to_uclibc_del(d)}"
python () {
if "${OE_DEL}":
d.setVar('configmangle_append', "${OE_DEL}" + "\n")
+
+ # by default uclibc uses mips1 ISA for o32 ABI
+ # if we use TARGET_CC_ARCH="-march=mips32" we end up
+ # with conflicting march options to gcc. Here we
+ # ask for MIPS32 ISA to match the chosen arch
+
+ if "mips32" in d.getVar("TUNE_FEATURES",True):
+ d.setVar('configmangle_append',
+ "/^### MIPS32_CHECK$/a\\\nCONFIG_MIPS_ISA_MIPS32=y\n\n")
if "${OE_FEATURES}":
d.setVar('configmangle_append',
"/^### DISTRO FEATURES$/a\\\n%s\n\n" %
@@ -133,6 +142,7 @@ do_configure() {
echo "### FPU" >>${S}/merged.config
echo "### ABI" >>${S}/merged.config
echo "### DISTRO FEATURES" >>${S}/merged.config
+ echo "### MIPS32_CHECK" >>${S}/merged.config
# Mangle the resulting .config depending on OE variables
sed -i -e '${configmangle}' ${S}/merged.config