Bug 16053 - In nativesdk-cmake, the {arch}-toolchain.cmake file installed in the wrong place
Summary: In nativesdk-cmake, the {arch}-toolchain.cmake file installed in the wrong place
Status: NEW
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 5.0.15
Hardware: x86 x86_64
: Medium normal
Target Milestone: 6.2
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2025-11-03 17:58 UTC by Wojtek Wojtkowski
Modified: 2026-10-27 11:04 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wojtek Wojtkowski 2025-11-03 17:58:12 UTC
The cmake-setup.py generates the file based on SDKToolchainConfig.cmake.template and installs it in 'usr/share/cmake/%s-toolchain.cmake'. 

Then, the OEToolchainConfig.cmake file only looks for files inside of 

   /usr/share/cmake/OEToolchainConfig.cmake.d/*

and so the {arch}-toolchain.cmake file never gets included when you source the SDK.


Related files: 

openembedded-core/meta/recipes-devtools/cmake/cmake_3.31.6.bb
openembedded-core/meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake
openembedded-core/meta/recipes-devtools/cmake/cmake/cmake-setup.py


Versions: 

I am currently using ((yocto-5.0.5)) tag but when I checked out master there seems to be the same issue.