mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-28 03:23:14 +00:00
01b6effcbe
When CONFIG_APP_BUILD_TYPE_RAM is set (loadable ELF app build), bootloader_support was adding micro-ecc to priv_requires. The micro-ecc component lives in the bootloader subproject and is not available in normal app builds with cmakev2, causing component resolution to fail when built for a build system v2 project. micro-ecc is only needed for secure boot sources built under BOOTLOADER_BUILD (secure_boot_signatures_bootloader.c). For app builds with CONFIG_APP_BUILD_TYPE_RAM we do not build those sources, so only add micro-ecc to priv_requires when BOOTLOADER_BUILD is set.
Bootloader Support Component ============================ Overview -------- "Bootloader support" contains APIs which are used by the bootloader but are also needed for the main app. Code in this component needs to be aware of being executed in a bootloader environment (no RTOS available, BOOTLOADER_BUILD macro set) or in an esp-idf app environment (RTOS running, need locking support.)