2017-04-28 04:08:58 +00:00
|
|
|
#
|
|
|
|
# Component Makefile
|
|
|
|
#
|
2017-05-11 07:56:17 +00:00
|
|
|
|
|
|
|
COMPONENT_OBJS := heap_caps_init.o heap_caps.o multi_heap.o heap_trace.o
|
|
|
|
|
|
|
|
ifndef CONFIG_HEAP_POISONING_DISABLED
|
|
|
|
COMPONENT_OBJS += multi_heap_poisoning.o
|
2018-01-10 09:14:47 +00:00
|
|
|
|
|
|
|
ifdef CONFIG_HEAP_TASK_TRACKING
|
|
|
|
COMPONENT_OBJS += esp_heap_debug.o
|
|
|
|
endif
|
2017-05-11 07:56:17 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_HEAP_TRACING
|
|
|
|
|
|
|
|
WRAP_FUNCTIONS = calloc malloc free realloc heap_caps_malloc heap_caps_free heap_caps_realloc
|
|
|
|
WRAP_ARGUMENT := -Wl,--wrap=
|
|
|
|
|
|
|
|
COMPONENT_ADD_LDFLAGS = -l$(COMPONENT_NAME) $(addprefix $(WRAP_ARGUMENT),$(WRAP_FUNCTIONS))
|
|
|
|
|
|
|
|
endif
|