Commit aa217e23 authored by Thomas Stranger's avatar Thomas Stranger Committed by Andrzej Puzdrowski
Browse files

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: default avatarThomas Stranger <thomas.stranger@outlook.com>
parent fc1eabf6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -197,7 +197,7 @@ config BOOT_VALIDATE_SLOT0_ONCE
config BOOT_PREFER_SWAP_MOVE
	bool "Prefer the newer swap move algorithm"
	default y if SOC_FAMILY_NRF
	default n
	default y if !$(dt_nodelabel_enabled,scratch_partition)
	help
	  If y, the BOOT_IMAGE_UPGRADE_MODE will default to using
	  "move" instead of "scratch".  This is a separate bool config