From 7213d36d639e9170f3e8dee8703fbf3ca4ed9252 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20=27Morty=27=20Str=C3=BCbe?= Date: Tue, 11 Dec 2012 12:09:28 +0100 Subject: [PATCH] Support MOTEIDS for flashing, etc --- platform/sky/Makefile.common | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/platform/sky/Makefile.common b/platform/sky/Makefile.common index bfc32b09d..d133464ba 100644 --- a/platform/sky/Makefile.common +++ b/platform/sky/Makefile.common @@ -95,9 +95,15 @@ else BSL = $(CONTIKI)/tools/sky/msp430-bsl-linux --telosb BSL_FILETYPE = -I endif - MOTES = $(shell $(MOTELIST) 2>&- | grep USB | \ - cut -f 4 -d \ | \ - perl -ne 'print $$1 . " " if(m-(/dev/[\w+\.\-]+)-);') + 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