tools: Rename the flash size detection kconfig option

9c46c98b4c have changed the default value
of ESPTOOLPY_FLASHSIZE_DETECT. As the side effect, existing
projects (having the option still enabled) started to discard the SHA256 digest.

Rename the ESPTOOLPY_FLASHSIZE_DETECT option so existing projects would
have the value disabled by default.

Closes https://github.com/espressif/esp-idf/issues/9148
This commit is contained in:
Roland Dobai
2022-06-14 13:39:50 +02:00
parent e213e66ba3
commit d56c578ddb
3 changed files with 7 additions and 2 deletions

View File

@@ -155,7 +155,7 @@ menu "Serial flasher config"
default "64MB" if ESPTOOLPY_FLASHSIZE_64MB
default "128MB" if ESPTOOLPY_FLASHSIZE_128MB
config ESPTOOLPY_FLASHSIZE_DETECT
config ESPTOOLPY_HEADER_FLASHSIZE_UPDATE
bool "Detect flash size when flashing bootloader"
default n
help

View File

@@ -63,7 +63,7 @@ if(min_rev)
unset(min_rev)
endif()
if(CONFIG_ESPTOOLPY_FLASHSIZE_DETECT)
if(CONFIG_ESPTOOLPY_HEADER_FLASHSIZE_UPDATE)
# Set ESPFLASHSIZE to 'detect' *after* esptool_elf2image_args are generated,
# as elf2image can't have 'detect' as an option...
set(ESPFLASHSIZE detect)