mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
fddfe86a4b
Xtensa newlib version requires pthread_setcancelstate as symbol. Therefore, the module pthread was always used, which in turn requires the module xtimer. The xtimer module, however, uses TIMER_DEV(0). Therefore, tests/timers failed for TIMER_DEV(0).
105 lines
2.9 KiB
Makefile
105 lines
2.9 KiB
Makefile
# additional modules dependencies
|
|
|
|
ifneq (,$(filter esp_eth,$(USEMODULE)))
|
|
USEMODULE += esp_idf_eth
|
|
USEMODULE += esp_idf_eth_phy
|
|
USEMODULE += gnrc
|
|
USEMODULE += netdev_eth
|
|
USEMODULE += netopt
|
|
USEMODULE += riot_freertos
|
|
INCLUDES += -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/include/ethernet
|
|
INCLUDES += -I$(ESP32_SDK_DIR)/components/ethernet/include
|
|
endif
|
|
|
|
ifneq (,$(filter esp_now,$(USEMODULE)))
|
|
$(eval GNRC_NETIF_NUMOF=$(shell echo $$(($(GNRC_NETIF_NUMOF)+1))))
|
|
USEMODULE += esp_wifi_any
|
|
USEMODULE += gnrc
|
|
USEMODULE += netopt
|
|
endif
|
|
|
|
ifneq (,$(filter esp_wifi,$(USEMODULE)))
|
|
$(eval GNRC_NETIF_NUMOF=$(shell echo $$(($(GNRC_NETIF_NUMOF)+1))))
|
|
USEMODULE += esp_wifi_any
|
|
USEMODULE += gnrc
|
|
USEMODULE += netopt
|
|
USEMODULE += netdev_eth
|
|
endif
|
|
|
|
ifneq (,$(filter esp_wifi_any,$(USEMODULE)))
|
|
# add additional modules used for any WiFi interface
|
|
USEMODULE += esp_idf_wpa_supplicant_crypto
|
|
USEMODULE += esp_idf_wpa_supplicant_port
|
|
USEMODULE += esp_idf_nvs_flash
|
|
|
|
# crypto and hashes produce symbol conflicts with esp_idf_wpa_supplicant_crypto
|
|
DISABLE_MODULE += crypto
|
|
DISABLE_MODULE += hashes
|
|
endif
|
|
|
|
ifneq (,$(filter esp_i2c_hw,$(USEMODULE)))
|
|
USEMODULE += xtimer
|
|
else
|
|
# PLEASE NOTE: because of the very poor and faulty hardware implementation
|
|
# we use software implementation by default for the moment (if module
|
|
# esp_i2c_hw is not explicitly used)
|
|
USEMODULE += esp_i2c_sw
|
|
endif
|
|
|
|
ifneq (, $(filter esp_spi_ram, $(DISABLE_MODULE)))
|
|
USEMODULE := $(filter-out esp_spi_ram, $(USEMODULE))
|
|
endif
|
|
|
|
# each device has SPI flash memory, but must be explicitly enabled
|
|
ifneq (,$(filter esp_spiffs,$(USEMODULE)))
|
|
USEMODULE += esp_idf_spi_flash
|
|
USEMODULE += spiffs
|
|
USEMODULE += vfs
|
|
export SPIFFS_STD_OPTION = -std=c99
|
|
INCLUDES += -I$(RIOTBASE)/sys/include
|
|
INCLUDES += -I$(RIOTBASE)/sys/posix/include
|
|
endif
|
|
|
|
ifneq (,$(filter ndn-riot,$(USEPKG)))
|
|
USEMODULE += crypto
|
|
USEMODULE += cipher_modes
|
|
endif
|
|
|
|
ifneq (,$(findstring posix,$(USEMODULE)))
|
|
USEMODULE += newlib_syscalls_default
|
|
endif
|
|
|
|
ifneq (,$(filter shell,$(USEMODULE)))
|
|
USEMODULE += newlib_syscalls_default
|
|
USEMODULE += ps
|
|
USEMODULE += xtimer
|
|
endif
|
|
|
|
ifneq (,$(filter xtimer,$(USEMODULE)))
|
|
USEMODULE += newlib_syscalls_default
|
|
endif
|
|
|
|
ifneq (,$(filter newlib_syscalls_default,$(USEMODULE)))
|
|
USEMODULE += stdio_uart
|
|
endif
|
|
|
|
# if SPI RAM is enabled, ESP-IDF heap and quot flash mode have to be used
|
|
ifneq (,$(filter esp_spi_ram,$(USEMODULE)))
|
|
USEMODULE += esp_idf_heap
|
|
export FLASH_MODE = qout
|
|
CFLAGS += -DFLASH_MODE_QOUT=1
|
|
else
|
|
ifeq ($(FLASH_MODE), qio)
|
|
CFLAGS += -DFLASH_MODE_QIO=1
|
|
endif
|
|
ifeq ($(FLASH_MODE), qout)
|
|
CFLAGS += -DFLASH_MODE_QOUT=1
|
|
endif
|
|
ifeq ($(FLASH_MODE), dio)
|
|
CFLAGS += -DFLASH_MODE_DIO=1
|
|
endif
|
|
ifeq ($(FLASH_MODE), dout)
|
|
CFLAGS += -DFLASH_MODE_DOUT=1
|
|
endif
|
|
endif
|