From aaf7d8c722e95844f58047941ef455d7098112c1 Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Wed, 13 May 2026 14:20:29 +0800 Subject: [PATCH] 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. --- components/esp_rom/patches/esp_rom_sys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_rom/patches/esp_rom_sys.c b/components/esp_rom/patches/esp_rom_sys.c index 572328ce946..0d3076e1a86 100644 --- a/components/esp_rom/patches/esp_rom_sys.c +++ b/components/esp_rom/patches/esp_rom_sys.c @@ -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) {