1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-15 09:33:50 +01:00
RIOT/cpu/esp32/Makefile
Gunar Schorcht 4f136fb3ad cpu/esp32: add missing atomic built-in functions
Atomic built-in function __atomic_test_and_set seem to be missing in GCC 14.2.0 for some ESP32x SoCs.
2025-03-02 12:39:18 +01:00

45 lines
909 B
Makefile

# Define the module that is built:
MODULE = cpu
SRC = irq_arch.c startup.c stdatomic.c syscalls.c
# Add a list of subdirectories, that should also be built:
DIRS += $(RIOTCPU)/esp_common
DIRS += periph
DIRS += esp-idf
DIRS += esp-idf-api
ifneq (, $(filter esp_bootloader, $(USEMODULE)))
DIRS += bootloader
endif
ifneq (, $(filter usb_board_reset, $(USEMODULE)))
SRC += usb_reset.c
endif
ifneq (, $(filter esp_ble_nimble, $(USEMODULE)))
DIRS += esp-ble-nimble
endif
ifneq (, $(filter esp_eth, $(USEMODULE)))
DIRS += esp-eth
endif
ifneq (, $(filter esp_freertos, $(USEMODULE)))
DIRS += freertos
endif
ifneq (, $(filter esp_lcd, $(USEMODULE)))
DIRS += esp-lcd
endif
ifneq (, $(filter stdio_usb_serial_jtag, $(USEMODULE)))
DIRS += stdio_usb_serial_jtag
endif
ifneq (,$(filter esp_wifi% esp_eth, $(USEMODULE)))
SRC += esp_ztimer.c
endif
include $(RIOTBASE)/Makefile.base