2017-03-05 23:57:19 +01:00
|
|
|
include ../Makefile.tests_common
|
|
|
|
|
|
|
|
RIOTBASE ?= $(CURDIR)/../..
|
|
|
|
|
2019-01-29 12:19:37 +01:00
|
|
|
export TAP ?= tap0
|
2017-03-05 23:57:19 +01:00
|
|
|
|
|
|
|
USEMODULE += sock_dns
|
|
|
|
USEMODULE += gnrc_sock_udp
|
|
|
|
USEMODULE += gnrc_ipv6_default
|
2018-02-26 17:37:14 +01:00
|
|
|
USEMODULE += gnrc_ipv6_nib_dns
|
2019-01-29 12:19:37 +01:00
|
|
|
# use Ethernet as link-layer protocol
|
|
|
|
ifeq (native,$(BOARD))
|
|
|
|
TERMFLAGS ?= $(TAP)
|
|
|
|
else
|
|
|
|
ETHOS_BAUDRATE ?= 115200
|
2019-06-06 11:04:26 +02:00
|
|
|
CFLAGS += -DETHOS_BAUDRATE=$(ETHOS_BAUDRATE)
|
2019-01-29 12:19:37 +01:00
|
|
|
TERMDEPS += ethos
|
|
|
|
TERMPROG ?= sudo $(RIOTTOOLS)/ethos/ethos
|
|
|
|
TERMFLAGS ?= $(TAP) $(PORT) $(ETHOS_BAUDRATE)
|
|
|
|
endif
|
2017-03-05 23:57:19 +01:00
|
|
|
USEMODULE += auto_init_gnrc_netif
|
|
|
|
|
2019-01-29 12:19:37 +01:00
|
|
|
USEMODULE += shell
|
2017-03-05 23:57:19 +01:00
|
|
|
USEMODULE += shell_commands
|
|
|
|
|
2018-11-09 15:04:45 +01:00
|
|
|
USEMODULE += posix_inet
|
2017-03-05 23:57:19 +01:00
|
|
|
|
2018-02-27 14:31:53 +01:00
|
|
|
LOW_MEMORY_BOARDS := nucleo-f334r8 msb-430 msb-430h
|
2017-03-05 23:57:19 +01:00
|
|
|
|
|
|
|
ifeq ($(BOARD),$(filter $(BOARD),$(LOW_MEMORY_BOARDS)))
|
2020-01-08 11:05:46 +01:00
|
|
|
CFLAGS += -DGNRC_PKTBUF_SIZE=512 -DCONFIG_GNRC_NETIF_IPV6_ADDRS_NUMOF=2 \
|
2017-11-30 17:59:03 +01:00
|
|
|
-DGNRC_NETIF_IPV6_GROUPS_NUMOF=2 -DGNRC_IPV6_NIB_NUMOF=1 \
|
|
|
|
-DNRC_IPV6_NIB_OFFL_NUMOF=1
|
2017-03-05 23:57:19 +01:00
|
|
|
endif
|
|
|
|
|
2019-06-12 18:33:56 +02:00
|
|
|
# The test requires some setup and to be run as root
|
|
|
|
# So it cannot currently be run
|
|
|
|
TEST_ON_CI_BLACKLIST += all
|
2019-01-29 12:19:37 +01:00
|
|
|
|
|
|
|
.PHONY: ethos
|
|
|
|
|
|
|
|
ethos:
|
|
|
|
$(Q)env -u CC -u CFLAGS make -C $(RIOTTOOLS)/ethos
|
|
|
|
|
2017-03-05 23:57:19 +01:00
|
|
|
include $(RIOTBASE)/Makefile.include
|