examples: only include gnrc for board with netif

This commit is contained in:
Oleg Hahm 2015-09-20 01:06:55 +02:00
parent d71abdf980
commit 0e3669b957

View File

@ -34,15 +34,21 @@ USEMODULE += shell_commands
USEMODULE += ps USEMODULE += ps
USEMODULE += config USEMODULE += config
# Use modules for networking BOARD_PROVIDES_NETIF := airfy-beacon fox iotlab-m3 mulle native nrf51dongle \
# gnrc is a meta module including all required, basic gnrc networking modules nrf6310 pba-d-01-kw2x pca10000 pca10005 saml21-xpro samr21-xpro spark-core \
USEMODULE += gnrc yunjia-nrf51822
# use the default network interface for the board
USEMODULE += gnrc_netif_default ifneq (,$(filter $(BOARD),$(BOARD_PROVIDES_NETIF)))
# automatically initialize the network interface # Use modules for networking
USEMODULE += auto_init_gnrc_netif # gnrc is a meta module including all required, basic gnrc networking modules
# the application dumps received packets to stdout USEMODULE += gnrc
USEMODULE += gnrc_pktdump # use the default network interface for the board
USEMODULE += gnrc_netif_default
# automatically initialize the network interface
USEMODULE += auto_init_gnrc_netif
# the application dumps received packets to stdout
USEMODULE += gnrc_pktdump
endif
FEATURES_OPTIONAL += config FEATURES_OPTIONAL += config
FEATURES_OPTIONAL += periph_rtc FEATURES_OPTIONAL += periph_rtc