From 97a6543c10a33dd4356bb069ca826a62b1f3f24f Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Tue, 21 May 2024 21:22:01 +0200 Subject: [PATCH] tree-wide: Introduce netif feature and use it This gets rid of a long list of boards with network interfaces and instead let's boards (or MCUs with peripheral network interfaces) provide the netif feature. The apps that before used the long list are not depending on the feature instead (in case of the default example, this is an optional dependency). Co-authored-by: mguetschow Co-authored-by: mewen.berthelot --- boards/b-l072z-lrwan1/Makefile.features | 4 +- boards/cc2538dk/Makefile.features | 1 + boards/common/iotlab/Makefile.features | 1 + boards/common/kw41z/Makefile.features | 1 + boards/common/nrf52/Makefile.features | 3 + boards/hamilton/Makefile.features | 3 + boards/lobaro-lorabox/Makefile.features | 3 + boards/lora-e5-dev/Makefile.features | 1 + boards/lsn50/Makefile.features | 4 +- boards/mulle/Makefile.features | 3 + boards/native/common_features.inc.mk | 3 +- boards/nucleo-f207zg/Makefile.features | 2 + boards/nucleo-f429zi/Makefile.features | 2 + boards/nucleo-f439zi/Makefile.features | 2 + boards/nucleo-f767zi/Makefile.features | 2 + boards/nucleo-wl55jc/Makefile.features | 1 + boards/openlabs-kw41z-mini/Makefile.features | 3 + boards/pba-d-01-kw2x/Makefile.features | 1 + boards/same54-xpro/Makefile.features | 2 + boards/samr21-xpro/Makefile.features | 1 + boards/samr30-xpro/Makefile.features | 1 + boards/spark-core/Makefile.features | 3 + boards/stm32f746g-disco/features-shared.mk | 4 ++ boards/telosb/Makefile.features | 3 +- boards/z1/Makefile.features | 3 +- boards/zigduino/Makefile.features | 3 + cpu/atmega128rfa1/Makefile.features | 3 + cpu/atmega256rfr2/Makefile.features | 3 + cpu/cc2538/Makefile.features | 3 + cpu/esp_common/Makefile.features | 3 + cpu/nrf5x_common/Makefile.features | 1 + examples/default/Makefile | 27 ++------- examples/default/Makefile.board.dep | 20 +++++++ features.yaml | 2 + makefiles/features_existing.inc.mk | 1 + tests/Makefile.boards.netif | 63 -------------------- tests/net/netstats_l2/Makefile | 3 +- tests/pkg/edhoc_c/Makefile | 3 +- 38 files changed, 93 insertions(+), 99 deletions(-) create mode 100644 examples/default/Makefile.board.dep delete mode 100644 tests/Makefile.boards.netif diff --git a/boards/b-l072z-lrwan1/Makefile.features b/boards/b-l072z-lrwan1/Makefile.features index 9873156f7e..2145bd24a7 100644 --- a/boards/b-l072z-lrwan1/Makefile.features +++ b/boards/b-l072z-lrwan1/Makefile.features @@ -11,7 +11,5 @@ FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart # Put other features for this board (in alphabetical order) -# For riotboot you need an openocd that supports dualbank flashing. -# The 0.10.0 openocd version in Ubuntu Bionic doesn't work. The change was -# introduced after Jun 8, 2017 - v0.10.0-1-20170607-2132-dev. +FEATURES_PROVIDED += netif FEATURES_PROVIDED += riotboot diff --git a/boards/cc2538dk/Makefile.features b/boards/cc2538dk/Makefile.features index 41787bca08..2021b6efef 100644 --- a/boards/cc2538dk/Makefile.features +++ b/boards/cc2538dk/Makefile.features @@ -11,4 +11,5 @@ FEATURES_PROVIDED += periph_uart # Various other features (if any) FEATURES_PROVIDED += emulator_renode +FEATURES_PROVIDED += netif FEATURES_PROVIDED += riotboot diff --git a/boards/common/iotlab/Makefile.features b/boards/common/iotlab/Makefile.features index 455b73500d..585c145de0 100644 --- a/boards/common/iotlab/Makefile.features +++ b/boards/common/iotlab/Makefile.features @@ -11,3 +11,4 @@ FEATURES_PROVIDED += periph_uart # Put other features for this board (in alphabetical order) FEATURES_PROVIDED += riotboot +FEATURES_PROVIDED += netif diff --git a/boards/common/kw41z/Makefile.features b/boards/common/kw41z/Makefile.features index bebaefb163..3d0dc51357 100644 --- a/boards/common/kw41z/Makefile.features +++ b/boards/common/kw41z/Makefile.features @@ -9,4 +9,5 @@ FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart # Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += netif FEATURES_PROVIDED += riotboot diff --git a/boards/common/nrf52/Makefile.features b/boards/common/nrf52/Makefile.features index 21880d84cf..05c6c970d3 100644 --- a/boards/common/nrf52/Makefile.features +++ b/boards/common/nrf52/Makefile.features @@ -3,4 +3,7 @@ CPU = nrf52 # Put defined MCU peripherals here (in alphabetical order) FEATURES_PROVIDED += periph_rtt FEATURES_PROVIDED += periph_timer + +# Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += netif FEATURES_PROVIDED += riotboot diff --git a/boards/hamilton/Makefile.features b/boards/hamilton/Makefile.features index d22e086b51..abee17d618 100644 --- a/boards/hamilton/Makefile.features +++ b/boards/hamilton/Makefile.features @@ -10,3 +10,6 @@ FEATURES_PROVIDED += periph_rtc FEATURES_PROVIDED += periph_rtt FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer + +# Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += netif diff --git a/boards/lobaro-lorabox/Makefile.features b/boards/lobaro-lorabox/Makefile.features index f4e71d2cd8..2b2611ba6e 100644 --- a/boards/lobaro-lorabox/Makefile.features +++ b/boards/lobaro-lorabox/Makefile.features @@ -7,3 +7,6 @@ FEATURES_PROVIDED += periph_rtc FEATURES_PROVIDED += periph_spi periph_spi_gpio_mode FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart + +# Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += netif diff --git a/boards/lora-e5-dev/Makefile.features b/boards/lora-e5-dev/Makefile.features index df60c40d43..424bffac74 100644 --- a/boards/lora-e5-dev/Makefile.features +++ b/boards/lora-e5-dev/Makefile.features @@ -13,3 +13,4 @@ FEATURES_PROVIDED += periph_uart # Put other features for this board (in alphabetical order) FEATURES_PROVIDED += arduino_pins FEATURES_PROVIDED += riotboot +FEATURES_PROVIDED += netif diff --git a/boards/lsn50/Makefile.features b/boards/lsn50/Makefile.features index 9873156f7e..a9a8974d60 100644 --- a/boards/lsn50/Makefile.features +++ b/boards/lsn50/Makefile.features @@ -11,7 +11,5 @@ FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart # Put other features for this board (in alphabetical order) -# For riotboot you need an openocd that supports dualbank flashing. -# The 0.10.0 openocd version in Ubuntu Bionic doesn't work. The change was -# introduced after Jun 8, 2017 - v0.10.0-1-20170607-2132-dev. FEATURES_PROVIDED += riotboot +FEATURES_PROVIDED += netif diff --git a/boards/mulle/Makefile.features b/boards/mulle/Makefile.features index 2898318971..e520bff113 100644 --- a/boards/mulle/Makefile.features +++ b/boards/mulle/Makefile.features @@ -18,3 +18,6 @@ FEATURES_PROVIDED += periph_rtt FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart + +# Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += netif diff --git a/boards/native/common_features.inc.mk b/boards/native/common_features.inc.mk index cbebc11020..f65b720e62 100644 --- a/boards/native/common_features.inc.mk +++ b/boards/native/common_features.inc.mk @@ -7,6 +7,7 @@ FEATURES_PROVIDED += periph_gpio FEATURES_PROVIDED += periph_pwm FEATURES_PROVIDED += periph_qdec -# Various other features (if any) +# Put other features for this board (in alphabetical order) FEATURES_PROVIDED += ethernet FEATURES_PROVIDED += motor_driver +FEATURES_PROVIDED += netif diff --git a/boards/nucleo-f207zg/Makefile.features b/boards/nucleo-f207zg/Makefile.features index ebf78f92ed..b0d25d5ce0 100644 --- a/boards/nucleo-f207zg/Makefile.features +++ b/boards/nucleo-f207zg/Makefile.features @@ -14,6 +14,8 @@ FEATURES_PROVIDED += periph_uart FEATURES_PROVIDED += periph_usbdev # Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += ethernet +FEATURES_PROVIDED += netif FEATURES_PROVIDED += riotboot FEATURES_PROVIDED += tinyusb_device diff --git a/boards/nucleo-f429zi/Makefile.features b/boards/nucleo-f429zi/Makefile.features index 92e2f945a8..e411743eb1 100644 --- a/boards/nucleo-f429zi/Makefile.features +++ b/boards/nucleo-f429zi/Makefile.features @@ -14,6 +14,8 @@ FEATURES_PROVIDED += periph_uart FEATURES_PROVIDED += periph_usbdev # Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += ethernet +FEATURES_PROVIDED += netif FEATURES_PROVIDED += tinyusb_device # load the common Makefile.features for Nucleo boards diff --git a/boards/nucleo-f439zi/Makefile.features b/boards/nucleo-f439zi/Makefile.features index 8abb89362d..b3c6be29c1 100644 --- a/boards/nucleo-f439zi/Makefile.features +++ b/boards/nucleo-f439zi/Makefile.features @@ -13,6 +13,8 @@ FEATURES_PROVIDED += periph_uart FEATURES_PROVIDED += periph_usbdev # Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += ethernet +FEATURES_PROVIDED += netif FEATURES_PROVIDED += tinyusb_device # load the common Makefile.features for Nucleo boards diff --git a/boards/nucleo-f767zi/Makefile.features b/boards/nucleo-f767zi/Makefile.features index 94380f44bd..aa9175df15 100644 --- a/boards/nucleo-f767zi/Makefile.features +++ b/boards/nucleo-f767zi/Makefile.features @@ -20,6 +20,8 @@ FEATURES_PROVIDED += periph_uart FEATURES_PROVIDED += periph_usbdev # Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += ethernet +FEATURES_PROVIDED += netif FEATURES_PROVIDED += riotboot FEATURES_PROVIDED += tinyusb_device diff --git a/boards/nucleo-wl55jc/Makefile.features b/boards/nucleo-wl55jc/Makefile.features index a567d845b8..6a9645d1ae 100644 --- a/boards/nucleo-wl55jc/Makefile.features +++ b/boards/nucleo-wl55jc/Makefile.features @@ -11,6 +11,7 @@ FEATURES_PROVIDED += periph_uart # Put other features for this board (in alphabetical order) FEATURES_PROVIDED += riotboot +FEATURES_PROVIDED += netif # load the common Makefile.features for Nucleo boards include $(RIOTBOARD)/common/nucleo64/Makefile.features diff --git a/boards/openlabs-kw41z-mini/Makefile.features b/boards/openlabs-kw41z-mini/Makefile.features index ffcdc24bea..4e052296d8 100644 --- a/boards/openlabs-kw41z-mini/Makefile.features +++ b/boards/openlabs-kw41z-mini/Makefile.features @@ -13,3 +13,6 @@ FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart FEATURES_PROVIDED += riotboot + +# Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += netif diff --git a/boards/pba-d-01-kw2x/Makefile.features b/boards/pba-d-01-kw2x/Makefile.features index 71754e01ec..67c66a5d4e 100644 --- a/boards/pba-d-01-kw2x/Makefile.features +++ b/boards/pba-d-01-kw2x/Makefile.features @@ -15,3 +15,4 @@ FEATURES_PROVIDED += periph_uart # Put other features for this board (in alphabetical order) FEATURES_PROVIDED += riotboot +FEATURES_PROVIDED += netif diff --git a/boards/same54-xpro/Makefile.features b/boards/same54-xpro/Makefile.features index ecf8e7b7f0..fb56f6949b 100644 --- a/boards/same54-xpro/Makefile.features +++ b/boards/same54-xpro/Makefile.features @@ -19,5 +19,7 @@ FEATURES_PROVIDED += periph_freqm FEATURES_PROVIDED += periph_can # Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += ethernet +FEATURES_PROVIDED += netif FEATURES_PROVIDED += riotboot FEATURES_PROVIDED += tinyusb_device diff --git a/boards/samr21-xpro/Makefile.features b/boards/samr21-xpro/Makefile.features index 6bcdee23da..632f01d34c 100644 --- a/boards/samr21-xpro/Makefile.features +++ b/boards/samr21-xpro/Makefile.features @@ -14,5 +14,6 @@ FEATURES_PROVIDED += periph_uart_hw_fc FEATURES_PROVIDED += periph_usbdev # Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += netif FEATURES_PROVIDED += riotboot FEATURES_PROVIDED += tinyusb_device diff --git a/boards/samr30-xpro/Makefile.features b/boards/samr30-xpro/Makefile.features index f2b7cf9c31..4ecf0e4d35 100644 --- a/boards/samr30-xpro/Makefile.features +++ b/boards/samr30-xpro/Makefile.features @@ -12,5 +12,6 @@ FEATURES_PROVIDED += periph_uart FEATURES_PROVIDED += periph_usbdev # Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += netif FEATURES_PROVIDED += riotboot FEATURES_PROVIDED += tinyusb_device diff --git a/boards/spark-core/Makefile.features b/boards/spark-core/Makefile.features index 17b018e591..143ffe8c11 100644 --- a/boards/spark-core/Makefile.features +++ b/boards/spark-core/Makefile.features @@ -5,3 +5,6 @@ CPU_MODEL = stm32f103cb FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_uart + +# Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += netif diff --git a/boards/stm32f746g-disco/features-shared.mk b/boards/stm32f746g-disco/features-shared.mk index d025e3fd61..6dd03f081e 100644 --- a/boards/stm32f746g-disco/features-shared.mk +++ b/boards/stm32f746g-disco/features-shared.mk @@ -15,4 +15,8 @@ FEATURES_PROVIDED += periph_uart FEATURES_PROVIDED += periph_usbdev FEATURES_PROVIDED += periph_usbdev_hs FEATURES_PROVIDED += periph_usbdev_hs_ulpi + +# Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += ethernet +FEATURES_PROVIDED += netif FEATURES_PROVIDED += tinyusb_device diff --git a/boards/telosb/Makefile.features b/boards/telosb/Makefile.features index 3a6410cfab..02eb0b98c8 100644 --- a/boards/telosb/Makefile.features +++ b/boards/telosb/Makefile.features @@ -7,4 +7,5 @@ FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart -# Various other features (if any) +# Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += netif diff --git a/boards/z1/Makefile.features b/boards/z1/Makefile.features index fc3612506d..9d29499dc7 100644 --- a/boards/z1/Makefile.features +++ b/boards/z1/Makefile.features @@ -7,4 +7,5 @@ FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart -# Various other features (if any) +# Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += netif diff --git a/boards/zigduino/Makefile.features b/boards/zigduino/Makefile.features index fa4a875f7b..26f3fed349 100644 --- a/boards/zigduino/Makefile.features +++ b/boards/zigduino/Makefile.features @@ -12,3 +12,6 @@ FEATURES_PROVIDED += periph_uart # Put defined MCU peripherals here (in alphabetical order) # Peripherals are defined in common/arduino-atmega/Makefile.features # Add only additional Peripherals +# +# Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += netif diff --git a/cpu/atmega128rfa1/Makefile.features b/cpu/atmega128rfa1/Makefile.features index 664dcf9dd6..3475fe1950 100644 --- a/cpu/atmega128rfa1/Makefile.features +++ b/cpu/atmega128rfa1/Makefile.features @@ -4,3 +4,6 @@ include $(RIOTCPU)/atmega_common/Makefile.features # additional PCINT for atmega128rfa1 FEATURES_PROVIDED += atmega_pcint1 + +# MCU has a peripheral network interface +FEATURES_PROVIDED += netif diff --git a/cpu/atmega256rfr2/Makefile.features b/cpu/atmega256rfr2/Makefile.features index 5bd4ab1d37..af4d2f0a95 100644 --- a/cpu/atmega256rfr2/Makefile.features +++ b/cpu/atmega256rfr2/Makefile.features @@ -4,3 +4,6 @@ include $(RIOTCPU)/atmega_common/Makefile.features # additional PCINT for atmega256rfr2 FEATURES_PROVIDED += atmega_pcint1 + +# MCU has a peripheral network interface +FEATURES_PROVIDED += netif diff --git a/cpu/cc2538/Makefile.features b/cpu/cc2538/Makefile.features index 976e8c4e8a..b4a08c7297 100644 --- a/cpu/cc2538/Makefile.features +++ b/cpu/cc2538/Makefile.features @@ -15,4 +15,7 @@ FEATURES_PROVIDED += periph_wdt FEATURES_PROVIDED += cortexm_mpu +# MCU has a peripheral network interface +FEATURES_PROVIDED += netif + include $(RIOTCPU)/cortexm_common/Makefile.features diff --git a/cpu/esp_common/Makefile.features b/cpu/esp_common/Makefile.features index c15babdec8..6180672cdd 100644 --- a/cpu/esp_common/Makefile.features +++ b/cpu/esp_common/Makefile.features @@ -30,5 +30,8 @@ ifeq (rv32,$(CPU_ARCH)) FEATURES_PROVIDED += arch_esp_riscv endif +# All ESP* MCUs have a peripheral network interface +FEATURES_PROVIDED += netif + FEATURES_CONFLICT += esp_wifi_ap:esp_now FEATURES_CONFLICT_MSG += "ESP_NOW and ESP_WIFI_AP can not be used at the same time." diff --git a/cpu/nrf5x_common/Makefile.features b/cpu/nrf5x_common/Makefile.features index 2779a60656..806a925e81 100644 --- a/cpu/nrf5x_common/Makefile.features +++ b/cpu/nrf5x_common/Makefile.features @@ -33,6 +33,7 @@ ifeq (,$(filter nrf9160 nrf5340_app,$(CPU_MODEL))) FEATURES_PROVIDED += ble_nimble FEATURES_PROVIDED += radio_nrfble FEATURES_PROVIDED += radio_nrfmin + FEATURES_PROVIDED += netif endif include $(RIOTCPU)/cortexm_common/Makefile.features diff --git a/examples/default/Makefile b/examples/default/Makefile index 4442f7e724..81dbbe614c 100644 --- a/examples/default/Makefile +++ b/examples/default/Makefile @@ -34,20 +34,10 @@ USEMODULE += ps # include and auto-initialize all available sensors USEMODULE += saul_default -include $(RIOTBASE)/tests/Makefile.boards.netif -ifneq (,$(filter $(BOARD),$(BOARD_PROVIDES_NETIF))) - # Use modules for networking - # gnrc is a meta module including all required, basic gnrc networking modules - USEMODULE += gnrc - # use the default network interface for the board - USEMODULE += netdev_default - # automatically initialize the network interface - USEMODULE += auto_init_gnrc_netif - # shell command to send L2 packets with a simple string - USEMODULE += gnrc_txtsnd - # the application dumps received packets to stdout - USEMODULE += gnrc_pktdump -endif +# Use a network interface, if available. The handling is done in +# Makefile.board.dep, which is processed recursively as part of the dependency +# resolution. +FEATURES_OPTIONAL += netif FEATURES_OPTIONAL += periph_rtc @@ -58,14 +48,5 @@ endif include $(RIOTBASE)/Makefile.include -ifneq (,$(filter $(BOARD),$(BOARD_PROVIDES_NETIF))) - # We use only the lower layers of the GNRC network stack, hence, we can - # reduce the size of the packet buffer a bit - # Set GNRC_PKTBUF_SIZE via CFLAGS if not being set via Kconfig. - ifndef CONFIG_GNRC_PKTBUF_SIZE - CFLAGS += -DCONFIG_GNRC_PKTBUF_SIZE=512 - endif -endif - # Set a custom channel if needed include $(RIOTMAKE)/default-radio-settings.inc.mk diff --git a/examples/default/Makefile.board.dep b/examples/default/Makefile.board.dep new file mode 100644 index 0000000000..ca5f03cba7 --- /dev/null +++ b/examples/default/Makefile.board.dep @@ -0,0 +1,20 @@ +ifneq (,$(filter netif,$(FEATURES_USED))) + # Use modules for networking + # gnrc is a meta module including all required, basic gnrc networking modules + USEMODULE += gnrc + # use the default network interface for the board + USEMODULE += netdev_default + # automatically initialize the network interface + USEMODULE += auto_init_gnrc_netif + # shell command to send L2 packets with a simple string + USEMODULE += gnrc_txtsnd + # the application dumps received packets to stdout + USEMODULE += gnrc_pktdump + + # We use only the lower layers of the GNRC network stack, hence, we can + # reduce the size of the packet buffer a bit + # Set GNRC_PKTBUF_SIZE via CFLAGS if not being set via Kconfig. + ifndef CONFIG_GNRC_PKTBUF_SIZE + CFLAGS += -DCONFIG_GNRC_PKTBUF_SIZE=512 + endif +endif diff --git a/features.yaml b/features.yaml index 2acf51145c..ab6c595273 100644 --- a/features.yaml +++ b/features.yaml @@ -879,6 +879,8 @@ groups: features: - name: ethernet help: The board has Ethernet connectivity + - name: netif + help: The board has a network interface - name: highlevel_stdio help: A high-level stdio method (such as CDC ACM) is used. This requires a running thread and set-up and will not print during a crash. diff --git a/makefiles/features_existing.inc.mk b/makefiles/features_existing.inc.mk index efa9453602..57dcc500d2 100644 --- a/makefiles/features_existing.inc.mk +++ b/makefiles/features_existing.inc.mk @@ -132,6 +132,7 @@ FEATURES_EXISTING := \ highlevel_stdio \ libstdcpp \ motor_driver \ + netif \ newlib \ no_idle_thread \ periph_adc \ diff --git a/tests/Makefile.boards.netif b/tests/Makefile.boards.netif deleted file mode 100644 index 036c0f612f..0000000000 --- a/tests/Makefile.boards.netif +++ /dev/null @@ -1,63 +0,0 @@ -# Non-exhaustive list of BOARDs providing a net interface, extend as needed -# keeping alfabetical order -BOARD_PROVIDES_NETIF := \ - airfy-beacon \ - arduino-nano-33-ble \ - atmega256rfr2-xpro \ - avr-rss2 \ - b-l072z-lrwan1 \ - calliope-mini \ - cc2538dk \ - derfmega128 \ - derfmega256 \ - dwm1001 \ - esp32-wroom-32 \ - frdm-kw41z \ - generic-cc2538-cc2592-dk \ - hamilton \ - iotlab-a8-m3 \ - iotlab-m3 \ - lobaro-lorabox \ - lora-e5-dev \ - lsn50 \ - microbit \ - microbit-v2 \ - microduino-corerf \ - msba2 \ - mulle \ - native \ - native64 \ - nrf51dk \ - nrf51dongle \ - nrf52840-mdk \ - nrf52840dk \ - nrf52840dongle \ - nrf52dk \ - nrf6310 \ - nucleo-f207zg \ - nucleo-f429zi \ - nucleo-f439zi \ - nucleo-f767zi \ - nucleo-wl55jc \ - openlabs-kw41z-mini \ - openlabs-kw41z-mini-256kib \ - openmote-b \ - openmote-cc2538 \ - pba-d-01-kw2x \ - phynode-kw41z \ - remote-pa \ - remote-reva \ - ruuvitag \ - same54-xpro \ - samr21-xpro \ - samr30-xpro \ - spark-core \ - stm32f746g-disco \ - stm32f7508-dk \ - telosb \ - thingy52 \ - usb-kw41z \ - yunjia-nrf51822 \ - z1 \ - zigduino \ - # diff --git a/tests/net/netstats_l2/Makefile b/tests/net/netstats_l2/Makefile index 91fb7b9066..1de383edde 100644 --- a/tests/net/netstats_l2/Makefile +++ b/tests/net/netstats_l2/Makefile @@ -1,7 +1,6 @@ include ../Makefile.net_common -include $(RIOTBASE)/tests/Makefile.boards.netif -BOARD_WHITELIST += $(BOARD_PROVIDES_NETIF) +FEATURES_REQUIRED += netif USEMODULE += shell USEMODULE += shell_cmds_default diff --git a/tests/pkg/edhoc_c/Makefile b/tests/pkg/edhoc_c/Makefile index bc29f98798..f9804536ab 100644 --- a/tests/pkg/edhoc_c/Makefile +++ b/tests/pkg/edhoc_c/Makefile @@ -1,7 +1,6 @@ include ../Makefile.pkg_common -include $(RIOTBASE)/tests/Makefile.boards.netif -BOARD_WHITELIST += $(BOARD_PROVIDES_NETIF) +FEATURES_REQUIRED += netif # Cannot run the test on `murdock` in `native` # open(/dev/net/tun): No such file or directory TEST_ON_CI_BLACKLIST += native native64