1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/native/Makefile.dep
Benjamin Valentin 516c69cb5f 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.
2020-11-13 18:43:49 +01:00

25 lines
497 B
Makefile

ifneq (,$(filter netdev_default,$(USEMODULE)))
ifeq (,$(filter socket_zep,$(USEMODULE)))
USEMODULE += netdev_tap
endif
endif
ifneq (,$(filter mtd,$(USEMODULE)))
USEMODULE += mtd_native
endif
ifneq (,$(filter periph_can,$(FEATURES_USED)))
ifeq ($(OS),Linux)
CFLAGS += -DCAN_DLL_NUMOF=2
endif
endif
ifneq (,$(filter socket_zep,$(USEMODULE)))
USEMODULE += iolist
USEMODULE += netdev_ieee802154
USEMODULE += checksum
USEMODULE += random
endif
USEMODULE += native-drivers