Skip to content

Commit

Permalink
boot: Enable MCUBOOT_DEV_WITH_ERASE in other systems
Browse files Browse the repository at this point in the history
By default enable all other systems to work with devices that
require erase prior to write.

Signed-off-by: Dominik Ermel <[email protected]>
  • Loading branch information
de-nordic committed Dec 18, 2024
1 parent 29ea4ec commit 90c0a23
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions boot/espressif/hal/include/mcuboot_config/mcuboot_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions boot/mbed/include/mcuboot_config/mcuboot_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@
*/
#define MCUBOOT_USE_FLASH_AREA_GET_SECTORS

#define MCUBOOT_DEV_WITH_ERASE

/*
* No watchdog integration for now
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <hal/hal_watchdog.h>
#define MCUBOOT_WATCHDOG_FEED() \
Expand Down
2 changes: 2 additions & 0 deletions boot/nuttx/include/mcuboot_config/mcuboot_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 90c0a23

Please sign in to comment.