1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/esp32/esp-idf/heap/Makefile
Gunar Schorcht 751a958529 cpu/esp32: add modules for compilation of required ESP-IDF code
The code required by the ESP-IDF is compiled directly from source in the `esp32_sdk` package. The compilation is structured by modules for easier use.
2022-06-01 13:21:29 +02:00

35 lines
1.0 KiB
Makefile

MODULE = esp_idf_heap
# source files to be compiled for this module
ESP32_SDK_SRC = \
components/heap/heap_caps.c \
components/heap/heap_caps_init.c \
components/heap/heap_task_info.c \
components/heap/heap_trace_standalone.c \
components/heap/multi_heap.c \
components/heap/multi_heap_poisoning.c \
components/heap/port/$(CPU)/memory_layout.c \
components/heap/port/memory_layout_utils.c \
#
# We don't use ESP-IDF TLSF at all to prevent colissions. It doesn't seem to do
# something special with the exception of heap poisoning which isn't configured
# by default.
# ifeq (,$(filter tlsf,$(USEPKG)))
# ESP32_SDK_SRC += components/heap/heap_tlsf.c
# endif
# additional include pathes required by this module
INCLUDES += -I$(ESP32_SDK_DIR)/components/esp_rom/include
INCLUDES += -I$(ESP32_SDK_DIR)/components/esp_system/include
include $(RIOTBASE)/Makefile.base
ESP32_SDK_BIN = $(BINDIR)/$(MODULE)
include ../esp_idf.mk
include ../esp_idf_cflags.mk
# set by default
CFLAGS += -DMULTI_HEAP_FREERTOS