From 0e3669b957fc42e80c2726b7c57e344ef592b96f Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Sun, 20 Sep 2015 01:06:55 +0200 Subject: [PATCH] examples: only include gnrc for board with netif --- examples/default/Makefile | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/examples/default/Makefile b/examples/default/Makefile index b61bb5912..721c5f18c 100644 --- a/examples/default/Makefile +++ b/examples/default/Makefile @@ -34,15 +34,21 @@ USEMODULE += shell_commands USEMODULE += ps USEMODULE += config -# Use modules for networking -# gnrc is a meta module including all required, basic gnrc networking modules -USEMODULE += gnrc -# 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 +BOARD_PROVIDES_NETIF := airfy-beacon fox iotlab-m3 mulle native nrf51dongle \ + nrf6310 pba-d-01-kw2x pca10000 pca10005 saml21-xpro samr21-xpro spark-core \ + yunjia-nrf51822 + +ifneq (,$(filter $(BOARD),$(BOARD_PROVIDES_NETIF))) + # Use modules for networking + # gnrc is a meta module including all required, basic gnrc networking modules + USEMODULE += gnrc + # 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 += periph_rtc