component.mk 721 B

1234567891011121314151617181920212223242526272829303132
  1. #
  2. # Component Makefile
  3. #
  4. COMPONENT_OBJS := heap_caps_init.o heap_caps.o multi_heap.o heap_tlsf.o
  5. ifndef CONFIG_HEAP_POISONING_DISABLED
  6. COMPONENT_OBJS += multi_heap_poisoning.o
  7. ifdef CONFIG_HEAP_TASK_TRACKING
  8. COMPONENT_OBJS += heap_task_info.o
  9. endif
  10. endif
  11. ifdef CONFIG_HEAP_TRACING_STANDALONE
  12. COMPONENT_OBJS += heap_trace_standalone.o
  13. endif
  14. ifdef CONFIG_HEAP_TRACING
  15. WRAP_FUNCTIONS = calloc malloc free realloc heap_caps_malloc heap_caps_free heap_caps_realloc heap_caps_malloc_default heap_caps_realloc_default
  16. WRAP_ARGUMENT := -Wl,--wrap=
  17. COMPONENT_ADD_LDFLAGS = -l$(COMPONENT_NAME) $(addprefix $(WRAP_ARGUMENT),$(WRAP_FUNCTIONS))
  18. endif
  19. COMPONENT_ADD_LDFRAGMENTS += linker.lf
  20. CFLAGS += -DMULTI_HEAP_FREERTOS