How to forward ZephyrConfig.cmake
location to Sub-Builds in multi_image.cmake
#70762
Replies: 1 comment 1 reply
-
This should not be needed, then Read more here: https://docs.zephyrproject.org/latest/build/zephyr_cmake_package.html#zephyr-cmake-package-search-order
Are you perhaps using the nRF Connect SDK (which is including Zephyr) and not a pure Zephyr ? Zephyr itself has no
I assume you refer to The find_package will look for Zephyr as described in the Zephyr doc link above, but if |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
so far my Zephyr build works for my first project. Now, I want to add a bootloader (MCUboot). I've included
ZephyrConfig.cmake
into CMake, by loading the module with a hint:This way, I get always the version of Zephyr, which was checked out by west in a relative position to the current checkout of the project.
Now, I've enabled MCUboot, by adding
CONFIG_BOOTLOADER_MCUBOOT=y
to my project configuration. Inmulti_image.cmake
is a recursive invocation of CMake, which then opens the CMakeLists.txt of MCUboot, which tries to load the Zephyr module by:If that variable is requires, why isn't the Zephyr build system not setting that variable, when spawning subprocesses? Any idea, how to work around this, without redundantly setting the environment variable?
Beta Was this translation helpful? Give feedback.
All reactions