2019-11-21 17:40:59 +00:00
|
|
|
list(APPEND srcs "log.c"
|
|
|
|
"log_buffers.c")
|
|
|
|
|
|
|
|
idf_component_register(SRCS ${srcs}
|
2019-04-28 07:38:23 +00:00
|
|
|
INCLUDE_DIRS "include"
|
2019-11-21 17:40:59 +00:00
|
|
|
LDFRAGMENTS linker.lf
|
2019-04-28 07:38:23 +00:00
|
|
|
PRIV_REQUIRES soc)
|
2019-11-21 17:40:59 +00:00
|
|
|
|
|
|
|
idf_build_get_property(build_components BUILD_COMPONENTS)
|
|
|
|
# Ideally, FreeRTOS shouldn't be included into bootloader build, so the 2nd check should be unnecessary
|
|
|
|
if(freertos IN_LIST BUILD_COMPONENTS AND NOT BOOTLOADER_BUILD)
|
|
|
|
target_sources(${COMPONENT_TARGET} PRIVATE log_freertos.c)
|
|
|
|
else()
|
|
|
|
target_sources(${COMPONENT_TARGET} PRIVATE log_noos.c)
|
|
|
|
endif()
|