Skip to content

Commit 4a1effb

Browse files
committed
zephyr: Remove deprecated ZEPHYR_TRY_MASS_ERASE option
This option was deprecated 8 months ago, remove it. Signed-off-by: Jamie McCrae <[email protected]>
1 parent 2b924da commit 4a1effb

File tree

3 files changed

+0
-35
lines changed

3 files changed

+0
-35
lines changed

boot/zephyr/CMakeLists.txt

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,6 @@
66

77
cmake_minimum_required(VERSION 3.13.1)
88

9-
# Enable Zephyr runner options which request mass erase if so
10-
# configured.
11-
#
12-
# Note that this also disables the default "leave" option when
13-
# targeting STM32 DfuSe devices with dfu-util, making the chip stay in
14-
# the bootloader after flashing.
15-
#
16-
# That's the right thing, because mcuboot has nothing to do since the
17-
# chip was just erased. The next thing the user is going to want to do
18-
# is flash the application. (Developers can reset DfuSE devices
19-
# manually to test mcuboot behavior on an otherwise erased flash
20-
# device.)
21-
macro(app_set_runner_args)
22-
if(CONFIG_ZEPHYR_TRY_MASS_ERASE)
23-
board_runner_args(dfu-util "--dfuse-modifiers=force:mass-erase")
24-
board_runner_args(pyocd "--flash-opt=-e=chip")
25-
board_runner_args(nrfjprog "--erase")
26-
endif()
27-
endmacro()
28-
299
# find_package(Zephyr) in order to load application boilerplate:
3010
# http://docs.zephyrproject.org/application/application.html
3111
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})

boot/zephyr/Kconfig

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -546,20 +546,6 @@ config BOOT_USB_DFU_DETECT_DELAY
546546

547547
endif # BOOT_USB_DFU_GPIO
548548

549-
config ZEPHYR_TRY_MASS_ERASE
550-
bool "Try to mass erase flash when flashing MCUboot image (DEPRECATED)"
551-
select DEPRECATED
552-
help
553-
If y, attempt to configure the Zephyr build system's "flash"
554-
target to mass-erase the flash device before flashing the
555-
MCUboot image. This ensures the scratch and other partitions
556-
are in a consistent state.
557-
558-
This is not available for all targets.
559-
560-
This option has been deprecated, to perform a mass erase when
561-
flashing a board, `west flash --erase` should be used instead.
562-
563549
config BOOT_USE_BENCH
564550
bool "Enable benchmark code"
565551
default n

boot/zephyr/boards/nrf52_minimal_footprint.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ CONFIG_BOOT_SIGNATURE_KEY_FILE="root-ec-p256.pem"
1616
# by reliability reason.
1717
CONFIG_BOOT_UPGRADE_ONLY=y
1818

19-
# CONFIG_ZEPHYR_TRY_MASS_ERASE is not set
2019
# CONFIG_BOARD_ENABLE_DCDC is not set
2120
CONFIG_SOC_SERIES_NRF52X=y
2221
CONFIG_SOC_NRF52832_QFAA=y

0 commit comments

Comments
 (0)