]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
cmake: support to create per-toolchain cmake file in SDK
authorJagadeesh Krishnanjanappa <workjagadeesh@gmail.com>
Thu, 31 Mar 2022 02:46:45 +0000 (02:46 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 31 Mar 2022 16:51:55 +0000 (17:51 +0100)
commit42e68397ec74b3cd8ae5df45355c8f6254b48cd8
tree49791fa92074af875ea0238f87302442cb417ced
parent400aae43d08f0b9f787ac0d21cb3c97058d76748
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 <image>".

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 <jaskij@gmail.com>
Signed-off-by: Jagadeesh Krishnanjanappa <workjagadeesh@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/classes/toolchain-scripts.bbclass
meta/recipes-devtools/cmake/cmake/SDKToolchainConfig.cmake.template [new file with mode: 0644]
meta/recipes-devtools/cmake/cmake/cmake-setup.py [new file with mode: 0755]
meta/recipes-devtools/cmake/cmake_3.22.3.bb