Tidy-up renode for OS X and enable for all CC2538DK
This commit is contained in:
parent
dc453c8a60
commit
2ba54edaec
@ -37,3 +37,17 @@ else
|
|||||||
sort -g | head -1))
|
sort -g | head -1))
|
||||||
$(PYTHON) $(BSL) $(BSL_FLAGS) $(BSL_ADDRESS_ARG) $<
|
$(PYTHON) $(BSL) $(BSL_FLAGS) $(BSL_ADDRESS_ARG) $<
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(HOST_OS),Darwin)
|
||||||
|
RENODE = mono /Applications/Renode.app/Contents/MacOS/bin/Renode.exe
|
||||||
|
else
|
||||||
|
RENODE = renode
|
||||||
|
endif
|
||||||
|
|
||||||
|
SCRIPT ?= $(notdir $(CURDIR)).resc
|
||||||
|
|
||||||
|
.PHONY: renode
|
||||||
|
|
||||||
|
renode: all
|
||||||
|
$(RENODE) $(SCRIPT)
|
||||||
|
|
||||||
|
@ -1,20 +1,5 @@
|
|||||||
CONTIKI_PROJECT = udp-client udp-server
|
CONTIKI_PROJECT = udp-client udp-server
|
||||||
all: $(CONTIKI_PROJECT)
|
all: $(CONTIKI_PROJECT)
|
||||||
|
|
||||||
.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=../..
|
CONTIKI=../..
|
||||||
include $(CONTIKI)/Makefile.include
|
include $(CONTIKI)/Makefile.include
|
||||||
|
Loading…
Reference in New Issue
Block a user