bootloader_support: Fix iram_loader_seg overflow for ESP32-S2 when -O0

This commit is contained in:
KonstantinKondrashov
2022-11-05 01:32:38 +08:00
parent 79659a0410
commit 63a755e8b2

View File

@ -71,7 +71,7 @@ int bootloader_common_get_active_otadata(esp_ota_select_entry_t *two_otadata)
return bootloader_common_select_otadata(two_otadata, valid_two_otadata, true);
}
esp_err_t bootloader_common_check_chip_validity(const esp_image_header_t* img_hdr, esp_image_type type)
esp_err_t __attribute__((optimize("-Os"))) bootloader_common_check_chip_validity(const esp_image_header_t* img_hdr, esp_image_type type)
{
esp_err_t err = ESP_OK;
esp_chip_id_t chip_id = CONFIG_IDF_FIRMWARE_CHIP_ID;