Support MOTEIDS for flashing, etc
This commit is contained in:
parent
ab4d2ecddd
commit
7213d36d63
1 changed files with 9 additions and 3 deletions
|
@ -95,9 +95,15 @@ else
|
|||
BSL = $(CONTIKI)/tools/sky/msp430-bsl-linux --telosb
|
||||
BSL_FILETYPE = -I
|
||||
endif
|
||||
ifdef MOTEIDS
|
||||
MOTES = $(foreach MOTEID, $(MOTEIDS), $(shell $(MOTELIST) 2>&- | grep $(MOTEID) | \
|
||||
cut -f 4 -d \ | \
|
||||
perl -ne 'print $$1 . " " if(m-(/dev/[\w+\.\-]+)-);')
|
||||
else
|
||||
MOTES = $(shell $(MOTELIST) 2>&- | grep USB | \
|
||||
cut -f 4 -d \ | \
|
||||
perl -ne 'print $$1 . " " if(m-(/dev/[\w+\.\-]+)-);')
|
||||
endif
|
||||
CMOTES=$(MOTES)
|
||||
endif
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue