Skip to content

Commit 4182d31

Browse files
hellesvik-nordicrlubos
authored andcommitted
partition_manager: Make tfm storage partions avoid partitioning conflict
With the previous method, both tfm_storage partitions (its, ps, etc) were placed "before: mcuboot_primary". This could lead to a case where mcuboot was placed after the tfm_storage partitions. To avoid this, instead place "after" mcuboot or tfm_secure. Jira: NCSDK-30094 Signed-off-by: Sigurd Hellesvik <[email protected]>
1 parent 9183164 commit 4182d31

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

subsys/partition_manager/pm.yml.tfm

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,31 +30,19 @@ tfm_storage:
3030

3131
tfm_ps:
3232
placement:
33-
#ifdef CONFIG_BOOTLOADER_MCUBOOT
34-
before: mcuboot_primary
35-
#else
36-
before: tfm_nonsecure
37-
#endif
33+
after: [mcuboot, tfm_secure]
3834
inside: tfm_storage
3935
size: CONFIG_PM_PARTITION_SIZE_TFM_PROTECTED_STORAGE
4036

4137
tfm_its:
4238
placement:
43-
#ifdef CONFIG_BOOTLOADER_MCUBOOT
44-
before: mcuboot_primary
45-
#else
46-
before: tfm_nonsecure
47-
#endif
39+
after: [mcuboot, tfm_secure]
4840
inside: tfm_storage
4941
size: CONFIG_PM_PARTITION_SIZE_TFM_INTERNAL_TRUSTED_STORAGE
5042

5143
tfm_otp_nv_counters:
5244
placement:
53-
#ifdef CONFIG_BOOTLOADER_MCUBOOT
54-
before: mcuboot_primary
55-
#else
56-
before: tfm_nonsecure
57-
#endif
45+
after: [mcuboot, tfm_secure]
5846
inside: tfm_storage
5947
size: CONFIG_PM_PARTITION_SIZE_TFM_OTP_NV_COUNTERS
6048

0 commit comments

Comments
 (0)