1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

ng_net: add 6LoWPAN as dependency for IEEE 802.15.4 devices

Only applies if ng_ipv6 also was included.
This commit is contained in:
Martine Lenders 2015-05-09 16:39:23 +02:00
parent 8cb0e59283
commit 3acc8718f2
2 changed files with 29 additions and 4 deletions

View File

@ -56,6 +56,34 @@ ifneq (,$(filter ng_nomac,$(USEMODULE)))
USEMODULE += ng_netbase
endif
ifneq (,$(filter ng_at86rf2%,$(USEMODULE)))
USEMODULE += ng_at86rf2xx
USEMODULE += ng_ieee802154
endif
ifneq (,$(filter kw2xrf,$(USEMODULE)))
USEMODULE += ng_ieee802154
endif
ifneq (,$(filter xbee,$(USEMODULE)))
USEMODULE += ng_ieee802154
endif
ifneq (,$(filter ng_ieee802154,$(USEMODULE)))
ifneq (,$(filter ng_ipv6, $(USEMODULE)))
USEMODULE += ng_sixlowpan
endif
ifneq (,$(filter ng_ipv6_router, $(USEMODULE)))
USEMODULE += ng_sixlowpan # TODO: replace with ng_sixlowpan_router
endif
ifneq (,$(filter ng_ipv6_default, $(USEMODULE)))
USEMODULE += ng_sixlowpan_default
endif
ifneq (,$(filter ng_ipv6_router_default, $(USEMODULE)))
USEMODULE += ng_sixlowpan_default # TODO: replace with ng_sixlowpan_router_default
endif
endif
ifneq (,$(filter ng_sixlowpan_default,$(USEMODULE)))
USEMODULE += ng_ipv6_default
USEMODULE += ng_sixlowpan
@ -246,10 +274,6 @@ ifneq (,$(filter oonf_common,$(USEMODULE)))
USEMODULE += socket_base
endif
ifneq (,$(filter ng_at86rf2%,$(USEMODULE)))
USEMODULE += ng_at86rf2xx
endif
# if any log_* is used, also use LOG pseudomodule
ifneq (,$(filter log_%,$(USEMODULE)))
USEMODULE += log

View File

@ -1,5 +1,6 @@
PSEUDOMODULES += defaulttransceiver
PSEUDOMODULES += transport_layer
PSEUDOMODULES += ng_ieee802154
PSEUDOMODULES += ng_ipv6_default
PSEUDOMODULES += ng_ipv6_router
PSEUDOMODULES += ng_ipv6_router_default