mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/esp32: GNRC_NETIF_NUMOF is handled in CPU makefile
Since Makefile.dep files are included as last files multiple times to resolve all module dependencies, GNRC_NETIF_NUMOF is handled here.
This commit is contained in:
parent
afff683696
commit
72967f8fc3
@ -2,14 +2,10 @@ PSEUDOMODULES += olimex_esp32_gateway
|
||||
|
||||
USEMODULE += boards_common_esp32
|
||||
|
||||
# enables esp_eth as network device
|
||||
# enables esp_eth as default network device
|
||||
# cannot be done in Makefile.dep since Makefile.dep is included too late
|
||||
ifneq (,$(filter netdev_default gnrc_netdev_default,$(USEMODULE)))
|
||||
# avoid multiple definitions when package depenedencies are resolved recursively
|
||||
ifndef MODULE_ESP_ETH_ADDED
|
||||
MODULE_ESP_ETH_ADDED = 1
|
||||
USEMODULE += esp_eth
|
||||
$(eval GNRC_NETIF_NUMOF=$(shell echo $$(($(GNRC_NETIF_NUMOF)+1))))
|
||||
endif
|
||||
USEMODULE += esp_eth
|
||||
endif
|
||||
|
||||
include $(RIOTBOARD)/common/esp32/Makefile.include
|
||||
|
@ -51,6 +51,10 @@ ifneq (,$(filter esp_wifi,$(USEMODULE)))
|
||||
USEMODULE += esp_wifi_any
|
||||
endif
|
||||
|
||||
ifneq (,$(filter esp_eth,$(USEMODULE)))
|
||||
$(eval GNRC_NETIF_NUMOF=$(shell echo $$(($(GNRC_NETIF_NUMOF)+1))))
|
||||
endif
|
||||
|
||||
ifneq (,$(filter spiffs,$(USEMODULE)))
|
||||
export RIOT_TEST_TIMEOUT = 300
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user