]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toolchain-script: use immediate expansion for TOOLCHAIN_CONFIGSITE_NOCACHE ChenQi/siteconfig
authorChen Qi <Qi.Chen@windriver.com>
Fri, 23 Sep 2016 06:17:57 +0000 (14:17 +0800)
committerChen Qi <Qi.Chen@windriver.com>
Fri, 23 Sep 2016 06:19:21 +0000 (14:19 +0800)
Use immediate expansion for the assignment to avoid other classes modifying
variables like HOST_ARCH which changes the result. This happens in the
meta-environment recipe. It inherits cross-canadian which changes HOST_ARCH
from TARGET_ARCH to SDK_ARCH, resulting in wrong site config files in the
generated SDK.

[YOCTO #10255]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
meta/classes/toolchain-scripts.bbclass

index 997ff8865fecfb4a3c7cb6552510bfc0fb72986a..8df09672b013d81cd5b71893bccdb849b958a95b 100644 (file)
@@ -105,7 +105,7 @@ EOF
 }
 
 #we get the cached site config in the runtime
-TOOLCHAIN_CONFIGSITE_NOCACHE = "${@siteinfo_get_files(d)}"
+TOOLCHAIN_CONFIGSITE_NOCACHE := "${@siteinfo_get_files(d)}"
 TOOLCHAIN_CONFIGSITE_SYSROOTCACHE = "${STAGING_DIR}/${MLPREFIX}${MACHINE}/${target_datadir}/${TARGET_SYS}_config_site.d"
 TOOLCHAIN_NEED_CONFIGSITE_CACHE ??= "virtual/${MLPREFIX}libc ncurses"