From: Jagadeesh Krishnanjanappa Date: Thu, 31 Mar 2022 02:46:45 +0000 (+0000) Subject: cmake: support to create per-toolchain cmake file in SDK X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~4572 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42e68397ec74b3cd8ae5df45355c8f6254b48cd8;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git cmake: support to create per-toolchain cmake file in SDK The patch creates ${MULTIMACH_TARGET_SYS}-toolchain.cmake file at ${SDK_INSTALL_DIR}/sysroots/${SDK_SYS}/usr/share/cmake/, which is per-toolchain CMake toolchain file containing arch-specific values and independent of OE environment variables. The file gets created after installing SDK toolchain installer ined by running "bitbake -c populate_sdk ". The changes are similar to meson-setup.py which is used to create arch-specific ${SDK_INSTALL_DIR}/sysroots/${SDK_SYS}/usr/share/meson/*-meson.cross [YOCTO #14644] Tested-by: Jan Dorniak Signed-off-by: Jagadeesh Krishnanjanappa Signed-off-by: Alexandre Belloni --- diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass index 8f914cce274..1d7c703748d 100644 --- a/meta/classes/toolchain-scripts.bbclass +++ b/meta/classes/toolchain-scripts.bbclass @@ -109,6 +109,7 @@ toolchain_shared_env_script () { echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script echo 'export ARCH=${ARCH}' >> $script echo 'export CROSS_COMPILE=${TARGET_PREFIX}' >> $script + echo 'export OECORE_TUNE_CCARGS="${TUNE_CCARGS}"' >> $script cat >> $script <