mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-02 19:29:30 +00:00
Support MOTEIDS for flashing, etc
This commit is contained in:
parent
ab4d2ecddd
commit
7213d36d63
@ -95,9 +95,15 @@ else
|
|||||||
BSL = $(CONTIKI)/tools/sky/msp430-bsl-linux --telosb
|
BSL = $(CONTIKI)/tools/sky/msp430-bsl-linux --telosb
|
||||||
BSL_FILETYPE = -I
|
BSL_FILETYPE = -I
|
||||||
endif
|
endif
|
||||||
MOTES = $(shell $(MOTELIST) 2>&- | grep USB | \
|
ifdef MOTEIDS
|
||||||
cut -f 4 -d \ | \
|
MOTES = $(foreach MOTEID, $(MOTEIDS), $(shell $(MOTELIST) 2>&- | grep $(MOTEID) | \
|
||||||
perl -ne 'print $$1 . " " if(m-(/dev/[\w+\.\-]+)-);')
|
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)
|
CMOTES=$(MOTES)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user