2017-04-28 00:08:58 -04:00
|
|
|
#
|
|
|
|
# Component Makefile
|
|
|
|
#
|
2017-05-11 03:56:17 -04:00
|
|
|
|
2018-12-12 12:29:47 -05:00
|
|
|
COMPONENT_OBJS := heap_caps_init.o heap_caps.o multi_heap.o
|
2017-05-11 03:56:17 -04:00
|
|
|
|
|
|
|
ifndef CONFIG_HEAP_POISONING_DISABLED
|
|
|
|
COMPONENT_OBJS += multi_heap_poisoning.o
|
2018-01-10 04:14:47 -05:00
|
|
|
|
|
|
|
ifdef CONFIG_HEAP_TASK_TRACKING
|
|
|
|
COMPONENT_OBJS += heap_task_info.o
|
|
|
|
endif
|
2017-05-11 03:56:17 -04:00
|
|
|
endif
|
|
|
|
|
2018-12-12 12:29:47 -05:00
|
|
|
ifdef CONFIG_HEAP_TRACING_STANDALONE
|
|
|
|
|
|
|
|
COMPONENT_OBJS += heap_trace_standalone.o
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2017-05-11 03:56:17 -04:00
|
|
|
ifdef CONFIG_HEAP_TRACING
|
|
|
|
|
2018-02-27 19:00:45 -05:00
|
|
|
WRAP_FUNCTIONS = calloc malloc free realloc heap_caps_malloc heap_caps_free heap_caps_realloc heap_caps_malloc_default heap_caps_realloc_default
|
2017-05-11 03:56:17 -04:00
|
|
|
WRAP_ARGUMENT := -Wl,--wrap=
|
|
|
|
|
|
|
|
COMPONENT_ADD_LDFLAGS = -l$(COMPONENT_NAME) $(addprefix $(WRAP_ARGUMENT),$(WRAP_FUNCTIONS))
|
|
|
|
|
|
|
|
endif
|
2018-04-17 22:57:45 -04:00
|
|
|
|
|
|
|
COMPONENT_ADD_LDFRAGMENTS += linker.lf
|
2019-12-18 11:04:49 -05:00
|
|
|
|
|
|
|
CFLAGS += -DMULTI_HEAP_FREERTOS
|