Commit graph

520 commits

Author SHA1 Message Date
Simon John
495a0b8f91 Always forgetting the history! 2015-03-25 12:10:13 +00:00
Simon John
f6c69c9155 Added search of PLATFORM_LIB_NAMES to ARDUINO_LIBS so that Wire.h is found 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-03-25 11:58:19 +00:00
Sudar
ea67b57949 Add credit to the contributors 2015-03-14 15:41:30 +05:30
Sudar Muthu
fb94c84bff Merge pull request #322 from onandoffables/linuxgpio
Add "linuxgpio" to the list of ISP's that don't have a port
2015-02-27 14:32:03 +05:30
onandoffables
79ea7e222f Add "linuxgpio" to the list of ISP's that don't have a port 2015-02-26 21:17:53 +01:00
Sudar
64145418f3 Give credit to @fbielejec for #321 2015-02-25 14:58:27 +05:30
Sudar Muthu
dddce32ef8 Merge pull request #321 from fbielejec/master
instructions on setting CodeBlocks IDE to use the makefiles
2015-02-25 14:56:02 +05:30
filip
1ec5e6c253 instructions on setting CodeBlocks IDE to use the makefiles 2015-02-25 09:34:21 +01:00
poofjunior
d535bf5fde Ability to modify USB_TYPE in Teensy.md
See #313
2015-01-23 15:42:13 +05:30
Sudar
27ed197acc Merge pull request #315 from sej7278/master
Get all the commits before #313
2015-01-23 15:23:55 +05:30
Simon John
a6505e6da8 Change CXX_NAME to CXX as per the EmacsWiki for Flymake instructions.
Makes it a bit more standard too.
2015-01-01 01:25:23 +00:00
Sudar
cfd6af90fb Merge pull request #307 from Gaboose/pr
Ease flashing through ssh. Tweak alternate core support. #306 rebased
2014-12-31 11:16:59 +05:30
Gabrielius Mickevicius
e639f81b6c Fix build.core parsing
Disregard anything before first colon.
E.g. build.core = arduino:arduino results in CORE = arduino
Print CORE.
2014-12-30 17:45:36 +02:00
Gabrielius Mickevicius
de602e8b61 Typo 2014-12-30 17:45:36 +02:00
Gabrielius Mickevicius
6d549c89aa Tidy new arduino mk vars
Add CORE and FORCE_MONITOR_PORT to arduino-mk-vars.md and FORCE_MONITOR_PORT
to config print.
2014-12-30 17:45:36 +02:00
Gabrielius Mickevicius
4b4592ac3e Note on using root in BlinkNetworkRPi 2014-12-30 17:45:36 +02:00
Gabrielius Mickevicius
ecb05452f7 Update changelog 2014-12-30 17:45:36 +02:00
Gabrielius Mickevicius
a930c9983f Example: set fuses and upload hex on remote programmer
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.
2014-12-30 17:45:36 +02:00
Gabrielius Mickevicius
3442ef8e6d Let 'build.core' from boards.txt change ARDUINO_CORE_PATH
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-30 17:45:36 +02:00
Gabrielius Mickevicius
3754e5c012 Let user skip MONITOR_PORT existance check
Define FORCE_MONITOR_PORT to enable.
Useful if one uses 'ssh root@remotemachine avrdude' instead of the
usual AVRDUDE command.
2014-12-28 23:26:35 +02:00
Sudar
dcc7512284 Merge pull request #304 from phord/master
Do not add '.' to gcc includes search path
2014-12-08 19:33:16 +05:30
Phil Hord
d998de8d84 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".
2014-12-07 18:53:03 -05:00
Sudar
e18132e269 Merge pull request #302 from sej7278/master
Moved location of avrdude and avrdude.conf for 1.5.8 on Linux (only!)
2014-12-04 10:31:15 +05:30
Simon John
9c9491d1cc 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
2014-12-03 22:38:50 +00:00
Sudar
f946670f3d Merge pull request #300 from sej7278/master
Removed all double-quoting except for comments/echo's
2014-11-30 09:54:12 +05:30
Simon John
b45a163b9d 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.
2014-11-29 22:31:49 +00:00
Sudar
131809e508 Add information about installing dependencies when installing using
homebrew

Refer to https://github.com/sudar/homebrew-arduino-mk/issues/2#issuecomment-64432785
2014-11-27 19:48:25 +05:30
Sudar
32a12e46d1 Add information about homebrew in ReadME 2014-11-23 20:11:16 +05:30
Sudar
e99deb2079 Merge pull request #298 from PeterMosmans/puttywindows
Added support for PuTTY on Windows
2014-11-23 18:56:08 +05:30
Peter Mosmans
78452da702 Added support for PuTTY on Windows
Use MONITOR_CMD=putty
The optional parameter MONITOR_PARMS can be used as well
2014-11-23 20:38:38 +10:00
Sudar
4b7d999073 Merge pull request #297 from PeterMosmans/cygwincom
Improved Windows (Cygwin/MSYS) support
2014-11-23 15:46:53 +05:30
Peter Mosmans
5f1a5a2ac0 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
2014-11-23 19:56:49 +10:00
Sudar
6053817833 Merge pull request #292 from sej7278/master
Fix speed regression

Fix #280
2014-11-11 19:26:31 +05:30
Simon John
0df314249a Fix speed regression since 8d443f62c, faster than 1.3.4 now
Audited *some* use of := vs. =, when calling shell/foreach/wildcard,
could probably do with more looking into.
2014-11-10 23:19:00 +00:00
Sudar
5d7bc158d3 Merge pull request #288 from tchebb/fix-ispload-erase
Allow avrdude to erase the chip before programming during ispload
2014-11-08 12:50:12 +05:30
Thomas Hebb
05b57c3cc3 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.
2014-11-07 22:47:08 -05:00
Sudar
fe5c2b6ce1 Merge pull request #289 from sej7278/master
Arduino changed the download link again
2014-11-08 09:03:06 +05:30
Simon John
893adf7f98 Arduino changed the download link again, this time it uses a script,
curl handles it ok luckily.
2014-11-08 02:51:39 +00:00
Sudar
36213ceb06 Merge pull request #287 from sej7278/master
Made CXX compile *.cpp files instead of CC.

Fix #285
2014-11-05 21:21:05 +05:30
Simon John
713997d602 Made CXX compile *.cpp files instead of CC.
Fixes issue #285
2014-11-05 15:09:43 +00:00
Sudar
73f08aad76 Merge pull request #282 from sej7278/master
Add "avrispmkii" to the list of ISP's that don't have a port.

Fix #279
2014-10-24 09:03:17 +05:30
Sudar
3eee9851bb Merge pull request #281 from stepcut/teensy.mk
Add support for Teensyduino 3.x
2014-10-24 09:02:51 +05:30
Simon John
a2c8fe5196 Add's "avrispmkii" to the list of ISP's that don't have a port,
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-23 23:44:14 +01:00
stepcut
daacad1d77 added info about Teensy to README.md 2014-10-22 16:44:53 -05:00
stepcut
f162d8fee3 put ARDUINO_DIR block after Travis-CI block else travis will fail. 2014-10-22 15:43:01 -05:00
stepcut
1cddbfb2f4 Teensy.mk: simplify setting of MCU and MCU_FLAG_NAME 2014-10-22 15:29:43 -05:00
stepcut
6534cf8f15 move ARDUINO_DIR auto-detection into Common.mk. This allows Teensy.mk to use auto-detected location. 2014-10-22 15:27:59 -05:00
stepcut
1f5e0b3367 Make BlinkTeensy a NON_TESTABLE_EXAMPLES 2014-10-22 12:29:36 -05:00
stepcut
edf90842c5 Added BlinkTeensy example which uses the Teensy.mk file. 2014-10-22 12:23:52 -05:00
stepcut
b6eb4a8686 Added Teensy to HISTORY.md 2014-10-15 18:33:11 -05:00