1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/native: allow to use ZEP instead of tap

If `native` is compiled with `USEMODULE=socket_zep` and networking,
don't also include `netdev_tap` automatically.

This mirrors the behavior on nrf52 and esp* where the default netdev
can be 'overwritten' by another option.
This commit is contained in:
Benjamin Valentin 2020-08-12 13:34:03 +02:00
parent a07d3e0fc9
commit 516c69cb5f
4 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,7 @@
ifneq (,$(filter netdev_default,$(USEMODULE)))
USEMODULE += netdev_tap
ifeq (,$(filter socket_zep,$(USEMODULE)))
USEMODULE += netdev_tap
endif
endif
ifneq (,$(filter mtd,$(USEMODULE)))

View File

@ -69,7 +69,7 @@ endif
LINKFLAGS += -ffunction-sections
# set the tap interface for term/valgrind
ifneq (,$(filter netdev_default,$(USEMODULE)))
ifneq (,$(filter netdev_tap,$(USEMODULE)))
PORT ?= tap0
endif

View File

@ -13,6 +13,7 @@ ifeq (,$(filter native,$(BOARD)))
endif
endif
else
USEMODULE += netdev_tap
USEMODULE += socket_zep
USEMODULE += socket_zep_hello
endif

View File

@ -1,5 +1,6 @@
# Put board specific dependencies here
ifeq (native,$(BOARD))
USEMODULE += netdev_tap
USEMODULE += socket_zep
else
USEMODULE += stdio_ethos