aboutsummaryrefslogtreecommitdiff
path: root/Arduino.mk
AgeCommit message (Collapse)Author
2015-12-28Removed the check for BOOTLOADER_PATH being empty as its merged intoSimon John
BOOTLOADER_FILE in 1.5+ Now we just check for BOOTLOADER_FILE being non-empty on both versions. Fixes issue #402
2015-12-16Fixed "make show_boards" regex to allow for hyphens in BOARD_TAGSimon John
e.g. attiny44-20, thanks to Atmel for the sample chip!
2015-10-26Better parsing of boards.txt file which allows Adafruit Trinket to be usedAlbert Pretorius
2015-09-21Add path examples for both Mac IDE versionsThomas Kilian
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-13Ensure AVRDUDE_CONF is set when AVR_TOOLS_DIR is manually set by user,Simon John
not just on Windows - fixes issue #381 Code around this area probably needs a tidy up at some point.
2015-09-07Make sure TARGET is set correctly when CURDIR contains spaces.Sven Dahlstrand
With this fix the `TARGET` variable is set correctly when the project directory (or its path) contains spaces. So in this case: /Users/Joe/Dropbox (Personal)/example project `TARGET` will be set to `example_project` instead of `Dropbox example project` (like it was before this fix).
2015-07-14Added support for AVR Dragon in both ISP and DebugWire modePaul Russo
2015-07-09Took another couple of changes from @peplin's PR #256 for chipKITSimon John
2015-07-09Preserve source extension for object files.Simon John
Needed to fix the new wiring_pulse.S in IDE 1.6.5 which also has a wiring_pulse.c source file. Mostly rebased @peplin's PR #266, so should allow us to support newer chipKIT builds too.
2015-06-11Add /dev/tty.wchusbserial* to the list of serial ports (CH341, CH34O chip ↵Grzegorz Biesiadecki
comes with cheap arduino clones - DCCduino)
2015-06-11Add support for picocom as a monitorGrzegorz Biesiadecki
2015-06-02Add option to split avrdude MCU from avr-gcc MCUhhgarnes
Fix #359
2015-04-12Looks for submenu items first when parsing BOARDS_TXTSimon John
as suggested by @michaelbaisch in issue #346 Might want to update HISTORY.md with an "in development" version number.
2015-04-07Bump version to v1.5 for release1.5Sudar
2015-04-04Better autodetection of ARDUINO_SKETCHBOOK and ARDUINO_DIR on OSXSimon John
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-03-28Fixed typo - bracket should be backslash to continue the call to firstword()Simon John
2015-03-28Locate 1.5+ preferences.txt file on MacSudar
2015-03-27Now we know that arduino 1.6.1 uses the ~/.arduino15 directorySimon John
we can find preferences.txt Still need to find out where it looks on OSX/Cygwin
2015-03-27Add = to PARSE_BOARD regex to make it less greedy.Simon John
For instance in the Sparkfun 1.6 core, we have: promicro16.build.vid.0=0x1B4F promicro16.build.vid.1=0x1B4F promicro16.build.vid=0x1B4F So we end up matching all 3 instead of just the last one. Adding the = means we're looking for promicro16.build.vid= so not catching the .0 or .1 version.
2015-03-26Added BOARD_SUB to OBJDIR so that when changing sub boards we don't ↵Simon John
accidentally overwrite existing builds. E.g. mega1280 and mega2560 previously *both* created a "build-mega" directory, now they'll create build-mega-mega2560 and build-mega-mega1280 Only applies to 1.5+ of course, and only when BOARD_SUB is used. 1.0 will still create build-mega2560 and build-mega1280 directories (just BOARD_TAG)
2015-03-25Added ARCHITECTURE to ALTERNATE_CORE_PATH to support 1.5+ cores like ↵Simon John
arduino-tiny. arduino-tiny and damellis' attiny85 cores don't use a vendor, but they do use the avr architecture (subdirectory) in their 1.5/1.6 branches. arduino-tiny builds and is auto-detected now, still needs some work to support sub-cpu's and clocks. damellis doesn't compile, but that's not our makefile it seems.
2015-03-25Added search of PLATFORM_LIB_NAMES to ARDUINO_LIBS so that Wire.h is found ↵Simon John
on 1.6.1 and its output separately to SYS_LIB_NAMES Added "sort" to the USER/SYS/PLATFORM _LIBS so we don't get duplicates
2015-02-26Add "linuxgpio" to the list of ISP's that don't have a portonandoffables
2014-12-30Fix build.core parsingGabrielius Mickevicius
Disregard anything before first colon. E.g. build.core = arduino:arduino results in CORE = arduino Print CORE.
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-12-30Let 'build.core' from boards.txt change ARDUINO_CORE_PATHGabrielius Mickevicius
This is support for https://code.google.com/p/arduino-tiny The arduino-tiny project provides a boards.txt file and a whole separate Arduino core modified to work with attinies. Arduino.mk will now switch to that core if it finds a 'build.core' parameter in boards.txt and a folder in $(ALTERNATE_CORE_PATH)/cores by that name.
2014-12-28Let user skip MONITOR_PORT existance checkGabrielius Mickevicius
Define FORCE_MONITOR_PORT to enable. Useful if one uses 'ssh root@remotemachine avrdude' instead of the usual AVRDUDE command.
2014-12-07Do not add '.' to gcc includes search pathPhil Hord
Include files are searched for in the include search path made up from, among other places, the -I switches given to the gcc compiler. The . (dot) used for the current directory is not in the search path when the IDE builds the project and does not seem to be needed in any reasonable case. Maybe it was included because someone thought it meant to "search in the same directory as the file being compiled", but I cannot tell because the switch was already included in the first commit in this repo. In any case, the current file directory is already searched by gcc before the search path is consulted, in any case, so this switch is not needed to cause this behavior. Including the "-I." switch causes compiles to fail when libraries include a header which is coincidentally named the same as one of the user headers. For example, if the user has a Udp.h file in his sketch folder, the compile will fail if it includes the EthernetUdp.h file. A simple example is the examples/WebServer code. It fails if you do this: touch examples/WebServer/Udp.h make -C examples/WebServer But it builds ok from the IDE which does not include "." in the search path. Similarly, HelloWorld fails for the same reason if you do this: touch examples/HelloWorld/Print.h make -C examples/HelloWorld Remove the -I. switch from the CPPFLAGS directive altogether to prevent this include filename confusion and to more closely model the behavior of the IDE. Fixes #303. It may also work to move the -I. to the end of the search path, but this still would compile differently from the IDE and so it is considered not to be a useful feature to retain in any case. -- I did not add a test case here because it's not clear to me how it should be added. Should I modify HelloWorld as described above, or should I add examples/TestSearchPath/ with the same files explicitly for this test? It would be clearer for me if there was an explicit "tests" directory independent from "examples".
2014-12-03Moved location of avrdude and avrdude.conf for 1.5.8 on Linux (only!)Simon John
Subject to change during the beta phase, as its already different than 1.5.6, also may change when packaged for Debian (usually symlinked) Fixes issue #301
2014-11-29Removed all double-quoting except for comments/echo'sSimon John
Double-quoting was added in 7618da7 to allow for spaces in paths, that was a bad idea as: 1. most GNU Make functions can't handle spaces 2. it breaks variable expansion on Linux/OSX e.g. ~/sketchbook 3. Windows doesn't like double-quotes - see d5c7ed1 So basically, don't put spaces in your paths, as most Make functions can't handle them, even if escaped, and its a bit dangerous when shelling out to grep etc. Single-quoting is no better either.
2014-11-23Added support for PuTTY on WindowsPeter Mosmans
Use MONITOR_CMD=putty The optional parameter MONITOR_PARMS can be used as well
2014-11-23Improved Windows (Cygwin/MSYS) supportPeter Mosmans
Changed RESET_CMD structure under Cygwin Changed behaviour of get_monitor_port under Windows DEVICE_PATH always becomes/dev/ttyS[0-9] on Windows MONITOR_PORT always becomes com[0-9] on Windows
2014-11-10Fix speed regression since 8d443f62c, faster than 1.3.4 nowSimon John
Audited *some* use of := vs. =, when calling shell/foreach/wildcard, could probably do with more looking into.
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-11-05Made CXX compile *.cpp files instead of CC.Simon John
Fixes issue #285
2014-10-24Merge pull request #282 from sej7278/masterSudar
Add "avrispmkii" to the list of ISP's that don't have a port. Fix #279
2014-10-24Merge pull request #281 from stepcut/teensy.mkSudar
Add support for Teensyduino 3.x
2014-10-23Add's "avrispmkii" to the list of ISP's that don't have a port,Simon John
defaults to reading communication_type from avrdude.conf, which is "usb" usually, rather than setting the -P flag which is the user override.
2014-10-22move ARDUINO_DIR auto-detection into Common.mk. This allows Teensy.mk to use ↵stepcut
auto-detected location.
2014-10-14Merge pull request #277 from lukasz-e/arduino-1.5.x-libsSudar
Arduino 1.5.x libs - handle new library layout (issue #275) and hardware/vendor specific libs (issue #276)
2014-10-13do not print default (empty) ARDUINO_PLATFORM_LIB_PATH value for arduino 1.0.xLukasz Engel
2014-10-12remove unwanted TABsLukasz Engel
2014-10-12Replaced double quotes with singles when passing arguments toSimon John
avr-objcopy. Windows doesn't seem to like double quotes. Fixes issue #272, thanks @vogt31337
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-21Removed Travis-CI references from all examples. Regular usersSimon John
are not affected by test scripts/makefiles. Added makefile and gcc version info to config output. Tested on Arduino 1.0.6
2014-08-29Added *.cpp to extensions supported by "make generate_assembly"Simon John
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-17Fix regex for "make show_boards" on 1.5Simon John
In 1.5.6 the Due board has an underscore, this regex tweak allows for: arduino_due_x_dbg Arduino Due (Programming Port) arduino_due_x Arduino Due (Native USB Port)