diff --git a/boards/common/nrf52/Makefile.dep b/boards/common/nrf52/Makefile.dep index c1c5d218e3..4c430335cc 100644 --- a/boards/common/nrf52/Makefile.dep +++ b/boards/common/nrf52/Makefile.dep @@ -7,3 +7,9 @@ endif ifneq (,$(filter saul_default,$(USEMODULE))) USEMODULE += saul_nrf_temperature endif + +ifneq (,$(filter gnrc_netdev_default,$(USEMODULE))) + ifeq (,$(filter nordic_softdevice_ble nrfmin nrf802154,$(USEMODULE) $(USEPKG))) + USEMODULE += nimble_netif + endif +endif diff --git a/boards/nrf52dk/Makefile.dep b/boards/nrf52dk/Makefile.dep index 6ea229d650..68628f406a 100644 --- a/boards/nrf52dk/Makefile.dep +++ b/boards/nrf52dk/Makefile.dep @@ -1,7 +1 @@ include $(RIOTBOARD)/common/nrf52xxxdk/Makefile.dep - -ifeq (,$(filter nrfmin nimble_netif,$(USEMODULE))) - ifneq (,$(filter gnrc_netdev_default,$(USEMODULE))) - USEPKG += nordic_softdevice_ble - endif -endif