component.mk 606 B

123456789101112131415161718192021
  1. #
  2. # Component Makefile
  3. #
  4. COMPONENT_SRCDIRS := .
  5. COMPONENT_ADD_INCLUDEDIRS := include
  6. COMPONENT_ADD_LDFLAGS := -lpthread
  7. ifdef CONFIG_FREERTOS_ENABLE_STATIC_TASK_CLEAN_UP
  8. COMPONENT_ADD_LDFLAGS += -Wl,--wrap=vPortCleanUpTCB
  9. endif
  10. ifeq ($(GCC_NOT_5_2_0), 1)
  11. # Forces the linker to include pthread implementation from this component,
  12. # instead of the weak implementations provided by libgcc.
  13. COMPONENT_ADD_LDFLAGS += -u pthread_include_pthread_impl
  14. COMPONENT_ADD_LDFLAGS += -u pthread_include_pthread_cond_impl
  15. COMPONENT_ADD_LDFLAGS += -u pthread_include_pthread_local_storage_impl
  16. endif # GCC_NOT_5_2_0