1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

shell_commands/gnrc_netif: fix gnrc_netif_cmd_lora dependency

This commit fixes the dependency resolution of `gnrc_netif_cmd_lora`.
As it was, this module was pulled by the driver if `gnrc` was used.
Besides pulling an extra dependency in applications that don't use
`shell_commands` or `gnrc_lorawan`, this hardcodes the module
resolution in the drivers.

This commit pulls `gnrc_netif_cmd_lora` if `shell_commands` and
`gnrc_lorawan` are present.
This commit is contained in:
Jose Alamos 2021-07-09 13:29:07 +02:00
parent 03670e6e86
commit c8f9d85002
No known key found for this signature in database
GPG Key ID: F483EB800EF89DD9
2 changed files with 4 additions and 5 deletions

View File

@ -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

View File

@ -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)))