forked from nrfconnect/sdk-mcuboot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpm.yml
40 lines (34 loc) · 1.01 KB
/
pm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include <autoconf.h>
#include <devicetree_legacy_unfixed.h>
mcuboot:
size: CONFIG_PM_PARTITION_SIZE_MCUBOOT
placement:
before: [mcuboot_primary]
mcuboot_primary_app:
# All images to be placed in MCUboot's slot 0 should be placed in this
# partition
span: [app]
mcuboot_primary:
span: [mcuboot_pad, mcuboot_primary_app]
mcuboot_secondary:
share_size: [mcuboot_primary]
placement:
align: {start: DT_FLASH_ERASE_BLOCK_SIZE}
after: mcuboot_primary
#ifndef CONFIG_BOOT_SWAP_USING_MOVE
mcuboot_scratch:
size: CONFIG_PM_PARTITION_SIZE_MCUBOOT_SCRATCH
placement:
after: app
align: {start: DT_FLASH_ERASE_BLOCK_SIZE}
#endif
# Padding placed before image to boot
mcuboot_pad:
# MCUboot pad must be placed before the 'spm' partition if that is present.
# If 'spm' partition is not present, it must be placed before the 'app'.
size: CONFIG_PM_PARTITION_SIZE_MCUBOOT_PAD
placement:
before: [mcuboot_primary_app]
#ifdef CONFIG_FPROTECT
align: {start: CONFIG_FPROTECT_BLOCK_SIZE}
#endif