Skip to content

Commit e2432c7

Browse files
committed
sysbuild: Allow selecting hash only for nrf54l
The commit adds support for selecting hash only for nrf54l when using PSA crypto. Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
1 parent a781fcf commit e2432c7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

sysbuild/CMakeLists.txt

+7-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,12 @@ function(${SYSBUILD_CURRENT_MODULE_NAME}_pre_cmake)
221221

222222
# The NRF54LX goes with PSA crypto by default
223223
if(SB_CONFIG_SOC_SERIES_NRF54LX)
224-
if(SB_CONFIG_BOOT_SIGNATURE_TYPE_ED25519)
224+
if(SB_CONFIG_BOOT_SIGNATURE_TYPE_NONE)
225+
set_config_bool(mcuboot CONFIG_NRF_SECURITY y)
226+
set_config_bool(mcuboot CONFIG_BOOT_SIGNATURE_TYPE_NONE y)
227+
set_config_bool(${DEFAULT_IMAGE} CONFIG_MCUBOOT_BOOTLOADER_SIGNATURE_TYPE_NONE y)
228+
set_config_bool(${DEFAULT_IMAGE} CONFIG_MCUBOOT_BOOTLOADER_USES_SHA512 y)
229+
elseif(SB_CONFIG_BOOT_SIGNATURE_TYPE_ED25519)
225230
set_config_bool(mcuboot CONFIG_NRF_SECURITY y)
226231
set_config_bool(${DEFAULT_IMAGE} CONFIG_MCUBOOT_BOOTLOADER_SIGNATURE_TYPE_ED25519 y)
227232
set_config_bool(${DEFAULT_IMAGE} CONFIG_MCUBOOT_BOOTLOADER_USES_SHA512 y)
@@ -257,6 +262,7 @@ function(${SYSBUILD_CURRENT_MODULE_NAME}_pre_cmake)
257262
set_config_bool(mcuboot CONFIG_BOOT_IMG_HASH_ALG_SHA512 y)
258263
endif()
259264
else()
265+
set_config_bool(${DEFAULT_IMAGE} CONFIG_MCUBOOT_BOOTLOADER_SIGNATURE_TYPE_NONE n)
260266
set_config_bool(${DEFAULT_IMAGE} CONFIG_MCUBOOT_BOOTLOADER_SIGNATURE_TYPE_ED25519 n)
261267
set_config_bool(${DEFAULT_IMAGE} CONFIG_MCUBOOT_BOOTLOADER_USES_SHA512 n)
262268
endif()

0 commit comments

Comments
 (0)