|
1 | | -# The size of this partition is defined by the kconfig symbol |
2 | | -# CONFIG_PM_PARTITION_SIZE_MCUBOOT |
| 1 | +#include <autoconf.h> |
| 2 | + |
3 | 3 | mcuboot: |
| 4 | + size: CONFIG_PM_PARTITION_SIZE_MCUBOOT |
4 | 5 | placement: |
5 | | - # MCUboot must be placed in front of 'mcuboot_pad'. |
6 | | - before: [mcuboot_pad] |
| 6 | + before: [mcuboot_primary] |
| 7 | + |
| 8 | +mcuboot_primary_app: |
| 9 | + # All images to be placed in MCUboot's slot 0 should be placed in this |
| 10 | + # partition |
| 11 | + span: [app] |
7 | 12 |
|
8 | | -mcuboot_partitions: |
9 | | - # Define a set of sub-partitions which spans over 'mcuboot_pad', 'spm' and |
10 | | - # 'app' if both are present. If only 'app' is present, then these partitions |
11 | | - # will only span across that partition. |
12 | | - # The sub partitions share the size of the parent partition(s) equally. |
13 | | - sub_partitions: [primary, secondary] |
14 | | - span: [mcuboot_pad, spm, app] |
| 13 | +mcuboot_primary: |
| 14 | + span: [mcuboot_pad, mcuboot_primary_app] |
| 15 | + |
| 16 | +mcuboot_secondary: |
| 17 | + share_size: [mcuboot_primary] |
| 18 | + placement: |
| 19 | + after: |
| 20 | + [mcuboot_primary] |
15 | 21 |
|
16 | | -# The size of this partition is defined by the kconfig symbol |
17 | | -# CONFIG_PM_PARTITION_SIZE_MCUBOOT_SCRATCH |
18 | 22 | mcuboot_scratch: |
| 23 | + size: CONFIG_PM_PARTITION_SIZE_MCUBOOT_SCRATCH |
19 | 24 | placement: |
20 | 25 | after: [app] |
21 | 26 |
|
22 | | -# The size of this partition is defined by the kconfig symbol |
23 | | -# CONFIG_PM_PARTITION_SIZE_MCUBOOT_STORAGE |
24 | 27 | mcuboot_storage: |
| 28 | + size: CONFIG_PM_PARTITION_SIZE_MCUBOOT_STORAGE |
25 | 29 | placement: |
26 | 30 | after: [mcuboot_scratch] |
27 | 31 |
|
28 | 32 | # Padding placed before image to boot |
29 | 33 | mcuboot_pad: |
30 | 34 | # MCUboot pad must be placed before the 'spm' partition if that is present. |
31 | 35 | # If 'spm' partition is not present, it must be placed before the 'app'. |
| 36 | + size: CONFIG_PM_PARTITION_SIZE_MCUBOOT_PAD |
32 | 37 | placement: |
33 | | - before: [spm, app] |
| 38 | + before: [mcuboot_primary_app] |
0 commit comments