mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-22 01:27:11 +08:00

1. remove "IRAM_ATTR" from pthread function 2. modify "critical" function 3. remove SMP function 4. add platform support
26 lines
666 B
Makefile
26 lines
666 B
Makefile
#
|
|
# Component Makefile
|
|
#
|
|
|
|
ifdef CONFIG_ENABLE_PTHREAD
|
|
COMPONENT_SRCDIRS := .
|
|
|
|
COMPONENT_ADD_INCLUDEDIRS := include
|
|
|
|
COMPONENT_ADD_LDFLAGS := -lpthread
|
|
|
|
ifdef CONFIG_FREERTOS_ENABLE_STATIC_TASK_CLEAN_UP
|
|
COMPONENT_ADD_LDFLAGS += -Wl,--wrap=vPortCleanUpTCB
|
|
endif
|
|
|
|
ifeq ($(GCC_NOT_5_2_0), 1)
|
|
# 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
|
|
endif # GCC_NOT_5_2_0
|
|
else
|
|
COMPONENT_SRCDIRS :=
|
|
endif
|