mirror of
https://git.yoctoproject.org/poky
synced 2026-04-23 18:32:12 +02:00
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>
(From OE-Core rev: 42e68397ec74b3cd8ae5df45355c8f6254b48cd8)
Signed-off-by: Jagadeesh Krishnanjanappa <workjagadeesh@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
90862733ed
commit
ee5f9d9fdd
@@ -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 <<EOF
|
||||
|
||||
|
||||
Reference in New Issue
Block a user