Skip to content
Snippets Groups Projects
Commit 6db9bafa authored by Gaëtan Harter's avatar Gaëtan Harter Committed by dylad
Browse files

nordic_softdevice_ble: print when removing router modules

Add a warning message in user's console to inform them routing capabilities will
be disabled with the softdevice
parent d4661af4
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,12 @@ ifneq (,$(filter nordic_softdevice_ble,$(USEPKG)))
USEMODULE += gnrc_ipv6_default
# prevent application from being a router
# TODO: maybe find a nicer solution in future build system update
USEMODULE := $(filter-out gnrc_ipv6_router% gnrc_rpl netstats_rpl auto_init_gnrc_rpl,$(USEMODULE))
_ROUTER_MODULES = gnrc_ipv6_router% gnrc_rpl netstats_rpl auto_init_gnrc_rpl
ifneq (,$(filter $(_ROUTER_MODULES),$(USEMODULE)))
$(warning nordic_softdevice_ble: Disabling router modules:\
$(filter $(_ROUTER_MODULES),$(USEMODULE)))
endif
USEMODULE := $(filter-out $(_ROUTER_MODULES),$(USEMODULE))
endif
ifneq (,$(filter gnrc_%,$(filter-out gnrc_netapi gnrc_netreg gnrc_netif% gnrc_pkt%,$(USEMODULE))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment