summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/uclibc/uclibc.inc
diff options
context:
space:
mode:
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)}"
85python () { 85python () {
86 if "${OE_DEL}": 86 if "${OE_DEL}":
87 d.setVar('configmangle_append', "${OE_DEL}" + "\n") 87 d.setVar('configmangle_append', "${OE_DEL}" + "\n")
88
89 # by default uclibc uses mips1 ISA for o32 ABI
90 # if we use TARGET_CC_ARCH="-march=mips32" we end up
91 # with conflicting march options to gcc. Here we
92 # ask for MIPS32 ISA to match the chosen arch
93
94 if "mips32" in d.getVar("TUNE_FEATURES",True):
95 d.setVar('configmangle_append',
96 "/^### MIPS32_CHECK$/a\\\nCONFIG_MIPS_ISA_MIPS32=y\n\n")
88 if "${OE_FEATURES}": 97 if "${OE_FEATURES}":
89 d.setVar('configmangle_append', 98 d.setVar('configmangle_append',
90 "/^### DISTRO FEATURES$/a\\\n%s\n\n" % 99 "/^### DISTRO FEATURES$/a\\\n%s\n\n" %
@@ -133,6 +142,7 @@ do_configure() {
133 echo "### FPU" >>${S}/merged.config 142 echo "### FPU" >>${S}/merged.config
134 echo "### ABI" >>${S}/merged.config 143 echo "### ABI" >>${S}/merged.config
135 echo "### DISTRO FEATURES" >>${S}/merged.config 144 echo "### DISTRO FEATURES" >>${S}/merged.config
145 echo "### MIPS32_CHECK" >>${S}/merged.config
136 146
137 # Mangle the resulting .config depending on OE variables 147 # Mangle the resulting .config depending on OE variables
138 sed -i -e '${configmangle}' ${S}/merged.config 148 sed -i -e '${configmangle}' ${S}/merged.config