From 6db9bafae559d959fa80405025fc0d11801641d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= <gaetan.harter@fu-berlin.de> Date: Mon, 29 Jan 2018 12:03:54 +0100 Subject: [PATCH] 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 --- Makefile.dep | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile.dep b/Makefile.dep index 8d9127e683..fdf45f1a7d 100644 --- a/Makefile.dep +++ b/Makefile.dep @@ -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)))) -- GitLab