Skip to content

Commit ebea647

Browse files
MarekPietajukkar
authored andcommitted
applications: nrf_desktop: Add CMake warning for MCUboot using KMU
Using KMU in MCUboot requires manual provisioning of the MCUboot keys. Change adds a CMake warning to ensure that user is aware that an extra step is needed before programming the board. Jira: NCSDK-30742 Signed-off-by: Marek Pieta <[email protected]>
1 parent 290098f commit ebea647

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

applications/nrf_desktop/sysbuild/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,15 @@ set(ipc_radio_APPLICATION_CONFIG_DIR
2626
find_package(Sysbuild REQUIRED HINTS $ENV{ZEPHYR_BASE})
2727

2828
project(sysbuild LANGUAGES)
29+
30+
if(SB_CONFIG_MCUBOOT_SIGNATURE_USING_KMU)
31+
message(WARNING "
32+
------------------------------------------------------------------------------
33+
--- WARNING: MCUboot uses KMU stored keys for signature verification. Make ---
34+
--- sure to use `west ncs-provision` to manually provision the bootloader. ---
35+
--- Application would fail to boot if MCUboot is not provisioned. For more ---
36+
--- details, see the `Building and running` section from `Application ---
37+
--- description` page in nRF Desktop application documentation. ---
38+
------------------------------------------------------------------------------
39+
")
40+
endif()

0 commit comments

Comments
 (0)