diff --git a/drivers/sx127x/Makefile.dep b/drivers/sx127x/Makefile.dep index 2b79600317..3b0cd904ad 100644 --- a/drivers/sx127x/Makefile.dep +++ b/drivers/sx127x/Makefile.dep @@ -7,8 +7,3 @@ USEMODULE += ztimer_usec USEMODULE += ztimer_msec USEMODULE += lora - -ifneq (,$(filter gnrc,$(USEMODULE))) - # Pull in `ifconfig` support for LoRA - USEMODULE += gnrc_netif_cmd_lora -endif diff --git a/sys/Makefile.dep b/sys/Makefile.dep index 9e1bd58772..8a4322f76f 100644 --- a/sys/Makefile.dep +++ b/sys/Makefile.dep @@ -262,6 +262,10 @@ ifneq (,$(filter shell_commands,$(USEMODULE))) USEMODULE += netif USEMODULE += ipv6_addr endif + + ifneq (,$(filter gnrc_lorawan,$(USEMODULE))) + USEMODULE += gnrc_netif_cmd_lora + endif endif ifneq (,$(filter posix_semaphore,$(USEMODULE)))