fix(esp_rom): fixed esp-rom not compiling in g0 build

CONFIG_BOOTLOADER_OFFSET_IN_FLASH comes from the bootloader kconfigs and
is not available in g0 builds.
This commit is contained in:
Marius Vikhammer
2026-05-13 14:20:29 +08:00
parent f1d85b531f
commit aaf7d8c722

View File

@@ -122,7 +122,7 @@ uint32_t esp_rom_get_bootloader_offset(void)
#if CONFIG_IDF_TARGET_ESP32P4 && CONFIG_ESP32P4_REV_MIN_FULL < 300
// For early revisions of ESP32-P4 does not recovery bootloader feature.
// Return the default bootloader offset.
return CONFIG_BOOTLOADER_OFFSET_IN_FLASH;
return ESP_ROM_BOOTLOADER_OFFSET_FLASH;
#else
static uint32_t offset_of_active_bootloader = UINT32_MAX;
if (offset_of_active_bootloader == UINT32_MAX) {