diff options
| author | Sudar <sudar@sudarmuthu.com> | 2013-06-15 19:17:13 +0530 |
|---|---|---|
| committer | Sudar <sudar@sudarmuthu.com> | 2013-06-15 19:21:48 +0530 |
| commit | ac5a0879822be6785e1808d0a2b83f9ff286e5cc (patch) | |
| tree | 3d15b64e6b3cde52fa3dd2556a6eb2ca4332d830 /arduino-mk | |
| parent | 93eaaec5ba20314318a77f63711ae9054a70eaaa (diff) | |
Add the ability to configure avrdude options
A new environmental variable AVRDUDE_OPTS is added, which can be used to
configure the options passed to avrdude.
Fix #53
Diffstat (limited to 'arduino-mk')
| -rw-r--r-- | arduino-mk/Arduino.mk | 7 |
1 files changed, 6 insertions, 1 deletions
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 |
