Skip to content

Commit 2d09f48

Browse files
committed
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 <dominik.ermel@nordicsemi.no>
1 parent ada6ed5 commit 2d09f48

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

boot/cypress/MCUBootApp/config/mcuboot_config/mcuboot_config.h

+2
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@
8383
// TODO: FWSECURITY-755
8484
#define MCUBOOT_USE_FLASH_AREA_GET_SECTORS
8585

86+
#define MCUBOOT_DEV_WITH_ERASE
87+
8688
/* Default number of separately updateable images; change in case of
8789
* multiple images. */
8890
#ifndef MCUBOOT_IMAGE_NUMBER

boot/espressif/hal/include/mcuboot_config/mcuboot_config.h

+2
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@
126126
* See the flash APIs for more details. */
127127
#define MCUBOOT_USE_FLASH_AREA_GET_SECTORS
128128

129+
#define MCUBOOT_DEV_WITH_ERASE
130+
129131
/* Default maximum number of flash sectors per image slot; change
130132
* as desirable. */
131133
#define MCUBOOT_MAX_IMG_SECTORS 512

boot/mbed/include/mcuboot_config/mcuboot_config.h

+2
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@
7878
*/
7979
#define MCUBOOT_USE_FLASH_AREA_GET_SECTORS
8080

81+
#define MCUBOOT_DEV_WITH_ERASE
82+
8183
/*
8284
* No watchdog integration for now
8385
*/

boot/mynewt/mcuboot_config/include/mcuboot_config/mcuboot_config.h

+2
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@
137137
#define MCUBOOT_BOOT_MAX_ALIGN MYNEWT_VAL(MCU_FLASH_MIN_WRITE_SIZE)
138138
#endif
139139

140+
#define MCUBOOT_DEV_WITH_ERASE
141+
140142
#if MYNEWT_VAL(BOOTUTIL_FEED_WATCHDOG) && MYNEWT_VAL(WATCHDOG_INTERVAL)
141143
#include <hal/hal_watchdog.h>
142144
#define MCUBOOT_WATCHDOG_FEED() \

boot/nuttx/include/mcuboot_config/mcuboot_config.h

+2
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@
132132

133133
#define MCUBOOT_USE_FLASH_AREA_GET_SECTORS
134134

135+
#define MCUBOOT_DEV_WITH_ERASE
136+
135137
/* Default maximum number of flash sectors per image slot; change
136138
* as desirable.
137139
*/

0 commit comments

Comments
 (0)