aboutsummaryrefslogtreecommitdiff
path: root/arduino-mk-vars.md
AgeCommit message (Collapse)Author
2020-09-15Add -DARDUINO_{build.board} for compile optionsTokita Hiroshi
2020-09-03Merge pull request #614 from co-dan/ctags_docs_fixSudar Muthu
Rename `CTAGS_CMD` to `CTAGS_EXEC` (in the documentation).
2020-08-06document GREP_CMDJohn Whittington
2020-08-05Merge remote-tracking branch 'sej7278/python3'John Whittington
2020-08-04Rebased python3 branch with some changes from tuna-f1sh@87d5241Simon John
2020-02-24Merge branch 'master' of https://github.com/sudar/Arduino-Makefile into HEADJohn Whittington
2019-07-31Rename `CTAGS_CMD` to `CTAGS_EXEC`.Dan Frumin
The former is not actually tweakable.
2019-07-19Syntax fix and documentation of MONITOR_PARAMSTaylor Zowtuk
2019-07-18Add new *_VER variables to documentationJohn Whittington
2019-06-19Merge pull request #586 from SearchAThing-forks/masterSudar Muthu
allow to enable AVRDUDE_AUTOERASE_FLASH
2018-11-11Change BOARD_SPEED to BOARD_CLOCK setting and extend to menu.clock and ↵Donna Whisnant
menu.speed. This is needed to specify CPU speed and fuses for boards.txt files that use this format: "{board_tag}.menu.clock.{board_clock}.build.f_cpu" "{board_tag}.menu.clock.{board_clock}.bootloader.low_fuses" "{board_tag}.menu.clock.{board_clock}.bootloader.high_fuses" "{board_tag}.menu.clock.{board_clock}.bootloader.extended_fuses" For example ATtiny processors. It also works for speed-only settings like the Watterott ATmega328PB library: https://github.com/watterott/ATmega328PB-Testing "{board_tag}.menu.speed.{board_clock}.build.f_cpu"
2018-11-11Update documentation for BOARD_SPEED.Donna Whisnant
2018-10-13Update arduino-mk-vars.mdLorenzo Delana
2018-09-14Added the TOOL_PREFIX variable for setting up the executable tools.Pieter du Preez
Currently three different tool chains seem to be used: * avr-* * pic32-* * arm-none-eabi-* These all get set up independently. This patch centralizes the definitions of the executable tools and does it generically, by means of the newly introduced TOOL_PREFIX variable. Setting up a tool chain is now simply a matter of defining the TOOL_PREFIX variable. For the currently supported tool chains it gets set to avr, pic32 or arm-none-eabi. Arbitrary tool chains can now easily be set up, by the TOOL_PREFIX variable. Although the use of the OVERRIDE_EXECUTABLES variable is now almost not justifiable, it was left as-is, in order to assure backwards compatibility.
2018-03-18Added the DIAGNOSTICS_COLOR_WHEN var for controlling diagnostics-color.Pieter du Preez
Some IDEs do not work nicely with the recently added diagnostics-color compiler switch. This patch adds the DIAGNOSTICS_COLOR_WHEN variable, for controlling diagnostics-color switch. The default was chosen to be 'always', which makes the Arduino.mk file backwards compatible with everything up to commit fa82c3a9db (Sat Sep 2 15:32:52 2017 +0100). The supported values for DIAGNOSTICS_COLOR_WHEN are: `always`, `never` and `auto`, and as with all Arduino.mk variables, it can easily be overridden. For more details on the diagnostics-color compiler switch, see: https://gcc.gnu.org/onlinedocs/gcc-4.9.2/gcc/Language-Independent-Options.html#Language-Independent-Options
2018-02-24SAMD Cortex M0 device support (Zero, MKR1000, etc)John Whittington
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
2017-09-03Merge branch 'master' of https://github.com/sudar/Arduino-MakefileJohn Whittington
2017-09-02Moved the LTO etc. flags from CXXFLAGS_STD to CXXFLAGSSimon John
2017-06-04Support for generation of project tags fileJohn Whittington
Considering the number of project files spread in different locations when developing an Arduino project, proper use of tags can be difficult; resolving beyond local functions. I've added automatic generation of a tags file, which includes: * Standard ctags source in project dir (.c, .cpp, .h) * Arduino source in project dir (.ide, .pde) * Arduino core based on detected project core from Arduino install. * Included Arduino libraries from user library folder. As a Vim user I find this hugely useful and think it would be a useful addtion for others. Target has been added as `make tags`.
2017-06-01Fix autodetection of USB_PID on SparkFun's new ProMicro coreSimon John
Remove use of tilde in documentation as ~ doesn't work, use $(HOME) instead
2016-11-04add comment on additional varsGeorge Harker
2016-10-11Changed LTO support check to avr-gcc > 4.9.0 as the 4.8.1 bundled with the ↵Simon John
IDE prior to 1.6.10 doesn't support LTO or plugins. Fixes Issue #456 So essentially LTO support will only be enabled with avr-gcc 4.9.2 which comes with 1.6.10 or later and Debian, Ubuntu etc; not 4.8.1 which comes with IDE 1.6.9 and a few earlier versions. Tested with: * 1.6.8 (avr-gcc 4.8.1 which doesn't support LTO so uses avr-ar and doesn't set LTO flags) * 1.6.12 (avr-gcc 4.9.2 which supports LTO so uses avr-gcc-ar and sets LTO flags) * 1.0.5 with Debian avr-gcc 4.9.2 (supports LTO so uses avr-gcc-ar and sets LTO flags)
2016-09-08Updated docs regarding CXXFLAGS etc. for LTO supportSimon John
2016-07-25Added -std=gnu++11 -fno-threadsafe-statics to CXXFLAGS_STD if we're using ↵Simon John
Arduino 1.6 to match upstream (without it compilation seems to fail on OSX). Updated docs. Also made ARDUINO_LIB_PATH overloadable (as implied by arduino-mk-vars.md) although this is a pretty niche use-case.
2016-02-19updated BOARD_TAG to indicate show_submenu targetandrew hutchison
2015-09-15Replace $VENDOR with $ARDMK_VENDOR as $VENDOR is a tcsh environment variable.Simon John
$ARCHITECTURE is probably safe as that's usually called $ARCH. Fixes issue #386. Need to decide if this is going to upset too many user's who have already started using $VENDOR - and who uses tcsh? ;-)
2015-09-07Add documentation for the TARGET variable.Sven Dahlstrand
2015-05-15Updated some documentation to clarify 1.5+ settings.Simon John
Fixes #352
2015-03-28Added support for VARIANT in submenu'sSimon John
Also added a note that in certain 1.6 cores (attiny) F_CPU is a submenu item e.g. attiny.menu.clock.internal1.build.f_cpu=1000000L
2015-01-23Ability to modify USB_TYPE in Teensy.mdpoofjunior
See #313
2014-12-30Tidy new arduino mk varsGabrielius Mickevicius
Add CORE and FORCE_MONITOR_PORT to arduino-mk-vars.md and FORCE_MONITOR_PORT to config print.
2014-11-07Allow avrdude to erase the chip before programming during isploadThomas Hebb
We currently pass the -D (do not erase) option to avrdude unconditionally in order to work around an Arduino Mega bootloader bug. However, this has the side-effect of breaking the ispload target for all non-XMEGA chips, since a write operation on these chips essentially ANDs the new program with the existing memory contents. If the memory is not first erased to contain only 0xff, the resulting image is garbage. This patch makes it so we pass -D when we're using the Arduino bootloader but don't pass it when we're using ISP directly.
2014-10-11Arduino 1.5.x - support new library layout and plaform specific system libsLukasz Engel
- Add support for 1.5.x library layout. (https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification) - Allow using Arduino 1.5.x platform specific system libraries. Arduino 1.5.x has additional directories for platform (vendor/architecture) specific libraries - look there when searching for libraries.
2014-09-10Document CFLAGS, CXXFLAGS, ASFLAGS and CPPFLAGS.Christopher Peplin
After understanding the difference between CXXFLAGS and CPPFLAGS, this is a revised commit for https://github.com/sudar/Arduino-Makefile/pull/257
2014-08-29Allow libraries/sketches to have the same name as system libs,Simon John
e.g. main or Wire Doesn't seem to work with main.cpp but main.ino works. Fixes issue #229 and #244
2014-08-13add CFLAGS_STD and CXXFLAGS_STD defaultsladislas
2014-08-13Revert "Using CFLAGS_STD and CPPFLAGS_STD"Sudar
2014-08-12create CPPFLAGS_STD and make both CFLAGS_STD and CPPFLAGS_STD avalaible for ↵ladislas
CFLAGS and CXXFLAGS
2014-08-08Add some documentation regarding overloading system libs and reporting bugsSimon John
2014-07-12Made all the changes into one commit that could be a patch for masterSimon John
2014-04-21fixed typo - should be ARDUINO_SKETCHBOOK not ARDUINO_VERSIONSimon John
2014-03-23Add `BOOTLOADER_PARENT` which has to be set if the user sets either of the ↵Simon John
other two BOOTLOADER variables Fix #178
2014-03-20Add phony target to run pre-build hook scriptJulien Ridoux
Fix #176
2014-03-06Beautify arduino-mk-vars.mdtinyladi
Clean up markdown and add code blocks where needed Fix #171
2014-03-06Add `OBJDIR` reference to `arduino-mk-vars.md`tinyladi
Signed-off-by: tinyladi <ladislas@weareleka.com>
2014-02-04Document all the variables that can be overridden in child makefileSudar
Huge thanks to @sej7278 for doing this Fix #75