aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY.md1
-rw-r--r--arduino-mk/Arduino.mk7
2 files changed, 7 insertions, 1 deletions
diff --git a/HISTORY.md b/HISTORY.md
index 4330964..ea7a1e3 100644
--- a/HISTORY.md
+++ b/HISTORY.md
@@ -7,6 +7,7 @@ The following is the rough list of changes that went into different versions. I
- Replace hardcoded executables with variable
- Fix whitespace issues
- Add a warning when HEX_MAXIMUM_SIZE is not specified
+- Add the ability to configure avrdude options. Fix issue #53
### 0.10.6 (2013-06-14)
- Fix whitespace and add /dev/null redirection (https://github.com/sej7278)
diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk
index 8800bde..825aa95 100644
--- a/arduino-mk/Arduino.mk
+++ b/arduino-mk/Arduino.mk
@@ -798,7 +798,12 @@ ifndef AVRDUDE_CONF
# If avrdude is installed separately, it can find its own config file
endif
-AVRDUDE_COM_OPTS = -q -V -p $(MCU)
+# Default avrdude options. -V Do not verify, -q - suppress progress output
+ifndef AVRDUDE_OPTS
+ AVRDUDE_OPTS = -q -V
+endif
+
+AVRDUDE_COM_OPTS = $(AVRDUDE_OPTS) -p $(MCU)
ifdef AVRDUDE_CONF
AVRDUDE_COM_OPTS += -C $(AVRDUDE_CONF)
endif