2018-10-30 18:09:41 +01:00
|
|
|
DEVELHELP := 1
|
2016-03-01 11:28:55 +01:00
|
|
|
# name of your application
|
2017-01-20 15:46:53 +01:00
|
|
|
include ../Makefile.tests_common
|
2016-03-01 11:28:55 +01:00
|
|
|
|
2018-08-17 11:28:32 +02:00
|
|
|
BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove arduino-mega2560 arduino-uno \
|
2018-10-30 18:09:41 +01:00
|
|
|
hifive1 mega-xplained msb-430 msb-430h \
|
|
|
|
nucleo-f030r8 nucleo-f031k6 nucleo-f042k6 \
|
|
|
|
nucleo-f070rb nucleo-f072rb nucleo-f303k8 \
|
2018-07-31 18:04:01 +02:00
|
|
|
nucleo-f334r8 nucleo-l031k6 nucleo-l053r8 \
|
2018-10-30 18:09:41 +01:00
|
|
|
stm32f0discovery telosb thingy52 waspmote-pro \
|
|
|
|
wsn430-v1_3b wsn430-v1_4 z1
|
|
|
|
# chronos, mips-malta, and ruuvitag boards don't support ethos
|
|
|
|
BOARD_BLACKLIST := chronos mips-malta ruuvitag
|
|
|
|
|
|
|
|
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
|
2018-10-30 18:09:41 +01:00
|
|
|
ifeq (native,$(BOARD))
|
|
|
|
USEMODULE += netdev_tap
|
|
|
|
|
|
|
|
TERMFLAGS ?= $(TAP)
|
|
|
|
else
|
|
|
|
USEMODULE += ethos
|
|
|
|
|
|
|
|
ETHOS_BAUDRATE ?= 115200
|
|
|
|
CFLAGS += -DETHOS_BAUDRATE=$(ETHOS_BAUDRATE) -DUSE_ETHOS_FOR_STDIO
|
|
|
|
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
|
|
|
|
USEMODULE += gnrc_pktbuf_cmd
|
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
|
|
|
|
USEMODULE += shell_commands
|
2016-03-01 11:28:55 +01:00
|
|
|
USEMODULE += ps
|
|
|
|
|
2018-10-30 18:09:41 +01:00
|
|
|
# TEST_ON_CI_WHITELIST += 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:
|
|
|
|
$(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
|