| Age | Commit message (Collapse) | Author |
|
|
|
Implements two new make rules: 'net_set_fuses' executes a single
ssh command, 'net_upload' pipes hex through ssh connection.
The example also showcases the FORCE_MONITOR_PORT feature.
|
|
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.
|
|
Define FORCE_MONITOR_PORT to enable.
Useful if one uses 'ssh root@remotemachine avrdude' instead of the
usual AVRDUDE command.
|
|
Do not add '.' to gcc includes search path
|
|
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".
|
|
Moved location of avrdude and avrdude.conf for 1.5.8 on Linux (only!)
|
|
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
|
|
Removed all double-quoting except for comments/echo's
|
|
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.
|
|
homebrew
Refer to https://github.com/sudar/homebrew-arduino-mk/issues/2#issuecomment-64432785
|
|
|
|
Added support for PuTTY on Windows
|
|
Use MONITOR_CMD=putty
The optional parameter MONITOR_PARMS can be used as well
|
|
Improved Windows (Cygwin/MSYS) support
|
|
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
|
|
Fix speed regression
Fix #280
|
|
Audited *some* use of := vs. =, when calling shell/foreach/wildcard,
could probably do with more looking into.
|
|
Allow avrdude to erase the chip before programming during ispload
|
|
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.
|
|
Arduino changed the download link again
|
|
curl handles it ok luckily.
|
|
Made CXX compile *.cpp files instead of CC.
Fix #285
|
|
Fixes issue #285
|
|
Add "avrispmkii" to the list of ISP's that don't have a port.
Fix #279
|
|
Add support for Teensyduino 3.x
|
|
defaults to reading communication_type from avrdude.conf, which
is "usb" usually, rather than setting the -P flag which is the
user override.
|
|
|
|
|
|
|
|
auto-detected location.
|
|
|
|
|
|
|
|
upload/reset stuff a little more. Add COPYRIGHT block.
|
|
Arduino 1.5.x libs - handle new library layout (issue #275) and hardware/vendor specific libs (issue #276)
|
|
|
|
|
|
|
|
|
|
|
|
Replaced double quotes with singles.
Fix #272
|
|
avr-objcopy. Windows doesn't seem to like double quotes.
Fixes issue #272, thanks @vogt31337
|
|
- 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.
|
|
Update Travis-CI scripts to test against Arduino v1.0.6
|
|
Linked Fedora packaging instructions to homepage.
Added Raspbian to distro's with arduino-mk apt packages.
|
|
|
|
Remove Travis-CI references from all examples
Fix #250
Fix #208
|
|
are not affected by test scripts/makefiles.
Added makefile and gcc version info to config output.
Tested on Arduino 1.0.6
|
|
Move tests back to 'examples', skip non-testable examples when testing.
Fix #259
Fix #260
|