2017-08-24 02:53:20 +03:00
|
|
|
#
|
|
|
|
# Component Makefile
|
|
|
|
#
|
|
|
|
|
|
|
|
COMPONENT_SRCDIRS := .
|
|
|
|
|
2018-02-25 14:56:04 +05:30
|
|
|
COMPONENT_ADD_INCLUDEDIRS := include
|
2017-08-24 02:53:20 +03:00
|
|
|
|
|
|
|
COMPONENT_ADD_LDFLAGS := -lpthread
|
2018-02-02 00:17:38 +08:00
|
|
|
|
2019-04-26 18:12:35 +02:00
|
|
|
ifdef CONFIG_FREERTOS_ENABLE_STATIC_TASK_CLEAN_UP
|
2018-02-02 00:17:38 +08:00
|
|
|
COMPONENT_ADD_LDFLAGS += -Wl,--wrap=vPortCleanUpTCB
|
|
|
|
endif
|
2019-07-28 11:22:08 +02:00
|
|
|
|
|
|
|
# Forces the linker to include pthread implementation from this component,
|
|
|
|
# instead of the weak implementations provided by libgcc.
|
|
|
|
COMPONENT_ADD_LDFLAGS += -u pthread_include_pthread_impl
|
|
|
|
COMPONENT_ADD_LDFLAGS += -u pthread_include_pthread_cond_impl
|
|
|
|
COMPONENT_ADD_LDFLAGS += -u pthread_include_pthread_local_storage_impl
|
2021-08-27 13:00:10 +08:00
|
|
|
COMPONENT_ADD_LDFLAGS += -u pthread_include_pthread_rwlock_impl
|
|
|
|
|
|
|
|
CFLAGS += -D_POSIX_READER_WRITER_LOCKS
|