Skip to content

Commit

Permalink
sysbuild: Set CONFIG_MCUBOOT_BOOTLOADER_USES_SHA512 with ED25519
Browse files Browse the repository at this point in the history
Set CONFIG_MCUBOOT_BOOTLOADER_USES_SHA512 for application where
ED25519 is enabled for MCUboot.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
  • Loading branch information
de-nordic authored and rlubos committed Nov 13, 2024
1 parent 6495d32 commit a8ee946
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sysbuild/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ function(${SYSBUILD_CURRENT_MODULE_NAME}_pre_cmake)
set_config_bool(mcuboot CONFIG_NRF_SECURITY y)
set_config_bool(mcuboot CONFIG_BOOT_IMG_HASH_ALG_SHA512 y)
set_config_bool(${DEFAULT_IMAGE} CONFIG_MCUBOOT_BOOTLOADER_SIGNATURE_TYPE_ED25519 y)
set_config_bool(${DEFAULT_IMAGE} CONFIG_MCUBOOT_BOOTLOADER_USES_SHA512 y)

if(SB_CONFIG_MCUBOOT_SIGNATURE_USING_KMU)
set_config_bool(mcuboot CONFIG_BOOT_SIGNATURE_USING_KMU y)
Expand All @@ -245,6 +246,8 @@ function(${SYSBUILD_CURRENT_MODULE_NAME}_pre_cmake)
set_config_bool(mcuboot CONFIG_BOOT_SIGNATURE_TYPE_PURE n)
set_config_bool(${DEFAULT_IMAGE} CONFIG_MCUBOOT_BOOTLOADER_SIGNATURE_TYPE_PURE n)
endif()
else()
set_config_bool(${DEFAULT_IMAGE} CONFIG_MCUBOOT_BOOTLOADER_USES_SHA512 n)
endif()

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

0 comments on commit a8ee946

Please sign in to comment.