]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc-multilib-config: Expand ccargs variable
authorYuanjie Huang <yuanjie.huang@windriver.com>
Thu, 24 Sep 2015 06:17:16 +0000 (14:17 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 28 Sep 2015 10:58:30 +0000 (11:58 +0100)
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>
meta/recipes-devtools/gcc/gcc-multilib-config.inc

index f7f9f557dbf9091d10238e51a7aa7a9c3c70b068..4a1010ccf9283b9629de10175dd4482cd3d62bff 100644 (file)
@@ -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:])