Commit b9ba2573 authored by Jamie McCrae's avatar Jamie McCrae Committed by Jamie
Browse files

boot: zephyr: kconfig: Default to swap using offset



Defaults to the new swap using offset mode, excluding stm32 as
these devices are already aligned to swap using move with extra
sectors in slot0

Signed-off-by: default avatarJamie McCrae <jamie.mccrae@nordicsemi.no>
parent cc8f6aff
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -408,6 +408,7 @@ config BOOT_VALIDATE_SLOT0_ONCE

config BOOT_PREFER_SWAP_OFFSET
	bool "Prefer the newer swap offset algorithm"
	default y if !$(dt_nodelabel_enabled,scratch_partition) && !SOC_FAMILY_STM32
	help
	  If y, the BOOT_IMAGE_UPGRADE_MODE will default to using "offset" instead of "scratch".
	  This is a separate bool config option, because Kconfig doesn't allow defaults to be
@@ -415,7 +416,7 @@ config BOOT_PREFER_SWAP_OFFSET

config BOOT_PREFER_SWAP_MOVE
	bool "Prefer the newer swap move algorithm"
	default y if SOC_FAMILY_NORDIC_NRF
	depends on !BOOT_PREFER_SWAP_OFFSET
	default y if !$(dt_nodelabel_enabled,scratch_partition)
	help
	  If y, the BOOT_IMAGE_UPGRADE_MODE will default to using