2017-03-28 10:51:23 +02:00
|
|
|
include ../Makefile.tests_common
|
2016-02-04 14:37:35 +01:00
|
|
|
|
|
|
|
# If no BOARD is found in the environment, use this default:
|
|
|
|
BOARD ?= native
|
2019-02-05 12:17:50 +01:00
|
|
|
|
|
|
|
ifeq (native,$(BOARD))
|
|
|
|
PORT ?= tap1
|
|
|
|
endif
|
2016-02-04 14:37:35 +01:00
|
|
|
|
2019-02-06 19:43:04 +01:00
|
|
|
TCP_SERVER_ADDR ?= 2001:db8::affe:0001
|
|
|
|
TCP_SERVER_PORT ?= 80
|
|
|
|
TCP_CLIENT_ADDR ?= 2001:db8::affe:0002
|
2017-03-06 08:47:06 +01:00
|
|
|
TCP_TEST_CYCLES ?= 3
|
2016-02-04 14:37:35 +01:00
|
|
|
|
|
|
|
# Mark Boards with insufficient memory
|
2017-03-13 18:27:50 +01:00
|
|
|
BOARD_INSUFFICIENT_MEMORY := airfy-beacon arduino-duemilanove arduino-mega2560 \
|
2018-04-16 22:35:32 +02:00
|
|
|
arduino-uno calliope-mini chronos hifive1 mega-xplained microbit \
|
2018-11-17 09:56:08 +01:00
|
|
|
msb-430 msb-430h nrf51dk nrf51dongle nrf6310 nucleo-f031k6 \
|
2018-05-23 12:51:41 +02:00
|
|
|
nucleo-f042k6 nucleo-f303k8 nucleo-l031k6 nucleo-f030r8 \
|
2018-02-27 14:37:17 +01:00
|
|
|
nucleo-f070rb nucleo-f072rb nucleo-f302r8 nucleo-f334r8 nucleo-l053r8 \
|
2019-01-21 17:11:32 +01:00
|
|
|
saml10-xpro saml11-xpro sb-430 sb-430h stm32f0discovery telosb \
|
2018-08-17 11:28:32 +02:00
|
|
|
waspmote-pro wsn430-v1_3b wsn430-v1_4 yunjia-nrf51822 z1
|
2016-02-04 14:37:35 +01:00
|
|
|
|
|
|
|
# Target Address, Target Port and number of Test Cycles
|
2019-02-06 19:43:04 +01:00
|
|
|
CFLAGS += -DSERVER_ADDR=\"$(TCP_SERVER_ADDR)\"
|
|
|
|
CFLAGS += -DSERVER_PORT=$(TCP_SERVER_PORT)
|
|
|
|
CFLAGS += -DCLIENT_ADDR=\"$(TCP_CLIENT_ADDR)\"
|
2016-02-04 14:37:35 +01:00
|
|
|
CFLAGS += -DCYCLES=$(TCP_TEST_CYCLES)
|
2018-05-11 10:06:14 +02:00
|
|
|
CFLAGS += -DGNRC_NETIF_IPV6_GROUPS_NUMOF=3
|
2019-02-06 19:43:04 +01:00
|
|
|
CFLAGS += -DGNRC_IPV6_NIB_CONF_ARSM=1
|
|
|
|
CFLAGS += -DGNRC_IPV6_NIB_CONF_QUEUE_PKT=1
|
2016-02-04 14:37:35 +01:00
|
|
|
|
|
|
|
# Modules to include
|
|
|
|
USEMODULE += gnrc_netdev_default
|
|
|
|
USEMODULE += auto_init_gnrc_netif
|
|
|
|
USEMODULE += gnrc_ipv6_default
|
|
|
|
USEMODULE += gnrc_tcp
|
|
|
|
|
2019-02-06 19:43:04 +01:00
|
|
|
# include this for IP address manipulation
|
|
|
|
USEMODULE += shell_commands
|
|
|
|
|
2016-02-04 14:37:35 +01:00
|
|
|
include $(RIOTBASE)/Makefile.include
|