1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 09:52:45 +01:00
RIOT/cpu/esp32/esp-idf/efuse/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

30 lines
906 B
Makefile

MODULE = esp_idf_efuse
# source files to be compiled for this module
ESP32_SDK_SRC = \
components/efuse/$(CPU)/esp_efuse_fields.c \
components/efuse/$(CPU)/esp_efuse_table.c \
components/efuse/$(CPU)/esp_efuse_utility.c \
components/efuse/src/esp_efuse_api.c \
components/efuse/src/esp_efuse_utility.c \
components/esp_hw_support/mac_addr.c \
#
ifneq (,$(filter esp32,$(CPU)))
ESP32_SDK_SRC += components/efuse/src/esp_efuse_api_key_esp32.c
else
ESP32_SDK_SRC += components/efuse/src/esp_efuse_api_key_esp32xx.c
endif
# additional include pathes required by this module
INCLUDES += -I$(ESP32_SDK_DIR)/components/efuse/include
INCLUDES += -I$(ESP32_SDK_DIR)/components/efuse/private_include
INCLUDES += -I$(ESP32_SDK_DIR)/components/efuse/$(CPU)/private_include
include $(RIOTBASE)/Makefile.base
ESP32_SDK_BIN = $(BINDIR)/$(MODULE)
include ../esp_idf.mk
include ../esp_idf_cflags.mk