Skip to content

Commit 6314e9d

Browse files
committed
ci: add a new dynamic mcuboot partitioning
1 parent 8e44604 commit 6314e9d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

samples/softsim_external_profile/prj.conf

+4-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ CONFIG_PSA_CRYPTO_DRIVER_CC3XX=n
4242

4343
# Reduce the size of the TF-M partition
4444
# when combined with static partitioning
45-
CONFIG_PM_PARTITION_SIZE_TFM=0x10000
45+
# CONFIG_PM_PARTITION_SIZE_TFM=0x10000
46+
47+
# If CONFIG_BOOTLOADER_MCUBOOT is set, adjust the TF-M partition size
48+
CONFIG_PM_PARTITION_SIZE_TFM=$(if $(CONFIG_BOOTLOADER_MCUBOOT),0xFE00,0x10000)
4649

4750
# The bootloader adds a small mcuboot_pad partition,
4851
# whose size must be subtracted from the TF-M partition

samples/softsim_static_profile/prj.conf

+4-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ CONFIG_PSA_CRYPTO_DRIVER_CC3XX=n
4242

4343
# Reduce the size of the TF-M partition
4444
# when combined with static partitioning
45-
CONFIG_PM_PARTITION_SIZE_TFM=0x10000
45+
# CONFIG_PM_PARTITION_SIZE_TFM=0x10000
46+
47+
# If CONFIG_BOOTLOADER_MCUBOOT is set, adjust the TF-M partition size
48+
CONFIG_PM_PARTITION_SIZE_TFM=$(if $(CONFIG_BOOTLOADER_MCUBOOT),0xFE00,0x10000)
4649

4750
# The bootloader adds a small mcuboot_pad partition,
4851
# whose size must be subtracted from the TF-M partition

0 commit comments

Comments
 (0)