mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
f694d057be
Depending on link order of libraries, bootloader implementation of __assert_func could be linked instead of the one provided by newlib.
28 lines
1014 B
CMake
28 lines
1014 B
CMake
set(COMPONENT_SRCS "src/bootloader_clock.c"
|
|
"src/bootloader_common.c"
|
|
"src/bootloader_flash.c"
|
|
"src/bootloader_random.c"
|
|
"src/bootloader_sha.c"
|
|
"src/bootloader_utility.c"
|
|
"src/efuse.c"
|
|
"src/esp_image_format.c"
|
|
"src/flash_encrypt.c"
|
|
"src/flash_partitions.c"
|
|
"src/flash_qio_mode.c"
|
|
"src/secure_boot.c"
|
|
"src/secure_boot_signatures.c")
|
|
|
|
if(${BOOTLOADER_BUILD})
|
|
set(COMPONENT_ADD_INCLUDEDIRS "include include_bootloader")
|
|
set(COMPONENT_REQUIRES)
|
|
set(COMPONENT_PRIV_REQUIRES spi_flash micro-ecc)
|
|
list(APPEND COMPONENT_SRCS "src/bootloader_init.c")
|
|
else()
|
|
set(COMPONENT_ADD_INCLUDEDIRS "include")
|
|
set(COMPONENT_PRIV_INCLUDEDIRS "include_bootloader")
|
|
set(COMPONENT_REQUIRES)
|
|
set(COMPONENT_PRIV_REQUIRES spi_flash mbedtls micro-ecc)
|
|
endif()
|
|
|
|
register_component()
|