Blame view

RIOT/tests/gnrc_udp/Makefile 1.41 KB
a752c7ab   elopes   add first test an...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
  # name of your application
  APPLICATION = gnrc_udp
  include ../Makefile.tests_common
  
  BOARD_INSUFFICIENT_MEMORY := calliope-mini chronos microbit msb-430 msb-430h \
                               nucleo32-f031 nucleo32-f042 nucleo32-f303 nucleo32-l031 \
                               nucleo-f030 nucleo-f070 nucleo-f072 nucleo-f103 nucleo-f302 \
                               nucleo-f334 nucleo-l053 spark-core stm32f0discovery telosb \
                               wsn430-v1_3b wsn430-v1_4 z1
  
  USEMODULE += gnrc_netdev_default
  USEMODULE += auto_init_gnrc_netif
  USEMODULE += gnrc_ipv6_router_default
  USEMODULE += gnrc_udp
  USEMODULE += gnrc_rpl
  USEMODULE += auto_init_gnrc_rpl
  USEMODULE += od
  USEMODULE += gnrc_icmpv6_echo
  USEMODULE += shell
  USEMODULE += shell_commands
  USEMODULE += ps
  USEMODULE += netstats_l2
  USEMODULE += netstats_ipv6
  
  CFLAGS += -DDEVELHELP
  
  include $(RIOTBASE)/Makefile.include
  
  # Set a custom channel if needed
  ifneq (,$(filter cc110x,$(USEMODULE)))          # radio is cc110x sub-GHz
    DEFAULT_CHANNEL ?= 0
    CFLAGS += -DCC110X_DEFAULT_CHANNEL=$(DEFAULT_CHANNEL)
  else
    ifneq (,$(filter at86rf212b,$(USEMODULE)))    # radio is IEEE 802.15.4 sub-GHz
      DEFAULT_CHANNEL ?= 5
      FLAGS += -DIEEE802154_DEFAULT_SUBGHZ_CHANNEL=$(DEFAULT_CHANNEL)
    else                                          # radio is IEEE 802.15.4 2.4 GHz
      DEFAULT_CHANNEL ?= 26
      CFLAGS += -DIEEE802154_DEFAULT_CHANNEL=$(DEFAULT_CHANNEL)
    endif
  endif