aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Build/lufa.avrdude.in
diff options
context:
space:
mode:
Diffstat (limited to 'LUFA/Build/lufa.avrdude.in')
-rw-r--r--LUFA/Build/lufa.avrdude.in16
1 files changed, 6 insertions, 10 deletions
diff --git a/LUFA/Build/lufa.avrdude.in b/LUFA/Build/lufa.avrdude.in
index e2b8e5730..fdc5bc1d7 100644
--- a/LUFA/Build/lufa.avrdude.in
+++ b/LUFA/Build/lufa.avrdude.in
@@ -36,20 +36,16 @@ LUFA_BUILD_OPTIONAL_VARS += AVRDUDE_PROGRAMMER AVRDUDE_PORT AVRDUDE_FLAGS
# -----------------------------------------------------------------------------
# Output Messages
-MSG_AVRDUDE_CMD = ' [AVRDUDE] :'
+MSG_AVRDUDE_CMD = ' [AVRDUDE] :'
# Default values of user-supplied variables
-AVRDUDE_PROGRAMMER ?= jtagicemkii
-AVRDUDE_PORT ?= usb
-AVRDUDE_FLAGS ?= -U flash:w:$(TARGET).hex
+AVRDUDE_PROGRAMMER ?= jtagicemkii
+AVRDUDE_PORT ?= usb
+AVRDUDE_FLAGS ?= -U flash:w:$(TARGET).hex
# Sanity check the user MCU and TARGET makefile options
-ifeq ($(MCU),)
- $(error Makefile MCU value not set.)
-endif
-ifeq ($(TARGET),)
- $(error Makefile TARGET value not set.)
-endif
+MCU ?= $(error Makefile MCU value not set.)
+TARGET ?= $(error Makefile TARGET value not set.)
program: $(TARGET).hex
@echo $(MSG_AVRDUDE_CMD) Programming device \"$(MCU)\" with settings \"$(AVRDUDE_FLAGS)\" using \"$(AVRDUDE_PROGRAMMER)\" on port \"$(AVRDUDE_PORT)\"