Skip to content

Commit 6cc1630

Browse files
committed
boot: zephyr: kconfig: Default to swap using offset for nRF devices
Defaults to the new swap using offset mode Signed-off-by: Jamie McCrae <[email protected]>
1 parent 20f98e0 commit 6cc1630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boot/zephyr/Kconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -397,14 +397,14 @@ config BOOT_VALIDATE_SLOT0_ONCE
397397

398398
config BOOT_PREFER_SWAP_OFFSET
399399
bool "Prefer the newer swap offset algorithm"
400+
default y if SOC_FAMILY_NORDIC_NRF
400401
help
401402
If y, the BOOT_IMAGE_UPGRADE_MODE will default to using "offset" instead of "scratch".
402403
This is a separate bool config option, because Kconfig doesn't allow defaults to be
403404
overridden in choice options. Most devices should be using swap using offset mode.
404405

405406
config BOOT_PREFER_SWAP_MOVE
406407
bool "Prefer the newer swap move algorithm"
407-
default y if SOC_FAMILY_NORDIC_NRF
408408
default y if !$(dt_nodelabel_enabled,scratch_partition)
409409
help
410410
If y, the BOOT_IMAGE_UPGRADE_MODE will default to using

0 commit comments

Comments
 (0)