Skip to content

Commit 8e98f3a

Browse files
hakonfamnvlsianpu
authored andcommitted
[nrf noup] partition_manager: fix partitioning issues
Only include scratch partition if swapping using scratch area is enabled. Ref: NCSDK-6211 Signed-off-by: Håkon Øye Amundsen <haakon.amundsen@nordicsemi.no>
1 parent 283c806 commit 8e98f3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

boot/zephyr/pm.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ mcuboot_secondary:
3030
#endif /* CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY */
3131
#endif /* !defined(CONFIG_SINGLE_APPLICATION_SLOT) */
3232

33-
#if !defined(CONFIG_BOOT_SWAP_USING_MOVE) && !defined(CONFIG_SINGLE_APPLICATION_SLOT) && !defined(CONFIG_BOOT_UPGRADE_ONLY)
33+
#if CONFIG_BOOT_SWAP_USING_SCRATCH
3434
mcuboot_scratch:
3535
size: CONFIG_PM_PARTITION_SIZE_MCUBOOT_SCRATCH
3636
placement:
3737
after: app
3838
align: {start: CONFIG_FPROTECT_BLOCK_SIZE}
39-
#endif
39+
#endif /* CONFIG_BOOT_SWAP_USING_SCRATCH */
4040

4141
# Padding placed before image to boot. This reserves space for the MCUboot image header
4242
# and it ensures that the boot image gets linked with the correct address offset in flash.

0 commit comments

Comments
 (0)