2018-09-10 21:44:12 -04:00
|
|
|
set(COMPONENT_SRCS "src/bootloader_clock.c"
|
|
|
|
"src/bootloader_common.c"
|
|
|
|
"src/bootloader_flash.c"
|
2019-07-05 08:21:36 -04:00
|
|
|
"src/bootloader_flash_config.c"
|
2018-09-10 21:44:12 -04:00
|
|
|
"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")
|
2018-01-11 21:49:13 -05:00
|
|
|
|
|
|
|
if(${BOOTLOADER_BUILD})
|
2018-08-16 01:01:43 -04:00
|
|
|
set(COMPONENT_ADD_INCLUDEDIRS "include include_bootloader")
|
2018-03-22 02:27:10 -04:00
|
|
|
set(COMPONENT_REQUIRES)
|
|
|
|
set(COMPONENT_PRIV_REQUIRES spi_flash micro-ecc)
|
2018-09-30 00:27:06 -04:00
|
|
|
list(APPEND COMPONENT_SRCS "src/bootloader_init.c")
|
2018-01-11 21:49:13 -05:00
|
|
|
else()
|
2018-02-26 23:45:30 -05:00
|
|
|
set(COMPONENT_ADD_INCLUDEDIRS "include")
|
2018-08-16 01:01:43 -04:00
|
|
|
set(COMPONENT_PRIV_INCLUDEDIRS "include_bootloader")
|
2018-03-22 02:27:10 -04:00
|
|
|
set(COMPONENT_REQUIRES)
|
|
|
|
set(COMPONENT_PRIV_REQUIRES spi_flash mbedtls micro-ecc)
|
2018-01-11 21:49:13 -05:00
|
|
|
endif()
|
|
|
|
|
|
|
|
register_component()
|