Skip to content

Commit f2fc87c

Browse files
frkvrlubos
authored andcommitted
manifest: mcuboot: Add RSA support
-This manifest update adds RSA support using PSA core lite for the following devices -nRF52 series -nRF53 series -nRF91 series -nRF54 series -Adds sysbuild configurations for RSA usage propagated to MCUboot Signed-off-by: Frank Audun Kvamtrø <frank.kvamtro@nordicsemi.no>
1 parent 631dbd7 commit f2fc87c

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

sysbuild/CMakeLists.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,22 @@ function(${SYSBUILD_CURRENT_MODULE_NAME}_pre_cmake)
392392
endforeach()
393393
endif()
394394

395+
if(SB_CONFIG_BOOT_SIGNATURE_TYPE_NONE)
396+
set_config_bool(mcuboot CONFIG_BOOT_SIGNATURE_TYPE_NONE y)
397+
set_config_bool(mcuboot CONFIG_PSA_CRYPTO y)
398+
endif()
399+
400+
if(SB_CONFIG_SOC_SERIES_NRF53 OR SB_CONFIG_SOC_SERIES_NRF91 OR SB_CONFIG_SOC_SERIES_NRF52)
401+
if(SB_CONFIG_BOOT_SIGNATURE_TYPE_RSA)
402+
set_config_bool(mcuboot CONFIG_BOOT_SIGNATURE_TYPE_RSA y)
403+
set_config_bool(mcuboot CONFIG_PSA_CRYPTO y)
404+
set_config_bool(mcuboot CONFIG_PSA_CORE_LITE y)
405+
set_config_bool(mcuboot CONFIG_PSA_CRYPTO_DRIVER_OBERON y)
406+
set_config_bool(mcuboot CONFIG_PSA_CRYPTO_DRIVER_CC3XX n)
407+
set_config_bool(mcuboot CONFIG_HW_CC3XX n)
408+
endif()
409+
endif()
410+
395411
# The NRF54LX goes with PSA crypto by default
396412
if(SB_CONFIG_SOC_SERIES_NRF54L)
397413
if(SB_CONFIG_BOOT_SIGNATURE_TYPE_NONE)
@@ -433,6 +449,11 @@ function(${SYSBUILD_CURRENT_MODULE_NAME}_pre_cmake)
433449
else()
434450
set_config_bool(mcuboot CONFIG_PSA_USE_CRACEN_HASH_DRIVER y)
435451
endif()
452+
elseif(SB_CONFIG_BOOT_SIGNATURE_TYPE_RSA)
453+
set_config_bool(mcuboot CONFIG_BOOT_SIGNATURE_TYPE_RSA y)
454+
set_config_bool(mcuboot CONFIG_PSA_CRYPTO y)
455+
set_config_bool(mcuboot CONFIG_PSA_CORE_LITE y)
456+
set_config_bool(mcuboot CONFIG_BOOT_SIGNATURE_USING_KMU n)
436457
endif()
437458
endif()
438459

west.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ manifest:
130130
compare-by-default: true
131131
- name: mcuboot
132132
repo-path: sdk-mcuboot
133-
revision: 91521590c381f25d095b8486303c422f52c75bab
133+
revision: d2b3671987d1ca54492afe560c2444c3a9dc3000
134134
path: bootloader/mcuboot
135135
- name: qcbor
136136
url: https://github.com/laurencelundblade/QCBOR

0 commit comments

Comments
 (0)