| Summary: |
In nativesdk-cmake, the {arch}-toolchain.cmake file installed in the wrong place |
| Product: |
[Build System, Metadata & Runtime] OE-Core
|
Reporter: |
Wojtek Wojtkowski <wwojtek55> |
| Component: |
devtools / tool chain | Assignee: |
Ross Burton <ross.burton> |
| Status: |
NEW
---
|
QA Contact: |
|
| Severity: |
normal
|
|
|
| Priority: |
Medium
|
CC: |
meta.mr.watcher, meta.watcher, randy.macleod
|
| Version: |
5.0.15 | |
|
| Target Milestone: |
6.2 | |
|
| Hardware: |
x86 | |
|
| OS: |
x86_64 | |
|
| Whiteboard: |
|
|
OS type for building Yocto:
|
---
|
Type of Regression:
|
---
|
|
Verified:
|
|
Documentation change:
|
Don't know
|
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.