mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
include ../Makefile.net_common
|
|
|
|
RIOTBASE ?= $(CURDIR)/../..
|
|
|
|
export TAP ?= tap0
|
|
|
|
USEMODULE += sock_dns
|
|
|
|
USEMODULE += gnrc_ipv6_default
|
|
USEMODULE += gnrc_ipv6_nib_dns
|
|
# use Ethernet as link-layer protocol
|
|
ifeq (native,$(BOARD))
|
|
TERMFLAGS ?= $(TAP)
|
|
else
|
|
ETHOS_BAUDRATE ?= 115200
|
|
CFLAGS += -DETHOS_BAUDRATE=$(ETHOS_BAUDRATE)
|
|
TERMDEPS += ethos
|
|
TERMPROG ?= sudo $(RIOTTOOLS)/ethos/ethos
|
|
TERMFLAGS ?= $(TAP) $(PORT) $(ETHOS_BAUDRATE)
|
|
endif
|
|
USEMODULE += auto_init_gnrc_netif
|
|
|
|
USEMODULE += shell
|
|
USEMODULE += shell_cmds_default
|
|
|
|
USEMODULE += posix_inet
|
|
|
|
LOW_MEMORY_BOARDS := nucleo-f334r8 msb-430 msb-430h
|
|
|
|
# The test requires some setup and to be run as root
|
|
# So it cannot currently be run
|
|
TEST_ON_CI_BLACKLIST += all
|
|
|
|
.PHONY: ethos
|
|
|
|
ethos:
|
|
$(Q)env -u CC -u CFLAGS $(MAKE) -C $(RIOTTOOLS)/ethos
|
|
|
|
include $(RIOTBASE)/Makefile.include
|
|
|
|
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
|