Arduino-Makefile/HISTORY.md
John Whittington f804866095 SAMD Cortex M0 device support (Zero, MKR1000, etc)
Compilation improvements by adding variant as other obj but not working on device

Arduino Zero devices with OpenOCD working

Created ARM_TOOLS_DIR and define arm toolchain executables in Sam.mk

Check avr-gcc on last AVR_TOOLS_DIR detect and indenting formatting

GDB debugging and programming added

Documentation updates and define ARDMK_VENDOR rather than include Sam.mk

Expand all parse_boards when defined rather than when used

Trim extra defines regex working on both macOS and Linux but need better fix

Print USB ids and added debug usage to readme

Add note on Arduino package dir and made board.txt work

Do ARM ARDUINO_ARCH define in Arduino.mk]

Add MZeroBlink to non-testable examples for now

Remove \B from extra defines grep

Add ARDUINO_PACKAGE_DIR for board support files

Fix a typo in the README

Fix typo in arduino-mk-vars.md

Prevent re-including Arduino.mk from Sam.mk when make restarts for upload

Add catrina to ARD_REST_OPTS if/else

Remove realpath in Sam.mk for cygwin compatability

SAMD bootloader support in ard-reset using --zero

Enters bootloader using open/close of port at 1200 BAUD, then polls the
attached devices for new port enumerating (bootloader). This is how the
Arduino IDE operates

Bossa support for Zero, MKR1000 etc

Re-word Arm README section after Native USB development

Reset for zero refactored like IDE

Zero bootloader reset tested on macOS and comments added

Re-word ARM bootloader and remove imports from testing

Patch changes ARDMK_VENDOR->ARCHITECHTURE, show_config_vars, ignore CORE_VER if emtpy

Common.mk header guard, openocd/bossac avoid separator, typos

Documentation update for patch changes

Move ARM tools to Sam.mk and auto-detect include

Correct accidental commit of Blink Makefile change

Lib fix with alternative core and documentation

Append zero to ARD_RESET_OPTS rather than set

Prioritise package ARM upload tools over path installed

Add note in README on ARM tools versions

Move openocd variant config script flag to OPTS
2018-02-24 11:15:53 +00:00

23 KiB
Raw Blame History

A Makefile for Arduino Sketches

The following is the rough list of changes that went into different versions. I tried to give credit whenever possible. If I have missed anyone, kindly add it to the list.

In Development

1.6.0 (2017-07-11)

1.5.2 (2017-01-11)

1.5.1 (Debian version: 1.5-3) (2016-02-22)

1.5 (2015-04-07)

1.3.4 (2014-07-12)

1.3.3 (2014-04-12)

1.3.2 (2014-04-11)

1.3.1 (2014-02-04)

  • Fix: BUNDLED_AVR_TOOLS_DIR is now set properly when using only arduino-core and not the whole arduino package. (https://github.com/sej7278)
  • New: Document all variables that can be overridden. (https://github.com/sej7278)
  • New: Add a new help_vars target to display information about variables that can be overridden.

1.3.0 (2014-01-29)

  • Fix: Use more reliable serial device naming in Windows. Fix issue #139 and #155 (https://github.com/peplin)
  • Fix: Document that ARDUINO_DIR must be a relative path in Windows. Fix issue #156 (https://github.com/peplin)
  • Tweak: Don't hard code MONITOR_PORT in examples, for more flexible testing. (Issue #157) (https://github.com/peplin)
  • Tweak: Silence the stderr output from call to which. (Issue #158) (https://github.com/peplin)
  • Fix: Override complete compiler tool paths for chipKIT. (Issue #159) (https://github.com/peplin)
  • New: The makefile is compatible with Windows
  • New: Update README.md file about usage and Windows compatibility

1.2.0 (2014-01-14)

  • Add: Add RPM SPECfile and new package directory to store package instructions and files (https://github.com/sej7278)
  • Fix: Remove use of arduino-mk subdirectory in git. Fix issue #151, #152 and #147 (https://github.com/sej7278)
  • Fix: Remove arduino-mk directory from all examples. Fix #154

1.1.0 (2013-12-26)

  • Don't append port details to avrdude for usbasp. See #123
  • Ignore commented lines while parsing boards.txt file. See #124
  • In ISP mode, read baudrate and programmer from boards.txt. See #125
  • Add burn_bootloader target. See #85
  • Show correct path to arduino.mk file in help message. Fix #120
  • Change echo for printf. Fix #129 (https://github.com/thomassigurdsen)
  • Add support for ChipKiT 2013. Fix #136 (https://github.com/peplin)
  • Auto detect and include libraries specified in USER_LIB_PATH. Fix #135 (https://github.com/ladislas)
  • Use MAKEFILE_LIST to get the name of the make file. Fix #130 (https://github.com/cantora)
  • New: Add option to set fuses without burning a bootloader. Fix #141 (https://github.com/sej7278)
  • Tweak: Don't append port details to avrdude for usbtiny. Fix #140 and #138 (https://github.com/PPvG)
  • Fix: Handle relative paths of bootloader file while burning bootloaders. Fix #126 and #142 (https://github.com/sej7278)
  • New: Add CONTRIBUTING.md explaining how to contribute to the project.
  • New: Force -Os optimization for SoftwareSerial. Add OPTIMIZATION_FLAGS and DEBUG_FLAGS. (https://github.com/mahoy)
  • Fix: Use ARDUINO_HEADER variable instead of hardcoded file names. Fix #131

1.0.1 (2013-09-25)

  • Unconditionally add -D in avrdude options. See #114

1.0.0 (2013-09-22)

  • Add $OBJDIR to the list of configuration that gets printed. Fix issue #77
  • Add support for specifying optimization level. Fix issue #81
  • Add support for reseting "Micro" Arduino. Fix issue #80 (https://github.com/sej7278)
  • Remove "utility" from example makefiles. Fix issue #84
  • Auto detect alternate core path from sketchbook folder. Fix issue #86
  • Remove redundant checks for ARDUINO_DIR
  • Improve avrdude and avrdude.conf path auto detection. Fix issue #48
  • Move binary sketch size verification logic inside makefile. Fix issue #54
  • Remove dependency on wait-connection-leonardo shell script. Fix issue #95
  • Add support for the Digilent chipKIT platform. (https://github.com/peplin)
  • Implement ard-parse-boards with shell scripting instead of Perl (https://github.com/peplin)
  • Compile with debugging symbols only when DEBUG=1 (https://github.com/peplin)
  • Replace Leonardo detection with Caterina detection (https://github.com/sej7278)
  • Autodetect baudrate only if either a .ino/.pde is present
  • Allow building with Arduino core, without a .ino/.pde file
  • Ability to support different Arduino cores (https://github.com/sej7278)

0.12.0 (2013-06-20)

  • Fix "generated_assembly" target, which got broken earlier. Fix issue #76 (https://github.com/matthijskooijman)
  • Deprecate "generated_assembly" target in favour of "generate_assembly". Fix issue #79

0.11.0 (2013-06-15)

  • 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
  • Handle cases where certain fuse bits are not present. Fix issue #61
  • Add support for compiling plain AVR C files. Fix issue #63
  • Add an example to show how to compile AVR C files. Fix issue #73

0.10.6 (2013-06-14)

0.10.5 (2013-06-11)

  • Add USB_VID and USB_PID to CPPFLAGS only if the board is Leonardo.
  • Allow adding extra common dependencies (COMMON_DEPS) (https://github.com/gaftech)
  • Added ifndef ARDUINO_VAR_PATH for compiling for the attiny (https://github.com/danielesteban)
  • Strip extra whitespace from the BOARD_TAG variable
  • Enhanced support for programming using Arduino as ISP
  • Added example to show how to program using Arduino as ISP
  • Add support for Leonardo boards. Took code from (https://github.com/guicho271828)

0.10.4 (2013-05-31) @matthijskooijman

  • Improved BAUD_RATE detection logic
  • Added logic to check if there is only .ino or .pde file
  • Compile .ino/.pde files directly
  • Output configuration only once
  • Try to read Version.txt file only if it is present
  • Refactored dependency code

0.10.3 16.xii 2012 gaftech

  • Enabling creation of EEPROM file (.eep)
  • EEPROM upload: eeprom and raw_eeprom targets
  • Auto EEPROM upload with isp mode: ISP_EEPROM option.
  • Allow custom OBJDIR

0.10.2 15.xii.2012 Sudar

0.10.1 15.xii.2012 Sudar

  • Merged all changes from Upstream and the following changes from https://github.com/rpavlik
  • Allow passing extra flags
  • Make listing files more useful
  • Add knowledge of device-specific assembler
  • Use variables instead of hardcoded commands
  • Make disasm more helpful
  • Change .sym output
  • Provide symbol_sizes and generated_assembly targets.
  • Be able to silence configuration output
  • Make everybody depend on the makefile, in case cflags are changed, etc.
  • Make the makefile error if the arduino port is not present.

0.10 17.ix.12 M J Oldfield

  • Added installation notes for Fedora (ex Rickard Lindberg).
  • Changed size target so that it looks at the ELF object, not the hexfile (ex Jared Szechy and Scott Howard).
  • Fixed ARDUNIO typo in README.md (ex Kalin Kozhuharov).
  • Tweaked OBJDIR handling (ex Matthias Urlichs and Scott Howard).
  • Changed the name of the Debian/Ubuntu package (ex Scott Howard).
  • Only set AVRDUDE_CONF if it's not set (ex Tom Hall).
  • Added support for USB_PID/VID used by the Leonardo (ex Dan Villiom Podlaski Christiansen and Marc Plano-Lesay).

0.9.3.2 10.ix.2012 Sudar

0.9.3.1 18.viii.2012 jeffkowalski

  • Autodetect ARDUINO_LIBS from includes in LOCAL_SRCS
  • Autodetect ARDUINO_SKETCHBOOK from file set by Arduino IDE
  • Autodetect ARDMK_DIR based on location of this file
  • Added support for utility directory within SYS and USER libraries

0.9.3 13.vi.2012

0.9.2 06.vi.2012

0.9.1 06.vi.2012

  • Corrected the ubuntu package names
  • Prevent the file-not-found error if the depends.mk file is not needed
  • Delete the build-cli folder as well while doing make clean
  • Added support for compiling .pde files in Arduino 1.0 environment
  • Replaced = with += in CPPFLAGS assignment so that we can set CPPFLAGS per sketch if needed
  • Changed AVRDUDE_CONF so it can be defined in per-project makefile (https://github.com/WizenedEE)
  • Cleaner way to delete the build-cli directory when make clean is invoked
  • The package name in Debian and Ubuntu is arduino-mk (https://github.com/maqifrnswa)

2012-02-12, version 0.8

  • Patches for version 1.0 of the Arduino IDE. Older versions might still work, but Ive not tested it.
  • A change to the build process: rather than link all the system objects directly into the executable, bundle them in a library first. This should make the final executable smaller.
  • If TARGET isnt explicitly set, default to the current directory name. Thanks to Daniele Vergini for this patch.
  • Add support for .c files in system libraries: Dirk-Willem van Gulik and Evan Goldenberg both reported this and provided patches in the same spirit.
  • Added a size target as suggested by Alex Satrapa.

Unreleased, version 0.7

  • Added -lm to the linker options, and -F to stty.

2011-06-23, version 0.6

  • Added ard-parse-boards. Mark Sproul suggested doing something like this ages ago, but Ive only recently looked at it in detail.
  • Fabien Le Lez reported that one needs to link with -lc to avoid linker errors.

2011-06-23, version 0.5

  • Imported changes from Debian/Ubuntu, which incorporate a patch from Stefan Tomanek so that libraries would be compiled too.

Note: Many other people sent me similar patches, but I didn't get around to using them. In the end, I took the patch from Debian and Ubuntu: there seems merit in not forking the code and using a tested version. So, thanks and apologies to Nick Andrew, Leandro Coletto Biazon, Thibaud Chupin, Craig Hollabaugh, Johannes H. Jensen, Fabien Le Lez, Craig Leres, and Mark Sproul.

2010-05-24, version 0.4

Tweaked rules for the reset target on Philip Hands advice.

2010-05-21, version 0.3

  • Tidied up the licensing, making it clear that its released under LGPL 2.1.
  • Philip Hands sent me some code to reset the Arduino by dropping DTR for 100ms, and I added it.
  • Tweaked the Makefile to handle version 0018 of the Arduino software which now includes main.cpp. Accordingly we dont need to—and indeed must not—add main.cxx to the .pde sketch file. The paths seem to have changed a bit too.