Makefile: add a variable for avrdude.conf, as the location

of this file depends on the environment.
This commit is contained in:
Markus Hitter 2010-09-08 16:27:02 +02:00
parent 54f9598ef1
commit 446b2223cc
1 changed files with 2 additions and 1 deletions

View File

@ -45,6 +45,7 @@ CFLAGS = -g -Wall -Wstrict-prototypes $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS) -s
LDFLAGS = -Wl,--as-needed -Wl,--gc-sections LDFLAGS = -Wl,--as-needed -Wl,--gc-sections
AVRDUDE = avrdude AVRDUDE = avrdude
AVRDUDECONF = /etc/avrdude.conf
############################################################################## ##############################################################################
# # # #
@ -68,7 +69,7 @@ program: $(PROGRAM).hex
stty $(PROGBAUD) raw ignbrk hup < $(PROGPORT) stty $(PROGBAUD) raw ignbrk hup < $(PROGPORT)
@sleep 0.1 @sleep 0.1
@stty $(PROGBAUD) raw ignbrk hup < $(PROGPORT) @stty $(PROGBAUD) raw ignbrk hup < $(PROGPORT)
$(AVRDUDE) -cstk500v1 -b$(PROGBAUD) -p$(MCU_TARGET) -P$(PROGPORT) -C/etc/avrdude.conf -U flash:w:$^ $(AVRDUDE) -cstk500v1 -b$(PROGBAUD) -p$(MCU_TARGET) -P$(PROGPORT) -C$(AVRDUDECONF) -U flash:w:$^
stty 115200 raw ignbrk -hup -echo ixon < $(PROGPORT) stty 115200 raw ignbrk -hup -echo ixon < $(PROGPORT)
clean: clean: