Skip to content

Commit 8d98a31

Browse files
de-nordicrlubos
authored andcommitted
sysbuild: MCUboot with ED25519 and KMU via PSA support
The commit will enforce building nrf54l15 with PSA enabled ED25519, with CONFIG_NRF_SECURITY=y. The commit adds SB_CONFIG_MCUBOOT_SIGNATURE_USING_KMU that allows to build MCUboot for signature verification via KMU instead of compiled in keys. Signed-off-by: Dominik Ermel <[email protected]> (cherry picked from commit 03fb52e)
1 parent bb6a05f commit 8d98a31

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

sysbuild/CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,17 @@ function(${SYSBUILD_CURRENT_MODULE_NAME}_pre_cmake)
226226
endif()
227227
endforeach()
228228

229+
# The NRF54LX goes with PSA crypto by default
230+
if(SB_CONFIG_SOC_SERIES_NRF54LX AND SB_CONFIG_BOOT_SIGNATURE_TYPE_ED25519)
231+
set_config_bool(mcuboot CONFIG_NRF_SECURITY y)
232+
233+
if(SB_CONFIG_MCUBOOT_SIGNATURE_USING_KMU)
234+
set_config_bool(mcuboot CONFIG_BOOT_SIGNATURE_USING_KMU y)
235+
else()
236+
set_config_bool(mcuboot CONFIG_BOOT_SIGNATURE_USING_KMU n)
237+
endif()
238+
endif()
239+
229240
# A v1 board doesn't define board qualifiers, thus below test will just test the pure board
230241
# name for a v1 board. A v2 board will match against the board qualifier.
231242
if("${BOARD}${BOARD_QUALIFIERS}" MATCHES "(_|/)ns$")

sysbuild/Kconfig.mcuboot

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,13 @@ config MCUBOOT_FPROTECT_ALLOW_COMBINED_REGIONS
147147
default y
148148
depends on SOC_SERIES_NRF54LX && !SECURE_BOOT_APPCORE
149149

150+
config MCUBOOT_SIGNATURE_USING_KMU
151+
bool "Use KMU stored keys for signature verification"
152+
depends on SOC_SERIES_NRF54LX
153+
depends on BOOT_SIGNATURE_TYPE_ED25519
154+
help
155+
The device needs to be provisioned with proper set of keys.
156+
150157
endif
151158

152159
config MCUBOOT_USE_ALL_AVAILABLE_RAM

0 commit comments

Comments
 (0)