mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-08-15 12:27:50 +00:00
Added SERIALDUMP variable pointing to the serialdump executable
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user