nes-proj/tools/sky/uip6-bridge/Makefile
2017-09-22 14:34:20 +02:00

40 lines
779 B
Makefile

ifdef CONTIKI_HOME
CONTIKI = $(CONTIKI_HOME)
else
ifndef CONTIKI
CONTIKI=../../..
endif
endif
DEFINES=WITH_SLIP=1,PROJECT_CONF_H=\"bridge-conf.h\"
ifndef TARGET
TARGET=sky
endif
PROJECTDIRS = dev
PROJECT_SOURCEFILES = fakeuip.c sicslow_ethernet.c
all: uip6-bridge-tap.sky
upload: uip6-bridge-tap.ihex
cp $< $(IHEXFILE)
$(MAKE) sky-u.$(subst /,-,$(word $(MOTE), $(MOTES)))
include $(CONTIKI)/Makefile.include
../../tapslip6: ../../tapslip6.c
(cd ../../; $(MAKE) tapslip6)
ifndef MOTE
MOTE=1
endif
connect: ../../tapslip6
sudo ../../tapslip6 -t tap0 -s $(USBDEVPREFIX)$(word $(MOTE), $(CMOTES)) 127.0.0.1 255.0.0.0
bridge:
@sudo service radvd restart || echo radvd could not be restarted
sudo route add -6 fd00::/64 tap0
sudo ip -6 address add fd00::1/64 dev tap0