Support MOTEIDS for flashing, etc

This commit is contained in:
Moritz 'Morty' Strübe 2012-12-11 12:09:28 +01:00
parent ab4d2ecddd
commit 7213d36d63

View file

@ -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