2023-05-12 11:31:32 +02:00
|
|
|
include ../Makefile.net_common
|
2017-03-05 23:57:19 +01:00
|
|
|
|
|
|
|
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_ipv6_default
|
2018-02-26 17:37:14 +01:00
|
|
|
USEMODULE += gnrc_ipv6_nib_dns
|
2020-07-28 12:06:17 +02:00
|
|
|
USEMODULE += gnrc_netif_single # Only one interface used and it makes
|
|
|
|
# shell commands easier
|
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
|
2022-08-16 16:35:20 +02:00
|
|
|
USEMODULE += shell_cmds_default
|
2017-03-05 23:57:19 +01:00
|
|
|
|
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
|
|
|
|
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:
|
2020-07-03 11:17:57 +02:00
|
|
|
$(Q)env -u CC -u CFLAGS $(MAKE) -C $(RIOTTOOLS)/ethos
|
2019-01-29 12:19:37 +01:00
|
|
|
|
2017-03-05 23:57:19 +01:00
|
|
|
include $(RIOTBASE)/Makefile.include
|
2020-10-16 10:37:52 +02:00
|
|
|
|
|
|
|
ifeq ($(BOARD),$(filter $(BOARD),$(LOW_MEMORY_BOARDS)))
|
|
|
|
# Set GNRC_PKTBUF_SIZE via CFLAGS if not being set via Kconfig.
|
|
|
|
ifndef CONFIG_GNRC_PKTBUF_SIZE
|
|
|
|
CFLAGS += -DCONFIG_GNRC_PKTBUF_SIZE=512
|
|
|
|
endif
|
|
|
|
CFLAGS += -DCONFIG_GNRC_NETIF_IPV6_ADDRS_NUMOF=2 \
|
|
|
|
-DGNRC_NETIF_IPV6_GROUPS_NUMOF=2 -DCONFIG_GNRC_IPV6_NIB_NUMOF=1 \
|
|
|
|
-DCONFIG_GNRC_IPV6_NIB_OFFL_NUMOF=1
|
|
|
|
endif
|