mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
pkg/nordic-softdevice: define dependencies in package
This commit is contained in:
parent
2b3a9d0e4b
commit
7a1859d660
19
Makefile.dep
19
Makefile.dep
@ -106,25 +106,6 @@ ifneq (,$(filter uhcpc,$(USEMODULE)))
|
||||
USEMODULE += posix_inet
|
||||
endif
|
||||
|
||||
ifneq (,$(filter nordic_softdevice_ble,$(USEPKG)))
|
||||
FEATURES_REQUIRED += ble_nordic_softdevice
|
||||
USEMODULE += softdevice_handler
|
||||
USEMODULE += ble_common
|
||||
USEMODULE += ble_6lowpan
|
||||
USEMODULE += gnrc_sixlowpan
|
||||
USEMODULE += gnrc_sixlowpan_iphc
|
||||
USEMODULE += gnrc_ipv6_nib_6ln
|
||||
USEMODULE += gnrc_ipv6_default
|
||||
# prevent application from being a router
|
||||
# TODO: maybe find a nicer solution in future build system update
|
||||
_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))))
|
||||
USEMODULE += gnrc
|
||||
endif
|
||||
|
18
pkg/nordic_softdevice_ble/Makefile.dep
Normal file
18
pkg/nordic_softdevice_ble/Makefile.dep
Normal file
@ -0,0 +1,18 @@
|
||||
FEATURES_REQUIRED += ble_nordic_softdevice
|
||||
USEMODULE += softdevice_handler
|
||||
USEMODULE += ble_common
|
||||
USEMODULE += ble_6lowpan
|
||||
USEMODULE += gnrc_sixlowpan
|
||||
USEMODULE += gnrc_sixlowpan_iphc
|
||||
USEMODULE += gnrc_ipv6_nib_6ln
|
||||
USEMODULE += gnrc_ipv6_default
|
||||
|
||||
# prevent application from being a router
|
||||
# TODO: maybe find a nicer solution in future build system update
|
||||
_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))
|
Loading…
Reference in New Issue
Block a user