From 459f3987d0972de6cab80a4246955f1c0d95ff01 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Mon, 16 Aug 2021 00:03:41 +0200 Subject: [PATCH] gnrc: select gnrc_netif if netdev_default is selected A generic application might select netdev_default instead of gnrc_netdev_default to pull in the default network interface. So pull in gnrc_netif if netdev_default is selected with GNRC. --- makefiles/deprecated_modules.inc.mk | 1 + sys/net/gnrc/Makefile.dep | 3 +++ 2 files changed, 4 insertions(+) diff --git a/makefiles/deprecated_modules.inc.mk b/makefiles/deprecated_modules.inc.mk index 05d49d2083..6bdbc5c007 100644 --- a/makefiles/deprecated_modules.inc.mk +++ b/makefiles/deprecated_modules.inc.mk @@ -1,3 +1,4 @@ # Add deprecated modules here # Keep this list ALPHABETICALLY SORTED!!!!111elven DEPRECATED_MODULES += event_thread_lowest +DEPRECATED_MODULES += gnrc_netdev_default diff --git a/sys/net/gnrc/Makefile.dep b/sys/net/gnrc/Makefile.dep index 05c501eabd..a5d0151a0b 100644 --- a/sys/net/gnrc/Makefile.dep +++ b/sys/net/gnrc/Makefile.dep @@ -35,6 +35,9 @@ endif ifneq (,$(filter gnrc_netdev_default,$(USEMODULE))) # enable default network devices on the platform USEMODULE += netdev_default +endif + +ifneq (,$(filter netdev_default,$(USEMODULE))) USEMODULE += netdev USEMODULE += gnrc_netif endif