You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a project we are dockerizing the build for a zephyr chip using an out-of-tree application and board, but this bug was really found thru code inspection. We had west installed on the host but we didn't install it in docker build as we weren't using it and just calling cmake directly.
To Reproduce
Ensure west is not installed
pip3 uninstall west
Then we configured our build with an out-of-tree board and application this should be broken in-tree as well - note, this wants to use a sys build because mcuboot is included and just signed.
Environment (please complete the following information):
OS: MacOS
Toolchain: Zephyr SDK in a Docker Container
Version: 4.0.0
Additional context
After code inspection - this commit stood out
commit c952f09a797e0b77a131b776daac25316a06051f
Author: Jamie McCrae <[email protected]>
Date: Wed Sep 25 11:06:45 2024 +0100
cmake: mcuboot: Use imgtool instead of west for signing
Uses imgtool directly to sign images instead of calling west sign,
this also removes the MCUBOOT_CMAKE_WEST_SIGN_PARAMS Kconfig option
as this has no effect
Signed-off-by: Jamie McCrae <[email protected]>
Because reading up the mcuboot.cmake there is nothing using WEST now and so when it is removed the build succeeds as expected.
diff --git a/cmake/mcuboot.cmake b/cmake/mcuboot.cmake
index 2767af807c1..8626dd1c259 100644
--- a/cmake/mcuboot.cmake+++ b/cmake/mcuboot.cmake@@ -32,11 +32,6 @@ function(zephyr_mcuboot_tasks)
endif()
endif()
- if(NOT WEST)- # This feature requires west.- message(FATAL_ERROR "Can't sign images for MCUboot: west not found. To fix, install west and ensure it's on PATH.")- endif()-
foreach(file keyfile keyfile_enc)
if(NOT "${${file}}" STREQUAL "")
if(NOT IS_ABSOLUTE "${${file}}")
The text was updated successfully, but these errors were encountered:
As of c952f09 the calls to west
sign were replaced with imgtool and this check is not relevant. As
it stands since west is optional - it is possible to complete a
signed build without west being installed if this check is removed.
Fixes: zephyrproject-rtos#86438
Signed-off-by: Charles Hardin <[email protected]>
Describe the bug
For a project we are dockerizing the build for a zephyr chip using an out-of-tree application and board, but this bug was really found thru code inspection. We had west installed on the host but we didn't install it in docker build as we weren't using it and just calling cmake directly.
To Reproduce
Ensure west is not installed
Then we configured our build with an out-of-tree board and application this should be broken in-tree as well - note, this wants to use a sys build because mcuboot is included and just signed.
Expected behavior
Build should complete
Logs and console output
Environment (please complete the following information):
Additional context
After code inspection - this commit stood out
Because reading up the mcuboot.cmake there is nothing using WEST now and so when it is removed the build succeeds as expected.
The text was updated successfully, but these errors were encountered: