aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-07-19Updated changelogTaylor Zowtuk
2019-07-19Syntax fix and documentation of MONITOR_PARAMSTaylor Zowtuk
2019-07-05Merge pull request #599 from szeder/build-apiSimon John
Build the ArduinoCore API (fixes issue #607)
2019-07-04Build the ArduinoCore APISZEDER Gábor
As part of the big modularizing efforts of the Arduino project they split out the hardware-independent layer of the Arduino "language" from the hardware-specific cores into the dedicated 'ArduinoCore-API' repository. As described in 'ArduinoCore-API's README, the API source files won't reside directly in the directory of the standard Arduino core, i.e. in 'ARDUINO_CORE_PATH', but in its 'ARDUINO_CORE_PATH/api' subdirectory. Consequently, Arduino-Makefile won't be able to build any projects when using an Arduino core following the new directory structure. Prepare for the upcoming new Arduino core directory structure by building all 'ARDUINO_CORE_PATH/api/*.cpp' source files as well. Out of caution, look out for and build any .c source files in that directory, too: though there are no .c source files in the 'ArduinoCore-API' repository at the moment, in the future there might be. Furthermore, add this directory to the list of directories to be searched for header files: though it's not necessary to explicitly and directly include any header file from this directory ('Arduino.h' includes all there is), some projects might nonetheless do so, and their build would then break. Note that a 'make clean' will be most likely necessary when re-building a project after switching to the new directory structure.
2019-07-03Merge pull request #608 from mumme74/masterSudar Muthu
Allow custom link script (Teensy)
2019-07-02Allow custom link scriptFredrik Johansson
2019-06-19Merge pull request #586 from SearchAThing-forks/masterSudar Muthu
allow to enable AVRDUDE_AUTOERASE_FLASH
2019-06-12Merge pull request #605 from szeder/quiet-0Simon John
Show the configuration when ARDUINO_QUIET=0
2019-06-12Show the configuration when ARDUINO_QUIET=0SZEDER Gábor
There is a bit of inconsistency between documentation and code regarding the ARDUINO_QUIET variable: 'arduino-mk-vars.md' states that ARDUINO_QUIET "Defaults to `0` (unset/disabled)", but the code only checks whether it's defined or not, and doesn't check whether it's set to '0' or something else. Consequently, having 'ARDUINO_QUIET=0' in the Makefile or running 'make ARDUINO_QUIET=0' contadicts the documentation and doesn't print the configuration. It also means that if someone in general prefers not to see a screenful of configuration on each build and therefore has 'ARDUINO_QUIET = 1' in the project's Makefile or 'config.mak', then there is no way to override it from the command line in the odd case when showing the configuration is desired. Modify the corresponding condition in Arduino.mk to check whether ARDUINO_QUIET is set to 0 and treat an undefined ARDUINO_QUIET variable as "set to 0" as well.
2019-06-03Merge pull request #604 from stv0g/fix-issue-601Sudar Muthu
Fix regression: PARSE_BOARD chops off flags which contain '=' signs
2019-05-03fix regression: PARSE_BOARD chops off flags which contain '=' signs (closes ↵Steffen Vogel
#601)
2019-04-20Merge pull request #598 from Dukejung/masterSudar Muthu
Add OpenCR.mk for OpenCR 1.0 board example sketch
2019-04-01Update HISTORY.mdSimon John
2019-04-01Merge pull request #603 from tuna-f1sh/masterSimon John
add swtich for ARM 'avr-size' so that .elf is passed as arg
2019-03-25add swtich for ARM 'avr-size' so that .elf is passed as argJohn Whittington
`avr-size` was defaulting to AVR non-aware when using ARM builds, which meant passing .hex rather than .elf to size and limiting size readout. Adding a switch for defining `avr-size` and SIZEFLAGS to Sam.mk seems like the best way to include proper ARM support (despite conflicting naming).
2019-03-02Merge pull request #600 from HorkusBoy/samd-typo-prSimon John
Fixed typo in variable name BOARDS_TXT in Sam.mk
2019-03-02Fixed typo in var name BOARDS_TXT in Sam.mkBen B
2019-02-11Update runtests.shDukejung
2019-02-11Update HISTORY.mdDukejung
2019-02-11Add OpenCR.mk for OpenCR 1.0 board and add example code(example/BlinkOpenCR)Dukejung
2019-01-11Merge pull request #597 from tuna-f1sh/masterSimon John
Fix #594 and sam flag for ardmk-init
2019-01-11Only add USB_PRODUCT and USB_MANUFACTURER to flags if definedJohn Whittington
2019-01-11Populate USB_PRODUCT and USB_MANUFACTURER if in boards file using CaterinaJohn Whittington
2018-12-24Add 'sam' flag to ardmk-init to include Sam.mk rather than Arduino.mkJohn Whittington
2018-11-27Updated historySimon John
Added ArchLinux documentation uplift
2018-11-27Merge pull request #593 from Akram-Chehaima/masterSimon John
Change & add repo to install package on Arch linux
2018-11-27Change & add repo to install package onArch linuxAkram Chehaima
yaourt is "Discontinued" it's not save must use alternatives like yay On Arch Linux add commands to install python-pyserial on Arch Linux
2018-11-17Merge pull request #592 from dewhisna/cpu_speed_selectSimon John
Add support for BOARD_CLOCK setting
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-11-11Add support for BOARD_SPEED setting.Donna Whisnant
This is needed to specify CPU speed for boards.txt files that use this format: "{board_tag}.menu.speed.{board_speed}.build.f_cpu" For example, the Watterott ATmega328PB library: https://github.com/watterott/ATmega328PB-Testing
2018-10-13allow to enable AVRDUDE_AUTOERASE_FLASHLorenzo Delana
2018-10-13Update arduino-mk-vars.mdLorenzo Delana
2018-10-07Merge pull request #583 from wingunder/move_core_link_lastSudar Muthu
Moved CORE_LIB to the last position of the defined linked objects.
2018-10-03Merge remote-tracking branch 'origin/fix-travis-sudo-required' into ↵Pieter du Preez
move_core_link_last
2018-10-03Fix "does not allow use of 'sudo'" error in travisPieter du Preez
Pull requests seem to fail with the following error: > This job is running on container-based infrastructure, which does not allow use of 'sudo', setuid, and setgid executables. > If you require sudo, add 'sudo: required' to your .travis.yml This commit fixes it, by adding 'sudo: required' to .travis.yml, as suggested by the error message.
2018-10-02Added a test case for moving CORE_LIB in PR #583.Pieter du Preez
This patch is meant to test the link order, if the OTHER_OBJS variable gets used to add 3rd party archives, that depend on the Arduino core lib (the archive pointed to by the CORE_LIB variable). The examples/Blink3rdPartyLib directory contains a stripped down Blink and includes a library in the examples/Blink3rdPartyLib/Toggle sub-directory. The archive, built inside the Toggle directory mimics a 3rd party library. The archive gets built and linked in by using the OTHER_OBS variable in examples/Blink3rdPartyLib/Makefile.
2018-10-02Merge remote-tracking branch 'org/master' into move_core_link_lastPieter du Preez
2018-09-30Merge pull request #580 from wingunder/masterSudar Muthu
Moved the PARSE_BOARD macro and added the TOOL_PREFIX variable for setting up tool chains.
2018-09-30Merge pull request #582 from tuna-f1sh/masterSudar Muthu
Pass OpenOCD options to debug_init target
2018-09-30Moved CORE_LIB to the last position of the defined linked objects.Pieter du Preez
The linking order was changed from: $(LOCAL_OBJS) $(CORE_LIB) $(OTHER_OBJS) $(OTHER_LIBS) to: $(LOCAL_OBJS) $(OTHER_OBJS) $(OTHER_LIBS) $(CORE_LIB) This makes more sense, as OTHER_OBJS would rather depend on CORE_LIB, than the other way around. Apart from libc and libm, CORE_LIB should conceptually _always_ be the last lib in the link list, as it is the core (base of everything). BTW, this was implemented correctly for the 'sam' architecture.
2018-09-28Pass OpenOCD options to debug_init targetJohn Whittington
2018-09-15Moved the BOARDS_TXT section and stop if BOARDS_TXT is not a file.Pieter du Preez
The section of Arduino.mk that calculates BOARDS_TXT was moved to just before the point where it gets used for the first time (a call to PARSE_BOARD). An error gets generated if BOARDS_TXT is not pointing to a valid file, directly after the BOARDS_TXT calculation. In addition, the PARSE_BOARD macro will now be bypassed if the BOARDS_TXT variable points to a non-existing file. If a user makefile uses PARSE_BOARD before including Arduino.mk, and the BOARDS_TXT is wrong, the error will only be caught in the Arduino.mk file, which is probably acceptable.
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-09-13Moved the PARSE_BOARD macro from Arduino.mk to Common.mk.Pieter du Preez
There seems to be 3 different macros to parse the boards.txt file. This patch moves the PARSE_BOARD macro from Arduino.mk to Common.mk. The PARSE_OPENCM and PARSE_TEENSY macros in Teensy.mk and OpenCM.mk were removed and the common PARSE_BOARD is now being called from everywhere. Advantages of this fix are: 1. Less code, i.e. no redundant parse macros. 2. A single standardized algorithm to parse the boards.txt file.
2018-08-10Merge pull request #578 from TE-HiroakiYamazoe/fix_typo_of_avrdude_isp_optSimon John
Fix typo of AVRDUDE_ISP_OPT
2018-08-09Fix typo of AVRDUDE_ISP_OPTHiroaki Yamazoe
2018-06-22Merge pull request #567 from tuna-f1sh/dueSudar Muthu
Support for Arduino Due added
2018-06-14Support for Arduino Due addedJohn Whittington
Update HISTORY.md Add avr core emulation to C sources
2018-03-18Merge pull request #556 from wingunder/masterSudar Muthu
Added the DIAGNOSTICS_COLOR_WHEN var for controlling diagnostics-color.