bootloader: Include FreeRTOS component for the FREERTOS_UNICORE header, only

This commit is contained in:
Angus Gratton 2019-08-08 15:33:45 +10:00 committed by Angus Gratton
parent 309376f51a
commit d5f5fadbee
2 changed files with 9 additions and 2 deletions

View File

@ -17,7 +17,8 @@ endif()
if(BOOTLOADER_BUILD)
set(include_dirs "include" "include_bootloader")
set(priv_requires micro-ecc spi_flash efuse)
# freertos is included just for the CONFIG_FREERTOS_UNICORE macro
set(priv_requires micro-ecc spi_flash efuse freertos)
list(APPEND srcs
"src/bootloader_init.c"
"src/${IDF_TARGET}/bootloader_sha.c"

View File

@ -1,4 +1,10 @@
set(srcs
if(BOOTLOADER_BUILD)
# bootloader only needs FreeRTOS for config, not for anything else
idf_component_register()
return()
endif()
set(srcs
"croutine.c"
"event_groups.c"
"FreeRTOS-openocd.c"