From f03caa357e3ad2614480c14904f366440a7f9de1 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Thu, 29 Oct 2009 22:10:21 +0000 Subject: [PATCH] Allow reprogramming invidual nodes with 'make file.upload MOTE=x' where x is the mote number just like with make login --- platform/sky/Makefile.sky | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/platform/sky/Makefile.sky b/platform/sky/Makefile.sky index 0262bcb85..8f337f5e0 100644 --- a/platform/sky/Makefile.sky +++ b/platform/sky/Makefile.sky @@ -1,4 +1,4 @@ -# $Id: Makefile.sky,v 1.27 2009/08/25 16:24:49 adamdunkels Exp $ +# $Id: Makefile.sky,v 1.28 2009/10/29 22:10:21 adamdunkels Exp $ ARCH=msp430.c leds.c watchdog.c light.c spi.c ds2411.c \ @@ -79,9 +79,15 @@ sky-motelist: sky-motes: @echo $(MOTES) +ifdef MOTE +%.upload: %.ihex + cp $< $(IHEXFILE) + $(MAKE) sky-u.$(subst /,-,$(word $(MOTE), $(MOTES))) +else # MOTE %.upload: %.ihex cp $< $(IHEXFILE) $(MAKE) sky-reset sky-upload +endif # MOTE sky-upload: sky-reset $(MAKE) -j $(NUMPAR) sky-upload-sequence