mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
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] (From OE-Core rev: 02eddf9a0b89b0cbe0c83d95cedb3431899197d0) Signed-off-by: Yuanjie Huang <yuanjie.huang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
be13cdb5f6
commit
218d9f480f
@@ -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:])
|
||||
|
||||
Reference in New Issue
Block a user