From 269f9e2e30fc0f0ed3e8e59e90c980ad6a0465f2 Mon Sep 17 00:00:00 2001 From: Dominik Ermel Date: Tue, 10 Dec 2024 20:21:58 +0100 Subject: [PATCH] boot: Enable MCUBOOT_DEV_WITH_ERASE in other systems By default enable all other systems to work with devices that require erase prior to write. Signed-off-by: Dominik Ermel --- boot/cypress/MCUBootApp/config/mcuboot_config/mcuboot_config.h | 2 ++ boot/espressif/hal/include/mcuboot_config/mcuboot_config.h | 2 ++ boot/mbed/include/mcuboot_config/mcuboot_config.h | 2 ++ .../mcuboot_config/include/mcuboot_config/mcuboot_config.h | 2 ++ boot/nuttx/include/mcuboot_config/mcuboot_config.h | 2 ++ 5 files changed, 10 insertions(+) diff --git a/boot/cypress/MCUBootApp/config/mcuboot_config/mcuboot_config.h b/boot/cypress/MCUBootApp/config/mcuboot_config/mcuboot_config.h index 7f8472b3d..9af2a7d27 100644 --- a/boot/cypress/MCUBootApp/config/mcuboot_config/mcuboot_config.h +++ b/boot/cypress/MCUBootApp/config/mcuboot_config/mcuboot_config.h @@ -83,6 +83,8 @@ // TODO: FWSECURITY-755 #define MCUBOOT_USE_FLASH_AREA_GET_SECTORS +#define MCUBOOT_DEV_WITH_ERASE + /* Default number of separately updateable images; change in case of * multiple images. */ #ifndef MCUBOOT_IMAGE_NUMBER diff --git a/boot/espressif/hal/include/mcuboot_config/mcuboot_config.h b/boot/espressif/hal/include/mcuboot_config/mcuboot_config.h index a299e3cfc..1181ef482 100644 --- a/boot/espressif/hal/include/mcuboot_config/mcuboot_config.h +++ b/boot/espressif/hal/include/mcuboot_config/mcuboot_config.h @@ -106,6 +106,8 @@ * See the flash APIs for more details. */ #define MCUBOOT_USE_FLASH_AREA_GET_SECTORS +#define MCUBOOT_DEV_WITH_ERASE + /* Default maximum number of flash sectors per image slot; change * as desirable. */ #define MCUBOOT_MAX_IMG_SECTORS 512 diff --git a/boot/mbed/include/mcuboot_config/mcuboot_config.h b/boot/mbed/include/mcuboot_config/mcuboot_config.h index b57e8d651..4794d3db3 100644 --- a/boot/mbed/include/mcuboot_config/mcuboot_config.h +++ b/boot/mbed/include/mcuboot_config/mcuboot_config.h @@ -78,6 +78,8 @@ */ #define MCUBOOT_USE_FLASH_AREA_GET_SECTORS +#define MCUBOOT_DEV_WITH_ERASE + /* * No watchdog integration for now */ diff --git a/boot/mynewt/mcuboot_config/include/mcuboot_config/mcuboot_config.h b/boot/mynewt/mcuboot_config/include/mcuboot_config/mcuboot_config.h index 1ed162835..6ee2c2ad2 100644 --- a/boot/mynewt/mcuboot_config/include/mcuboot_config/mcuboot_config.h +++ b/boot/mynewt/mcuboot_config/include/mcuboot_config/mcuboot_config.h @@ -137,6 +137,8 @@ #define MCUBOOT_BOOT_MAX_ALIGN MYNEWT_VAL(MCU_FLASH_MIN_WRITE_SIZE) #endif +#define MCUBOOT_DEV_WITH_ERASE + #if MYNEWT_VAL(BOOTUTIL_FEED_WATCHDOG) && MYNEWT_VAL(WATCHDOG_INTERVAL) #include #define MCUBOOT_WATCHDOG_FEED() \ diff --git a/boot/nuttx/include/mcuboot_config/mcuboot_config.h b/boot/nuttx/include/mcuboot_config/mcuboot_config.h index 41e7d6742..8a3383f5b 100644 --- a/boot/nuttx/include/mcuboot_config/mcuboot_config.h +++ b/boot/nuttx/include/mcuboot_config/mcuboot_config.h @@ -132,6 +132,8 @@ #define MCUBOOT_USE_FLASH_AREA_GET_SECTORS +#define MCUBOOT_DEV_WITH_ERASE + /* Default maximum number of flash sectors per image slot; change * as desirable. */