Added SERIALDUMP variable pointing to the serialdump executable
This commit is contained in:
parent
44480fc7b7
commit
261254b22d
|
@ -4,6 +4,7 @@ IHEXFILE=tmpimage.ihex
|
||||||
# Check if we are running under Windows
|
# Check if we are running under Windows
|
||||||
ifdef OS
|
ifdef OS
|
||||||
ifneq (,$(findstring Windows,$(OS)))
|
ifneq (,$(findstring Windows,$(OS)))
|
||||||
|
SERIALDUMP = $(CONTIKI)/tools/sky/serialdump-windows
|
||||||
MOTELIST = $(CONTIKI)/tools/sky/motelist-windows
|
MOTELIST = $(CONTIKI)/tools/sky/motelist-windows
|
||||||
BSL = $(CONTIKI)/tools/sky/msp430-bsl-windows
|
BSL = $(CONTIKI)/tools/sky/msp430-bsl-windows
|
||||||
MOTES = $(shell $(MOTELIST) | grep COM | \
|
MOTES = $(shell $(MOTELIST) | grep COM | \
|
||||||
|
@ -17,6 +18,7 @@ endif
|
||||||
|
|
||||||
# If we are not running under Windows, we assume Linux
|
# If we are not running under Windows, we assume Linux
|
||||||
ifndef MOTELIST
|
ifndef MOTELIST
|
||||||
|
SERIALDUMP = $(CONTIKI)/tools/sky/serialdump-linux
|
||||||
MOTELIST = $(CONTIKI)/tools/sky/motelist-linux
|
MOTELIST = $(CONTIKI)/tools/sky/motelist-linux
|
||||||
BSL = $(CONTIKI)/tools/sky/msp430-bsl-linux
|
BSL = $(CONTIKI)/tools/sky/msp430-bsl-linux
|
||||||
MOTES = $(shell $(MOTELIST) | grep USB | \
|
MOTES = $(shell $(MOTELIST) | grep USB | \
|
||||||
|
@ -30,7 +32,7 @@ sky-motelist:
|
||||||
sky-motes:
|
sky-motes:
|
||||||
echo $(MOTES)
|
echo $(MOTES)
|
||||||
|
|
||||||
%.upload: %.ihex
|
%.upload: %.ihex sky-reset
|
||||||
cp $< $(IHEXFILE)
|
cp $< $(IHEXFILE)
|
||||||
$(MAKE) sky-upload
|
$(MAKE) sky-upload
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue