From e4622dfa3bee8729f7b129db4c3e435c52f5a1db Mon Sep 17 00:00:00 2001 From: Marek Pieta Date: Wed, 11 Dec 2024 14:29:49 +0100 Subject: [PATCH] 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 --- applications/nrf_desktop/sysbuild/CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/applications/nrf_desktop/sysbuild/CMakeLists.txt b/applications/nrf_desktop/sysbuild/CMakeLists.txt index 04f7dc8905d4..b785750838ee 100644 --- a/applications/nrf_desktop/sysbuild/CMakeLists.txt +++ b/applications/nrf_desktop/sysbuild/CMakeLists.txt @@ -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()