Add renode target in rpl-udp Makefile

To run Renode with the rpl-udp demo, run the following command:

make renode TARGET=cc2538dk SCRIPT=rpl-udp
This commit is contained in:
Piotr Zierhoffer 2017-11-01 21:02:21 +01:00
parent da2f84db19
commit 6a70bbe013
1 changed files with 15 additions and 0 deletions

View File

@ -1,4 +1,19 @@
all: udp-client udp-server
.PHONY: renode
renode: all
ifneq ($(TARGET),cc2538dk)
$(error Only the cc2538dk TARGET is supported for Renode demo scripts)
endif
ifndef SCRIPT
$(warning SCRIPT not defined! Using "rpl-udp.resc" as default)
renode rpl-udp.resc
else
ifeq ($(wildcard $(SCRIPT)),)
$(error SCRIPT "$(SCRIPT)" does not exist!)
endif
renode $(SCRIPT)
endif
CONTIKI=../..
include $(CONTIKI)/Makefile.include