From 86580c94994554a866a9ef4bc685c3dd7cf8862a Mon Sep 17 00:00:00 2001 From: Dominik Ermel Date: Tue, 12 Nov 2024 11:15:38 +0000 Subject: [PATCH] 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 --- sysbuild/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysbuild/CMakeLists.txt b/sysbuild/CMakeLists.txt index 42f841986f13..0f64bf771f3f 100644 --- a/sysbuild/CMakeLists.txt +++ b/sysbuild/CMakeLists.txt @@ -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) @@ -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