Make avrdude program configurable
This commit is contained in:
parent
252c619cd6
commit
5515a0634d
1 changed files with 5 additions and 2 deletions
7
Makefile
7
Makefile
|
@ -2,11 +2,14 @@ OPTIMIZE = -O2
|
|||
CPPFLAGS += -DF_CPU=$(MCU_FREQ)
|
||||
override CFLAGS = -g --std=c99 -Wall $(OPTIMIZE) -mmcu=$(MCU_TARGET)
|
||||
override LDFLAGS =
|
||||
AVRDUDE_ARGS =
|
||||
|
||||
# programs we are gonna use
|
||||
CC = avr-gcc
|
||||
OBJCOPY = avr-objcopy
|
||||
OBJDUMP = avr-objdump
|
||||
SIZE = avr-size
|
||||
AVRDUDE_ARGS =
|
||||
AVRDUDE = avrdude
|
||||
|
||||
ifdef BOARD
|
||||
include boards/$(BOARD).mk
|
||||
|
@ -60,5 +63,5 @@ endif
|
|||
|
||||
ifdef AVRDUDE_TYPE
|
||||
flash: $(PROG).hex
|
||||
avrdude $(AVRDUDE_ARGS) -U flash:w:$(PROG).hex
|
||||
$(AVRDUDE) $(AVRDUDE_ARGS) -U flash:w:$(PROG).hex
|
||||
endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue