mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
0bec8a81ac
To support ESP32x families with the existing Makefiles, CPU_FAM is used instead of CPU in the Makefiles.
30 lines
926 B
Makefile
30 lines
926 B
Makefile
MODULE = esp_idf_efuse
|
|
|
|
# source files to be compiled for this module
|
|
ESP32_SDK_SRC = \
|
|
components/efuse/$(CPU_FAM)/esp_efuse_fields.c \
|
|
components/efuse/$(CPU_FAM)/esp_efuse_table.c \
|
|
components/efuse/$(CPU_FAM)/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_FAM)))
|
|
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_FAM)/private_include
|
|
|
|
include $(RIOTBASE)/Makefile.base
|
|
|
|
ESP32_SDK_BIN = $(BINDIR)/$(MODULE)
|
|
|
|
include ../esp_idf.mk
|
|
include ../esp_idf_cflags.mk
|