Ticket #12898: patch-avr-rules.diff

File patch-avr-rules.diff, 881 bytes (added by platon@…, 17 years ago)
  • ../support/make/avr/avr.rules

    old new  
    2929PROGRAMMER ?= uisp
    3030NCC = ncc
    3131LIBS = -lm
     32NESC_SEPARATOR = \never1096WritE
    3233
    33 
    34 AMADDR = ActiveMessageAddressC\$$addr
     34AMADDR = ActiveMessageAddressC$(NESC_SEPARATOR)addr
    3535# Uncomment the next two lines if you have a toolchain without the dollar sign
    3636# patch. This needs nesc 1.2.8 or newer (1.2.9 is recommended).
    3737#PFLAGS += -fnesc-separator=__
     
    4444VOLUMEFILE = volumes-at45db.xml
    4545
    4646PFLAGS += -Wall -Wshadow $(NESC_FLAGS)
    47 PFLAGS += -target=$(PLATFORM) -fnesc-cfile=$(BUILDDIR)/app.c -board=$(SENSORBOARD)
     47PFLAGS += -target=$(PLATFORM) -fnesc-cfile=$(BUILDDIR)/app.c -board=$(SENSORBOARD) -fnesc-separator=$(NESC_SEPARATOR)
    4848ifdef MSG_SIZE
    4949PFLAGS += -DTOSH_DATA_LENGTH=$(MSG_SIZE)
    5050endif