Skip to content

Commit a2fc58e

Browse files
michalek-norlubos
authored andcommitted
modules: mcuboot: minimal partition with external crypto size
sets default for nrf54LX and combines multiple PM_PARTITION_SIZE_MCUBOOT items. Signed-off-by: Mateusz Michalek <[email protected]>
1 parent f50d11e commit a2fc58e

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

modules/mcuboot/boot/zephyr/Kconfig

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,12 @@ source "${ZEPHYR_BASE}/../nrf/subsys/partition_manager/Kconfig.template.partitio
2525
endif
2626

2727
config PM_PARTITION_SIZE_MCUBOOT
28-
hex
29-
default 0x3e00
30-
depends on (BOOT_NRF_EXTERNAL_CRYPTO && BOOT_USE_MIN_PARTITION_SIZE)
31-
32-
config PM_PARTITION_SIZE_MCUBOOT
33-
hex
34-
default FPROTECT_BLOCK_SIZE if SOC_SERIES_NRF91X || SOC_NRF5340_CPUAPP
35-
default 0x7c00
36-
depends on BOOT_USE_MIN_PARTITION_SIZE && !BOOT_NRF_EXTERNAL_CRYPTO
37-
38-
config PM_PARTITION_SIZE_MCUBOOT
39-
hex "Flash space allocated for the MCUboot partition" if !BOOT_USE_MIN_PARTITION_SIZE
40-
default 0xd800 if SOC_SERIES_NRF54LX && BOOT_SIGNATURE_TYPE_ED25519 && !BOOT_SIGNATURE_USING_KMU
28+
hex "Flash space allocated for the MCUboot partition"
29+
default 0x3e00 if (BOOT_USE_MIN_PARTITION_SIZE && BOOT_NRF_EXTERNAL_CRYPTO)
30+
default FPROTECT_BLOCK_SIZE if (BOOT_USE_MIN_PARTITION_SIZE && !BOOT_NRF_EXTERNAL_CRYPTO) && (SOC_SERIES_NRF91X || SOC_NRF5340_CPUAPP)
31+
default 0x8800 if (BOOT_USE_MIN_PARTITION_SIZE && !BOOT_NRF_EXTERNAL_CRYPTO) && SOC_SERIES_NRF54LX
4132
default 0x7c00 if (BOOT_USE_MIN_PARTITION_SIZE && !BOOT_NRF_EXTERNAL_CRYPTO)
33+
default 0xd800 if SOC_SERIES_NRF54LX && BOOT_SIGNATURE_TYPE_ED25519 && !BOOT_SIGNATURE_USING_KMU
4234
default 0xb800 if MCUBOOT_MCUBOOT_IMAGE_NUMBER != -1 && SOC_SERIES_NRF54LX
4335
default 0xbe00 if MCUBOOT_MCUBOOT_IMAGE_NUMBER != -1 && !SOC_SERIES_NRF54LX
4436
default 0xc000

0 commit comments

Comments
 (0)