Skip to content

Commit

Permalink
applications: nrf_desktop: Add CMake warning for MCUboot using KMU
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
MarekPieta committed Dec 11, 2024
1 parent 3bb1635 commit e834359
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions applications/nrf_desktop/sysbuild/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,15 @@ set(ipc_radio_APPLICATION_CONFIG_DIR
find_package(Sysbuild REQUIRED HINTS $ENV{ZEPHYR_BASE})

project(sysbuild LANGUAGES)

if(SB_CONFIG_MCUBOOT_SIGNATURE_USING_KMU)
message(WARNING "
------------------------------------------------------------------------------
--- WARNING: MCUboot uses KMU stored keys for signature verification. Make ---
--- sure to use `west ncs-provision` to manually provision the bootloader. ---
--- Application would fail to boot if MCUboot is not provisioned. For more ---
--- details, see the `Building and running` section from `Application ---
--- description` page in nRF Desktop application documentation. ---
------------------------------------------------------------------------------
")
endif()

0 comments on commit e834359

Please sign in to comment.