Skip to content

Commit a8ee946

Browse files
de-nordicrlubos
authored andcommitted
sysbuild: Set CONFIG_MCUBOOT_BOOTLOADER_USES_SHA512 with ED25519
Set CONFIG_MCUBOOT_BOOTLOADER_USES_SHA512 for application where ED25519 is enabled for MCUboot. Signed-off-by: Dominik Ermel <[email protected]>
1 parent 6495d32 commit a8ee946

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sysbuild/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ function(${SYSBUILD_CURRENT_MODULE_NAME}_pre_cmake)
231231
set_config_bool(mcuboot CONFIG_NRF_SECURITY y)
232232
set_config_bool(mcuboot CONFIG_BOOT_IMG_HASH_ALG_SHA512 y)
233233
set_config_bool(${DEFAULT_IMAGE} CONFIG_MCUBOOT_BOOTLOADER_SIGNATURE_TYPE_ED25519 y)
234+
set_config_bool(${DEFAULT_IMAGE} CONFIG_MCUBOOT_BOOTLOADER_USES_SHA512 y)
234235

235236
if(SB_CONFIG_MCUBOOT_SIGNATURE_USING_KMU)
236237
set_config_bool(mcuboot CONFIG_BOOT_SIGNATURE_USING_KMU y)
@@ -245,6 +246,8 @@ function(${SYSBUILD_CURRENT_MODULE_NAME}_pre_cmake)
245246
set_config_bool(mcuboot CONFIG_BOOT_SIGNATURE_TYPE_PURE n)
246247
set_config_bool(${DEFAULT_IMAGE} CONFIG_MCUBOOT_BOOTLOADER_SIGNATURE_TYPE_PURE n)
247248
endif()
249+
else()
250+
set_config_bool(${DEFAULT_IMAGE} CONFIG_MCUBOOT_BOOTLOADER_USES_SHA512 n)
248251
endif()
249252

250253
# A v1 board doesn't define board qualifiers, thus below test will just test the pure board

0 commit comments

Comments
 (0)