Added AVR_PORT= parameter for avrdude
parent
ddfcbcf6a4
commit
c677e37b81
5
Makefile
5
Makefile
|
@ -81,6 +81,9 @@ endif
|
||||||
ifeq (,$(AVR_BITCLK))
|
ifeq (,$(AVR_BITCLK))
|
||||||
AVR_BITCLK=16
|
AVR_BITCLK=16
|
||||||
endif
|
endif
|
||||||
|
ifeq (,$(AVR_PORT))
|
||||||
|
AVR_PORT=usb:
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
.SILENT:
|
.SILENT:
|
||||||
|
@ -183,7 +186,7 @@ $(BASE)/.build/%.o: $(CURDIR)/src/%.txt
|
||||||
$(BASE)/.build/.%.dep:
|
$(BASE)/.build/.%.dep:
|
||||||
|
|
||||||
avrdude: $(BASE)/bin/$(FINALNAME).hex
|
avrdude: $(BASE)/bin/$(FINALNAME).hex
|
||||||
$(AVRDUDE) -c $(AVR_PROG) -p $(AVR_MCU) -P usb: -B $(AVR_BITCLK) $(AVRDUDE_OPERATIONS) -U flash:w:$(BASE)/bin/$(FINALNAME).hex
|
$(AVRDUDE) -c $(AVR_PROG) -p $(AVR_MCU) -P $(AVR_PORT) -B $(AVR_BITCLK) $(AVRDUDE_OPERATIONS) -U flash:w:$(BASE)/bin/$(FINALNAME).hex
|
||||||
|
|
||||||
include $(wildcard $(MODULEDEPS))
|
include $(wildcard $(MODULEDEPS))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue