From: scipio Date: Fri, 1 Feb 2008 20:25:37 +0000 (+0000) Subject: Added proper AM group support. Says something that nobody noticed... X-Git-Tag: release_tinyos_2_1_0_0~570 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=6aa36e3ec8bad9d8762e447d648cdbc25f31d6a4 Added proper AM group support. Says something that nobody noticed... --- diff --git a/support/make/avr/avr.rules b/support/make/avr/avr.rules index a284d455..b0671d52 100644 --- a/support/make/avr/avr.rules +++ b/support/make/avr/avr.rules @@ -48,6 +48,9 @@ PFLAGS += -target=$(PLATFORM) -fnesc-cfile=$(BUILDDIR)/app.c -board=$(SENSORBOAR ifdef MSG_SIZE PFLAGS += -DTOSH_DATA_LENGTH=$(MSG_SIZE) endif +ifdef DEFAULT_LOCAL_GROUP +PFLAGS += -DDEFINED_TOS_AM_GROUP=$(DEFAULT_LOCAL_GROUP) +endif AVRGCCMAJOR = $(shell avr-gcc -v 2>&1 | grep "gcc version" | sed -n 's/gcc version \([2-5]\)\.\([0-9]\)\.\([0-9]\).*/\1/p') ifeq ($(AVRGCCMAJOR),4) diff --git a/support/make/msp/msp.rules b/support/make/msp/msp.rules index 6253da4e..73027a0d 100644 --- a/support/make/msp/msp.rules +++ b/support/make/msp/msp.rules @@ -39,11 +39,14 @@ MAIN_EXE = $(BUILDDIR)/main.exe MAIN_IHEX = $(BUILDDIR)/main.ihex INSTALL_IHEX = $(MAIN_IHEX).out$(if $(NODEID),-$(NODEID),) -PFLAGS += -Wall -Wshadow -DDEF_TOS_AM_GROUP=$(DEFAULT_LOCAL_GROUP) $(NESC_FLAGS) +PFLAGS += -Wall -Wshadow $(NESC_FLAGS) PFLAGS += -target=$(PLATFORM) -fnesc-cfile=$(BUILDDIR)/app.c -board=$(SENSORBOARD) ifdef MSG_SIZE PFLAGS += -DTOSH_DATA_LENGTH=$(MSG_SIZE) endif +ifdef DEFAULT_LOCAL_GROUP +PFLAGS += -DDEFINED_TOS_AM_GROUP=$(DEFAULT_LOCAL_GROUP) +endif DEFAULT_PROGRAM ?= bsl diff --git a/support/make/null/null.rules b/support/make/null/null.rules index 1fe3f3b7..d4313119 100644 --- a/support/make/null/null.rules +++ b/support/make/null/null.rules @@ -22,11 +22,14 @@ MAIN_IHEX = $(BUILDDIR)/main.ihex INSTALL_SREC = $(MAIN_SREC).out$(if $(NODEID),-$(NODEID),) VOLUMEFILE = volumes-at45db.xml -PFLAGS += -Wall -Wshadow -DDEF_TOS_AM_GROUP=$(DEFAULT_LOCAL_GROUP) $(NESC_FLAGS) +PFLAGS += -Wall -Wshadow $(NESC_FLAGS) PFLAGS += -target=$(PLATFORM) -fnesc-cfile=$(BUILDDIR)/app.c ifdef MSG_SIZE PFLAGS += -DTOSH_DATA_LENGTH=$(MSG_SIZE) endif +ifdef DEFAULT_LOCAL_GROUP +PFLAGS += -DDEFINED_TOS_AM_GROUP=$(DEFAULT_LOCAL_GROUP) +endif BUILDLESS_DEPS += bytes diff --git a/support/make/pxa27x/pxa27x.rules b/support/make/pxa27x/pxa27x.rules index 2a975179..b57fcdb2 100644 --- a/support/make/pxa27x/pxa27x.rules +++ b/support/make/pxa27x/pxa27x.rules @@ -35,11 +35,14 @@ ASSEMBLY_OBJS = $(BUILDDIR)/asms.o #LIBRARY_OBJS = $(PLATFORM_DIR)/lib/profile.o $(PLATFORM_DIR)/lib/queue.o OPTFLAGS ?= -O3 -g -PFLAGS += -Wall -Wshadow -DDEF_TOS_AM_GROUP=$(DEFAULT_LOCAL_GROUP) $(NESC_FLAGS) +PFLAGS += -Wall -Wshadow $(NESC_FLAGS) PFLAGS += -target=$(PLATFORM) -fnesc-cfile=$(BUILDDIR)/app.c -board=$(SENSORBOARD) ifdef MSG_SIZE PFLAGS += -DTOSH_DATA_LENGTH=$(MSG_SIZE) endif +ifdef DEFAULT_LOCAL_GROUP +PFLAGS += -DDEFINED_TOS_AM_GROUP=$(DEFAULT_LOCAL_GROUP) +endif DEFAULT_PROGRAM ?= xflash