42
42
#include "flash_map_backend/flash_map_backend.h"
43
43
44
44
/* Check if Espressif target is supported */
45
- #ifdef CONFIG_SOC_FAMILY_ESP32
45
+ #ifdef CONFIG_SOC_FAMILY_ESPRESSIF_ESP32
46
46
47
47
#include <bootloader_init.h>
48
48
#include <esp_loader.h>
63
63
#define IMAGE1_PRIMARY_SIZE \
64
64
DT_PROP_BY_IDX(DT_NODE_BY_FIXED_PARTITION_LABEL(image_1), reg, 1)
65
65
66
- #endif /* CONFIG_SOC_FAMILY_ESP32 */
66
+ #endif /* CONFIG_SOC_FAMILY_ESPRESSIF_ESP32 */
67
67
68
68
#ifdef CONFIG_MCUBOOT_SERIAL
69
69
#include "boot_serial/boot_serial.h"
@@ -225,7 +225,7 @@ static void do_boot(struct boot_rsp *rsp)
225
225
226
226
#elif defined(CONFIG_XTENSA ) || defined(CONFIG_RISCV )
227
227
228
- #ifndef CONFIG_SOC_FAMILY_ESP32
228
+ #ifndef CONFIG_SOC_FAMILY_ESPRESSIF_ESP32
229
229
230
230
#define SRAM_BASE_ADDRESS 0xBE030000
231
231
@@ -254,7 +254,7 @@ static void copy_img_to_SRAM(int slot, unsigned int hdr_offset)
254
254
done :
255
255
flash_area_close (fap );
256
256
}
257
- #endif /* !CONFIG_SOC_FAMILY_ESP32 */
257
+ #endif /* !CONFIG_SOC_FAMILY_ESPRESSIF_ESP32 */
258
258
259
259
/* Entry point (.ResetVector) is at the very beginning of the image.
260
260
* Simply copy the image to a suitable location and jump there.
@@ -266,7 +266,7 @@ static void do_boot(struct boot_rsp *rsp)
266
266
BOOT_LOG_INF ("br_image_off = 0x%x\n" , rsp -> br_image_off );
267
267
BOOT_LOG_INF ("ih_hdr_size = 0x%x\n" , rsp -> br_hdr -> ih_hdr_size );
268
268
269
- #ifdef CONFIG_SOC_FAMILY_ESP32
269
+ #ifdef CONFIG_SOC_FAMILY_ESPRESSIF_ESP32
270
270
int slot = (rsp -> br_image_off == IMAGE0_PRIMARY_START_ADDRESS ) ?
271
271
PRIMARY_SLOT : SECONDARY_SLOT ;
272
272
/* Load memory segments and start from entry point */
@@ -278,7 +278,7 @@ static void do_boot(struct boot_rsp *rsp)
278
278
/* Jump to entry point */
279
279
start = (void * )(SRAM_BASE_ADDRESS + rsp -> br_hdr -> ih_hdr_size );
280
280
((void (* )(void ))start )();
281
- #endif /* CONFIG_SOC_FAMILY_ESP32 */
281
+ #endif /* CONFIG_SOC_FAMILY_ESPRESSIF_ESP32 */
282
282
}
283
283
284
284
#else
0 commit comments