summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorYuanjie Huang <yuanjie.huang@windriver.com>2015-09-24 14:17:16 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-28 11:58:30 +0100
commit02eddf9a0b89b0cbe0c83d95cedb3431899197d0 (patch)
treeb20d347254c8064cbbafcc73630164ad49281edc /meta/recipes-devtools
parent472d94a2441e8ba51e52dd03212e2d6754ac5c7c (diff)
downloadopenembedded-core-02eddf9a0b89b0cbe0c83d95cedb3431899197d0.tar.gz
openembedded-core-02eddf9a0b89b0cbe0c83d95cedb3431899197d0.tar.bz2
openembedded-core-02eddf9a0b89b0cbe0c83d95cedb3431899197d0.zip
gcc-multilib-config: Expand ccargs variable
The ccargs obtained from get_tune_parameters may not be fully expanded, so that the gcc_multilib_setup function can be confused, and generates invalid MULTILIB_OPTIONS in GCC Makefile fragment, which will break the multilib feature of target gcc. To address problems above, this patch modifies gcc_multilib_setup function to expand ccargs before use. Upstream-Status: Inappropriate [configuration] Signed-off-by: Yuanjie Huang <yuanjie.huang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/gcc/gcc-multilib-config.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-multilib-config.inc b/meta/recipes-devtools/gcc/gcc-multilib-config.inc
index f7f9f557db..4a1010ccf9 100644
--- a/meta/recipes-devtools/gcc/gcc-multilib-config.inc
+++ b/meta/recipes-devtools/gcc/gcc-multilib-config.inc
@@ -206,7 +206,7 @@ python gcc_multilib_setup() {
# take out '-' mcpu='s and march='s from parameters
opts = []
whitelist = (d.getVar("MULTILIB_OPTION_WHITELIST", True) or "").split()
- for i in tune_parameters['ccargs'].split():
+ for i in d.expand(tune_parameters['ccargs']).split():
if i in whitelist:
# Need to strip '-' from option
opts.append(i[1:])