From 5515a0634df37beca2643c2baf08ac9af0077fe5 Mon Sep 17 00:00:00 2001 From: Ain <41307858+nero@users.noreply.github.com> Date: Sat, 6 Oct 2018 14:28:24 +0000 Subject: [PATCH] Make avrdude program configurable --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f51a126..894587e 100644 --- a/Makefile +++ b/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