Skip to content

Commit 147abe7

Browse files
committed
espressif: bump supported IDF code to v5.1.6
Also fix build if hal_espressif is used as IDF code layer (hal) for Espressif Port Signed-off-by: Almir Okato <[email protected]>
1 parent 5e1be19 commit 147abe7

File tree

9 files changed

+11
-1
lines changed

9 files changed

+11
-1
lines changed

boot/espressif/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ endif()
1313

1414
add_definitions(-DMCUBOOT_TARGET=${MCUBOOT_TARGET})
1515
add_definitions(-D__ESPRESSIF__=1)
16+
add_definitions(-DCONFIG_MCUBOOT_ESPRESSIF=1)
1617

17-
set(EXPECTED_IDF_HAL_VERSION "5.1.4")
18+
set(EXPECTED_IDF_HAL_VERSION "5.1.6")
1819

1920
if ("${MCUBOOT_TARGET}" STREQUAL "esp32" OR
2021
"${MCUBOOT_TARGET}" STREQUAL "esp32s2" OR

boot/espressif/hal/include/esp32c2/esp32c2.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ endif()
1717

1818
list(APPEND LINKER_SCRIPTS
1919
-T${esp_hal_dir}/components/esp_rom/${MCUBOOT_TARGET}/ld/${MCUBOOT_TARGET}.rom.newlib.ld
20+
-T${esp_hal_dir}/components/esp_rom/${MCUBOOT_TARGET}/ld/${MCUBOOT_TARGET}.rom.version.ld
2021
)
2122

2223
set_source_files_properties(

boot/espressif/hal/include/esp32c3/esp32c3.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ endif()
1717
list(APPEND LINKER_SCRIPTS
1818
-T${esp_hal_dir}/components/esp_rom/${MCUBOOT_TARGET}/ld/${MCUBOOT_TARGET}.rom.newlib.ld
1919
-T${esp_hal_dir}/components/esp_rom/${MCUBOOT_TARGET}/ld/${MCUBOOT_TARGET}.rom.eco3.ld
20+
-T${esp_hal_dir}/components/esp_rom/${MCUBOOT_TARGET}/ld/${MCUBOOT_TARGET}.rom.version.ld
2021
)

boot/espressif/hal/include/esp32c6/esp32c6.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ list(APPEND include_dirs
77
)
88

99
list(APPEND hal_srcs
10+
${esp_hal_dir}/components/bootloader_support/src/${MCUBOOT_TARGET}/bootloader_ecdsa.c
1011
${esp_hal_dir}/components/hal/cache_hal.c
1112
${esp_hal_dir}/components/hal/lp_timer_hal.c
1213
${esp_hal_dir}/components/efuse/src/efuse_controller/keys/with_key_purposes/esp_efuse_api_key.c
@@ -22,6 +23,7 @@ endif()
2223

2324
list(APPEND LINKER_SCRIPTS
2425
-T${esp_hal_dir}/components/esp_rom/${MCUBOOT_TARGET}/ld/${MCUBOOT_TARGET}.rom.newlib.ld
26+
-T${esp_hal_dir}/components/esp_rom/${MCUBOOT_TARGET}/ld/${MCUBOOT_TARGET}.rom.version.ld
2527
)
2628

2729
set_source_files_properties(

boot/espressif/hal/include/esp32h2/esp32h2.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ list(APPEND include_dirs
99
list(APPEND hal_srcs
1010
${esp_hal_dir}/components/hal/cache_hal.c
1111
${esp_hal_dir}/components/hal/lp_timer_hal.c
12+
${esp_hal_dir}/components/efuse/${MCUBOOT_TARGET}/esp_efuse_table_v0.0_v1.1.c
1213
${esp_hal_dir}/components/efuse/src/efuse_controller/keys/with_key_purposes/esp_efuse_api_key.c
1314
${esp_hal_dir}/components/esp_rom/patches/esp_rom_regi2c_${MCUBOOT_TARGET}.c
1415
${esp_hal_dir}/components/esp_hw_support/port/${MCUBOOT_TARGET}/pmu_param.c
@@ -22,6 +23,7 @@ endif()
2223

2324
list(APPEND LINKER_SCRIPTS
2425
-T${esp_hal_dir}/components/esp_rom/${MCUBOOT_TARGET}/ld/${MCUBOOT_TARGET}.rom.newlib.ld
26+
-T${esp_hal_dir}/components/esp_rom/${MCUBOOT_TARGET}/ld/${MCUBOOT_TARGET}.rom.version.ld
2527
)
2628

2729
set_source_files_properties(

boot/espressif/hal/include/esp32s3/esp32s3.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ endif()
1717

1818
list(APPEND LINKER_SCRIPTS
1919
-T${esp_hal_dir}/components/esp_rom/${MCUBOOT_TARGET}/ld/${MCUBOOT_TARGET}.rom.newlib.ld
20+
-T${esp_hal_dir}/components/esp_rom/${MCUBOOT_TARGET}/ld/${MCUBOOT_TARGET}.rom.version.ld
2021
)
2122

2223
set_source_files_properties(

boot/espressif/hal/include/stubs.h

Whitespace-only changes.

boot/espressif/hal/include/zephyr_compat.h

Whitespace-only changes.

boot/espressif/port/esp32h2/bootloader.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ CONFIG_ESP_CONSOLE_UART_NUM=0
8787
# CONFIG_SECURE_BOOT_ALLOW_JTAG=1
8888
# CONFIG_SECURE_BOOT_ALLOW_ROM_BASIC=1
8989

90+
# CONFIG_SECURE_FLASH_PSEUDO_ROUND_FUNC_STRENGTH=1
91+
9092
# Options for enabling eFuse emulation in Flash (adjust
9193
# CONFIG_EFUSE_VIRTUAL_OFFSET accordingly in order
9294
# to not overlap with other flash regions)

0 commit comments

Comments
 (0)