2018-10-30 18:09:41 +01:00
|
|
|
DEVELHELP := 1
|
2016-03-01 11:28:55 +01:00
|
|
|
# name of your application
|
2023-05-12 11:31:32 +02:00
|
|
|
include ../Makefile.net_common
|
2016-03-01 11:28:55 +01:00
|
|
|
|
2018-10-30 18:09:41 +01:00
|
|
|
export TAP ?= tap0
|
2016-03-01 11:28:55 +01:00
|
|
|
|
2018-07-31 18:04:01 +02:00
|
|
|
# use Ethernet as link-layer protocol
|
2024-02-01 13:55:02 +01:00
|
|
|
ifneq (,$(filter native native64,$(BOARD)))
|
2023-12-13 21:13:13 +01:00
|
|
|
PORT ?= $(TAP)
|
2018-10-30 18:09:41 +01:00
|
|
|
else
|
|
|
|
ETHOS_BAUDRATE ?= 115200
|
2019-06-06 11:04:26 +02:00
|
|
|
CFLAGS += -DETHOS_BAUDRATE=$(ETHOS_BAUDRATE)
|
2018-10-30 18:09:41 +01:00
|
|
|
TERMDEPS += ethos
|
|
|
|
TERMPROG ?= sudo $(RIOTTOOLS)/ethos/ethos
|
|
|
|
TERMFLAGS ?= $(TAP) $(PORT) $(ETHOS_BAUDRATE)
|
|
|
|
endif
|
|
|
|
USEMODULE += auto_init_gnrc_netif
|
2016-03-01 11:28:55 +01:00
|
|
|
# Specify the mandatory networking modules for IPv6
|
|
|
|
USEMODULE += gnrc_ipv6_router_default
|
2018-10-30 18:09:41 +01:00
|
|
|
USEMODULE += gnrc_icmpv6_error
|
|
|
|
USEMODULE += gnrc_pktdump
|
2022-09-24 14:50:43 +02:00
|
|
|
USEMODULE += shell_cmd_gnrc_pktbuf
|
2016-03-01 11:28:55 +01:00
|
|
|
# IPv6 extension headers
|
|
|
|
USEMODULE += gnrc_ipv6_ext
|
2018-10-30 18:09:41 +01:00
|
|
|
USEMODULE += od
|
2016-03-01 11:28:55 +01:00
|
|
|
# Add also the shell, some shell commands
|
2018-10-30 18:09:41 +01:00
|
|
|
USEMODULE += shell
|
2022-08-16 16:35:20 +02:00
|
|
|
USEMODULE += shell_cmds_default
|
2016-03-01 11:28:55 +01:00
|
|
|
USEMODULE += ps
|
|
|
|
|
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
|
2018-01-17 16:25:26 +01:00
|
|
|
|
2018-10-30 18:09:41 +01:00
|
|
|
.PHONY: ethos
|
2018-07-31 18:04:01 +02:00
|
|
|
|
2018-10-30 18:09:41 +01:00
|
|
|
ethos:
|
2020-07-03 11:17:57 +02:00
|
|
|
$(Q)env -u CC -u CFLAGS $(MAKE) -C $(RIOTTOOLS)/ethos
|
2016-03-01 11:28:55 +01:00
|
|
|
|
2018-07-12 23:19:51 +02:00
|
|
|
include $(RIOTBASE)/Makefile.include
|