forked from nrfconnect/sdk-mcuboot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nrf noup] pm: Adapt to changes in partition manager
Use 'inside' and 'inherit_size'. Add KConfig-based size entries. Signed-off-by: Øyvind Rønningstad <[email protected]>
- Loading branch information
1 parent
aebd4b9
commit 4b91989
Showing
2 changed files
with
23 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,38 @@ | ||
# The size of this partition is defined by the kconfig symbol | ||
# CONFIG_PM_PARTITION_SIZE_MCUBOOT | ||
#include <autoconf.h> | ||
|
||
mcuboot: | ||
size: CONFIG_PM_PARTITION_SIZE_MCUBOOT | ||
placement: | ||
# MCUboot must be placed in front of 'mcuboot_pad'. | ||
before: [mcuboot_pad] | ||
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_partitions: | ||
# Define a set of sub-partitions which spans over 'mcuboot_pad', 'spm' and | ||
# 'app' if both are present. If only 'app' is present, then these partitions | ||
# will only span across that partition. | ||
# The sub partitions share the size of the parent partition(s) equally. | ||
sub_partitions: [primary, secondary] | ||
span: [mcuboot_pad, spm, app] | ||
mcuboot_primary: | ||
span: [mcuboot_pad, mcuboot_primary_app] | ||
|
||
mcuboot_secondary: | ||
share_size: [mcuboot_primary] | ||
placement: | ||
after: | ||
[mcuboot_primary] | ||
|
||
# The size of this partition is defined by the kconfig symbol | ||
# CONFIG_PM_PARTITION_SIZE_MCUBOOT_SCRATCH | ||
mcuboot_scratch: | ||
size: CONFIG_PM_PARTITION_SIZE_MCUBOOT_SCRATCH | ||
placement: | ||
after: [app] | ||
|
||
# The size of this partition is defined by the kconfig symbol | ||
# CONFIG_PM_PARTITION_SIZE_MCUBOOT_STORAGE | ||
mcuboot_storage: | ||
size: CONFIG_PM_PARTITION_SIZE_MCUBOOT_STORAGE | ||
placement: | ||
after: [mcuboot_scratch] | ||
|
||
# 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: [spm, app] | ||
before: [mcuboot_primary_app] |