From b730fb329db8597a1f7be5e88081bf2b2b40f753 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Thu, 2 Apr 2009 11:15:30 +0000 Subject: [PATCH] changed upload rules due to problems on linux platforms --- platform/sky/Makefile.sky | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/platform/sky/Makefile.sky b/platform/sky/Makefile.sky index 53193e8d6..cb7b982ef 100644 --- a/platform/sky/Makefile.sky +++ b/platform/sky/Makefile.sky @@ -1,4 +1,4 @@ -# $Id: Makefile.sky,v 1.22 2009/03/26 13:29:44 fros4943 Exp $ +# $Id: Makefile.sky,v 1.23 2009/04/02 11:15:30 fros4943 Exp $ ARCH=msp430.c leds.c watchdog.c light.c spi.c ds2411.c \ @@ -74,25 +74,25 @@ sky-motes: sky-upload: sky-reset $(MAKE) -j $(NUMPAR) sky-upload-sequence -sky-upload-sequence: $(foreach PORT, $(MOTES), sky-u.$(PORT)) +sky-upload-sequence: $(foreach PORT, $(MOTES), sky-u.$(subst /,-,$(PORT))) @echo Done sky-reset: $(MAKE) -k -j $(NUMPAR) sky-reset-sequence -sky-reset-sequence: $(foreach PORT, $(MOTES), sky-r.$(PORT)) +sky-reset-sequence: $(foreach PORT, $(MOTES), sky-r.$(subst /,-,$(PORT))) @echo Done sky-u.%: - @echo +++++ Erasing $* ; \ - $(BSL) -c $* -e && sleep 2 ; \ - echo +++++ Programming $* ; \ - $(BSL) -c $* $(BSL_FILETYPE) -p $(IHEXFILE) && sleep 2 ; \ - echo +++++ Resetting $* ; \ - $(BSL) -c $* -r + @echo +++++ Erasing $(subst -,/,$*); \ + $(BSL) -c $(subst -,/,$*) -e && sleep 2 ; \ + echo +++++ Programming $(subst -,/,$*) ; \ + $(BSL) -c $(subst -,/,$*) $(BSL_FILETYPE) -p $(IHEXFILE) && sleep 2 ; \ + echo +++++ Resetting $(subst -,/,$*) ; \ + $(BSL) -c $(subst -,/,$*) -r sky-r.%: - $(BSL) -c $* -r + $(BSL) -c $(subst -,/,$*) -r sizeplot: msp430-size $(OBJECTDIR)/*.o | $(CONTIKI)/tools/sky/check-size > size-data