From: Chen Qi Date: Mon, 26 Sep 2016 03:20:28 +0000 (+0800) Subject: meta-environment: ensure corret TOOLCHAIN_CONFIGSITE_NOCACHE value X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~24078 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e13d1fd22186af5544e7248dc12635cd2f2e08b;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git meta-environment: ensure corret TOOLCHAIN_CONFIGSITE_NOCACHE value Expand TOOLCHAIN_CONFIGSITE_NOCACHE value immediately before inheriting cross-canadian to avoid HOST_ARCH being changed from TARGET_ARCH to SDK_ARCH, thus ensuring its correct value. [YOCTO #10255] Signed-off-by: Chen Qi Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/meta/meta-environment.bb b/meta/recipes-core/meta/meta-environment.bb index 49d45f6ec47..d9e045f0416 100644 --- a/meta/recipes-core/meta/meta-environment.bb +++ b/meta/recipes-core/meta/meta-environment.bb @@ -12,6 +12,8 @@ REAL_MULTIMACH_TARGET_SYS = "${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}" inherit toolchain-scripts TOOLCHAIN_NEED_CONFIGSITE_CACHE_append = " zlib" +# Need to expand here before cross-candian changes HOST_ARCH -> SDK_ARCH +TOOLCHAIN_CONFIGSITE_NOCACHE := "${TOOLCHAIN_CONFIGSITE_NOCACHE}" SDK_DIR = "${WORKDIR}/sdk" SDK_OUTPUT = "${SDK_DIR}/image"