fix(esp_system): Fix build when ANTI_ROLLBACK=y and PANIC_SILENT_REBOOT=y

Fix a case when two options are set as
CONFIG_BOOTLOADER_APP_ANTI_ROLLBACK=y
CONFIG_ESP_SYSTEM_PANIC_SILENT_REBOOT=y

Closes https://github.com/espressif/esp-idf/issues/13417
This commit is contained in:
Konstantin Kondrashov 2024-03-20 21:50:55 +02:00
parent 962d9de65e
commit 00f2e33008
3 changed files with 15 additions and 1 deletions

View File

@ -114,7 +114,7 @@ endif()
# need to introduce panic "event" concept to remove this dependency (IDF-2194)
idf_component_optional_requires(PRIVATE esp_gdbstub)
if(NOT CONFIG_ESP_SYSTEM_PANIC_SILENT_REBOOT)
if(NOT CONFIG_ESP_SYSTEM_PANIC_SILENT_REBOOT OR CONFIG_BOOTLOADER_APP_ANTI_ROLLBACK)
idf_component_optional_requires(PRIVATE esp_app_format)
endif()

View File

@ -0,0 +1,6 @@
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0xA000, 0x4000,
otadata, data, ota, 0xE000, 0x2000,
ota_0, app, ota_0, , 1M,
ota_1, app, ota_1, , 1M,
nvs_key, data, nvs_keys, , 4K,
1 # Name Type SubType Offset Size Flags
2 nvs data nvs 0xA000 0x4000
3 otadata data ota 0xE000 0x2000
4 ota_0 app ota_0 1M
5 ota_1 app ota_1 1M
6 nvs_key data nvs_keys 4K

View File

@ -0,0 +1,8 @@
CONFIG_IDF_TARGET="esp32"
CONFIG_BOOTLOADER_LOG_LEVEL_NONE=y
CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=y
CONFIG_BOOTLOADER_APP_ANTI_ROLLBACK=y
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_OFFSET=0x9000
CONFIG_ESP_SYSTEM_PANIC_SILENT_REBOOT=y