-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
pm.yml
56 lines (46 loc) · 1.14 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#include <autoconf.h>
b0:
size: CONFIG_PM_PARTITION_SIZE_B0_IMAGE
placement:
after: start
b0_container:
span: [b0, provision]
s0_pad:
share_size: mcuboot_pad
placement:
after: b0_container
align: {start: CONFIG_FPROTECT_BLOCK_SIZE}
spm_app:
span: [spm, app]
s0_image:
# S0 spans over the image booted by B0
span: {one_of: [mcuboot, spm_app]}
s0:
# Phony container to allow hex overriding
span: [s0_pad, s0_image]
s1_pad:
# This partition will only exist if mcuboot_pad exists.
share_size: mcuboot_pad
placement:
after: s0
align: {start: CONFIG_FPROTECT_BLOCK_SIZE}
s1_image:
share_size: {one_of: [mcuboot, s0_image]}
placement:
after: [s1_pad, s0]
#if CONFIG_PM_PARTITION_SIZE_MCUBOOT_PAD == 0
align: {start: CONFIG_FPROTECT_BLOCK_SIZE}
#endif
align_next: CONFIG_FPROTECT_BLOCK_SIZE
s1:
# Partition which contains the whole S1 partition.
span: [s1_pad, s1_image]
provision:
size: CONFIG_PM_PARTITION_SIZE_PROVISION
#if defined(CONFIG_SOC_NRF9160) || defined(CONFIG_SOC_NRF5340_CPUAPP)
region: otp
#else
placement:
after: b0
align: {start: CONFIG_FPROTECT_BLOCK_SIZE}
#endif