Skip to content
Snippets Groups Projects
Commit 585e9a23 authored by Martine Lenders's avatar Martine Lenders
Browse files

examples: adapt border router for ZEP

parent 28aa90df
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,10 @@ ifeq (,$(filter native,$(BOARD))) ...@@ -28,6 +28,10 @@ ifeq (,$(filter native,$(BOARD)))
ETHOS_BAUDRATE ?= 115200 ETHOS_BAUDRATE ?= 115200
CFLAGS += -DETHOS_BAUDRATE=$(ETHOS_BAUDRATE) -DUSE_ETHOS_FOR_STDIO CFLAGS += -DETHOS_BAUDRATE=$(ETHOS_BAUDRATE) -DUSE_ETHOS_FOR_STDIO
FEATURES_REQUIRED += periph_uart FEATURES_REQUIRED += periph_uart
else
GNRC_NETIF_NUMOF := 2
TERMFLAGS += -z [::1]:17754
USEMODULE += socket_zep
endif endif
# SLIP legacy compatibility # SLIP legacy compatibility
...@@ -81,6 +85,14 @@ QUIET ?= 1 ...@@ -81,6 +85,14 @@ QUIET ?= 1
TAP ?= tap0 TAP ?= tap0
IPV6_PREFIX ?= 2001:db8::/64 IPV6_PREFIX ?= 2001:db8::/64
ifeq (native,$(BOARD))
TERMDEPS += uhcpd-daemon
.PHONY: uhcpd-daemon
uhcpd-daemon: host-tools
$(RIOTBASE)/dist/tools/uhcpd/bin/uhcpd $(TAP) $(IPV6_PREFIX) &
else
# We override the `make term` command to use ethos # We override the `make term` command to use ethos
TERMPROG ?= sudo sh $(RIOTBASE)/dist/tools/ethos/start_network.sh TERMPROG ?= sudo sh $(RIOTBASE)/dist/tools/ethos/start_network.sh
TERMFLAGS ?= $(PORT) $(TAP) $(IPV6_PREFIX) TERMFLAGS ?= $(PORT) $(TAP) $(IPV6_PREFIX)
...@@ -88,6 +100,7 @@ TERMFLAGS ?= $(PORT) $(TAP) $(IPV6_PREFIX) ...@@ -88,6 +100,7 @@ TERMFLAGS ?= $(PORT) $(TAP) $(IPV6_PREFIX)
# We depend on the ethos host tools to run the border router, we build them # We depend on the ethos host tools to run the border router, we build them
# if necessary # if necessary
TERMDEPS += host-tools TERMDEPS += host-tools
endif
include $(RIOTBASE)/Makefile.include include $(RIOTBASE)/Makefile.include
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment