Skip to content

Commit aa217e2

Browse files
str4t0mnvlsianpu
authored andcommitted
boot: zephyr: prefer swap move if scratch_partition not enabled
With the exception of nrf targets BOOT_SWAP_USING_SCRATCH mode was still the default algorithm. Changing the preferred mode in cases where no scratch_partition is defined will allow successfully building mcuboot for such boards w/o the need for any board specific overlays. Signed-off-by: Thomas Stranger <[email protected]>
1 parent fc1eabf commit aa217e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boot/zephyr/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ config BOOT_VALIDATE_SLOT0_ONCE
197197
config BOOT_PREFER_SWAP_MOVE
198198
bool "Prefer the newer swap move algorithm"
199199
default y if SOC_FAMILY_NRF
200-
default n
200+
default y if !$(dt_nodelabel_enabled,scratch_partition)
201201
help
202202
If y, the BOOT_IMAGE_UPGRADE_MODE will default to using
203203
"move" instead of "scratch". This is a separate bool config

0 commit comments

Comments
 (0)