From b152f71aaa7340559107b3eda6e105e54fddf40a Mon Sep 17 00:00:00 2001 From: Fabrice DJIATSA Date: Tue, 2 Dec 2025 17:01:34 +0100 Subject: [PATCH] modules: kconfig: mcuboot: make SWAP_USING_OFFSET the default for STM32 Update MCUboot configuration so that STM32 no longer defaults to SWAP_USING_MOVE. Instead, SWAP_USING_OFFSET becomes the default mode for STM32 boards. Signed-off-by: Fabrice DJIATSA --- modules/Kconfig.mcuboot | 2 +- share/sysbuild/images/bootloader/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/Kconfig.mcuboot b/modules/Kconfig.mcuboot index a71520c4010..c83b2ef9d15 100644 --- a/modules/Kconfig.mcuboot +++ b/modules/Kconfig.mcuboot @@ -189,7 +189,7 @@ menu "On board MCUboot operation mode" choice MCUBOOT_BOOTLOADER_MODE prompt "Application assumed MCUboot mode of operation" # Should be removed if board dts is updated - default MCUBOOT_BOOTLOADER_MODE_SWAP_USING_MOVE if SOC_FAMILY_STM32 || SOC_FAMILY_ESPRESSIF_ESP32 + default MCUBOOT_BOOTLOADER_MODE_SWAP_USING_MOVE if SOC_FAMILY_ESPRESSIF_ESP32 default MCUBOOT_BOOTLOADER_MODE_SWAP_USING_OFFSET help Informs application build on assumed MCUboot mode of operation. diff --git a/share/sysbuild/images/bootloader/Kconfig b/share/sysbuild/images/bootloader/Kconfig index 32cd25901ab..a3c9bbef83a 100644 --- a/share/sysbuild/images/bootloader/Kconfig +++ b/share/sysbuild/images/bootloader/Kconfig @@ -33,7 +33,7 @@ if BOOTLOADER_MCUBOOT choice MCUBOOT_MODE prompt "Mode of operation" # Should be removed if board dts is updated - default MCUBOOT_MODE_SWAP_USING_MOVE if SOC_FAMILY_STM32 || SOC_FAMILY_ESPRESSIF_ESP32 + default MCUBOOT_MODE_SWAP_USING_MOVE if SOC_FAMILY_ESPRESSIF_ESP32 default MCUBOOT_MODE_SWAP_USING_OFFSET help The operating mode of MCUboot (which will also be propagated to the application).