From daf10572098971ca1a66beab6c403dba239f001c Mon Sep 17 00:00:00 2001 From: Mahavir Jain Date: Mon, 28 Apr 2025 18:59:24 +0530 Subject: [PATCH] fix: Secure boot (ECDSA) build failure for C6 rev0 target Closes https://github.com/espressif/esp-idf/issues/15856 --- components/bootloader_support/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/bootloader_support/CMakeLists.txt b/components/bootloader_support/CMakeLists.txt index c1f8eb6fdb..29b31271d5 100644 --- a/components/bootloader_support/CMakeLists.txt +++ b/components/bootloader_support/CMakeLists.txt @@ -36,6 +36,10 @@ if(CONFIG_APP_BUILD_TYPE_APP_2NDBOOT) ) endif() +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" "private_include") @@ -50,10 +54,6 @@ if(BOOTLOADER_BUILD OR CONFIG_APP_BUILD_TYPE_RAM) "src/${IDF_TARGET}/bootloader_${IDF_TARGET}.c" ) 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() list(APPEND srcs "src/idf/bootloader_sha.c")