2019-04-28 03:38:23 -04:00
|
|
|
idf_component_register(SRCS "pthread.c"
|
|
|
|
"pthread_cond_var.c"
|
|
|
|
"pthread_local_storage.c"
|
|
|
|
INCLUDE_DIRS include)
|
2018-06-06 02:14:03 -04:00
|
|
|
|
2019-07-28 05:22:08 -04:00
|
|
|
if(GCC_NOT_5_2_0)
|
|
|
|
set(extra_link_flags "-u pthread_include_pthread_impl")
|
|
|
|
list(APPEND extra_link_flags "-u pthread_include_pthread_cond_impl")
|
|
|
|
list(APPEND extra_link_flags "-u pthread_include_pthread_local_storage_impl")
|
|
|
|
endif()
|
|
|
|
|
2019-04-26 12:12:35 -04:00
|
|
|
if(CONFIG_FREERTOS_ENABLE_STATIC_TASK_CLEAN_UP)
|
2019-05-09 22:53:08 -04:00
|
|
|
target_link_libraries(${COMPONENT_LIB} "-Wl,--wrap=vPortCleanUpTCB")
|
2018-06-06 02:14:03 -04:00
|
|
|
endif()
|
2019-07-28 05:22:08 -04:00
|
|
|
|
|
|
|
if(extra_link_flags)
|
|
|
|
target_link_libraries(${COMPONENT_LIB} INTERFACE "${extra_link_flags}")
|
|
|
|
endif()
|