fix: Secure boot (ECDSA) build failure for C6 rev0 target

Closes https://github.com/espressif/esp-idf/issues/15856
This commit is contained in:
Mahavir Jain
2025-04-28 18:59:24 +05:30
parent c508207349
commit f3b4050a9f

View File

@@ -65,6 +65,9 @@ if(CONFIG_APP_BUILD_TYPE_APP_2NDBOOT)
endif()
list(APPEND srcs "src/bootloader_sha.c")
if(CONFIG_ESP_ROM_REV0_HAS_NO_ECDSA_INTERFACE)
list(APPEND srcs "src/${IDF_TARGET}/bootloader_ecdsa.c")
endif()
if(BOOTLOADER_BUILD OR CONFIG_APP_BUILD_TYPE_RAM)
set(include_dirs "include" "bootloader_flash/include"
@@ -82,10 +85,6 @@ if(BOOTLOADER_BUILD OR CONFIG_APP_BUILD_TYPE_RAM)
list(APPEND srcs "src/bootloader_utility_tee.c")
endif()
list(APPEND priv_requires hal)
if(CONFIG_ESP_ROM_REV0_HAS_NO_ECDSA_INTERFACE)
list(APPEND srcs
"src/${IDF_TARGET}/bootloader_ecdsa.c")
endif()
else()
set(include_dirs "include" "bootloader_flash/include")
set(priv_include_dirs "private_include")