Commit graph

721 commits

Author SHA1 Message Date
John Whittington
4c4c9ac2f0 Merge with upstream 2017-09-01 12:42:45 +00:00
John Whittington
62f2d70815 Use LOCAL_SRC variable due to proir assert and only scan libs if there are libs 2017-09-01 12:33:48 +00:00
Simon John
5fcd04cdef Merge pull request #516 from szeder/quote-prefix-tag
Quote the prefix tag in the space_pad_to function
2017-08-11 09:27:10 +01:00
SZEDER Gábor
a80518e308 Quote the prefix tag in the space_pad_to function
POSIX shells treat an unquoted [abcd] as a pattern bracket expression
and apply it for filename expansion.  This kicks in and causes
troubles in the space_pad_to function when it's called to pad prefix
tags like '[AUTODETECT]', because the argument holding such a tag is
passed to a shell unquoted.  The result is funny output when the
directory containing the Makefile also contains any files or
directories, whose name is a single upper-case character that can be
found in any prefix tags:

  $ touch A B C D
  $ make
  -------------------------
  Arduino.mk Configuration:
  - A C D                CURRENT_OS = LINUX
  - [USER]               ARDUINO_DIR = /home/szeder/src/arduino/arduino-1.8.1
  - [USER]               ARDMK_DIR = /home/szeder/src/arduino/Arduino-Makefile
  - A C D                ARDUINO_VERSION = 181
  - A D                  ARCHITECTURE = avr
  - A D                  ARDMK_VENDOR = arduino
  - A D                  ARDUINO_SKETCHBOOK =
  <snip>

Prevent this by quoting space_pad_to's parameter when passing it to a
shell.
2017-08-08 23:41:28 +02:00
Simon John
c116e48418 Merge pull request #510 from sej7278/master
Add -fno-devirtualize to CXXFLAGS_STD
2017-07-25 06:13:48 +01:00
Simon John
d1156e8fdf Add -fno-devirtualize to CXXFLAGS_STD to workaround a g++ bug. As this could impact performance we should track when the issue is fixed upstream to remove the flag again (see links from Issue #486)
Enabled colourised diagnostics from avr-gcc

We forgot to increase ARDMK_VERSION for the 1.6.0 release
2017-07-21 21:26:11 +01:00
Sudar Muthu
d738cac966 Merge pull request #508 from fuzzyTew/robotis-opencm
Add makefile for Robotis OpenCM
2017-07-16 17:48:42 +05:30
Karl Semich
5bcb64ade9 Add makefile for Robotis OpenCM & update version to 1.6.0 2017-07-12 23:55:05 +00:00
John Whittington
81673d4666 Support for generation of project tags file
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-04 10:47:04 +01:00
Simon John
ba96840399 Merge pull request #501 from MilanV/master
Document how to setup Makefile for 3rd party boards
2017-06-02 10:38:16 +01:00
Milan Vancura
1b5494f262 Fix paths in the example Makefile 2017-06-02 09:54:35 +02:00
Milan Vancura
60d7e9401e Document how to setup Makefile for 3rd party boards 2017-06-02 00:37:03 +02:00
Simon John
c41763851b Merge pull request #500 from sej7278/master
Fix autodetection of USB_PID on SparkFun's new ProMicro core

Remove use of tilde from documentation
2017-06-01 21:33:52 +01:00
Simon John
d1363592f2 Fix autodetection of USB_PID on SparkFun's new ProMicro core
Remove use of tilde in documentation as ~ doesn't work, use $(HOME) instead
2017-06-01 19:22:28 +01:00
Simon John
807cf65f71 Merge pull request #493 from sej7278/master
Add support for cu as MONITOR_CMD
2017-04-01 23:16:06 +01:00
Simon John
18c6474d50 Add support for cu as MONITOR_CMD, use ~. to exit, be mindful when using over ssh 2017-04-01 23:06:28 +01:00
Simon John
6bffcd3383 Update HISTORY.md 2017-03-13 15:38:26 +00:00
Simon John
a4e77e4692 Merge pull request #488 from cbosdo/show_submenu-fix
show_submenu: fix sed expression
2017-03-13 15:34:51 +00:00
Cédric Bosdonnat
928a642265 show_submenu: fix sed expression
The matching parentheses and | in sed expresssions need to be escaped
or sed will consider like normal characters.

Without this fix, make show_submenu was showing lines like this one:

  pro.menu.cpu.8MHzatmega328    ATmega328 (3.3V, 8 MHz)

It now properly outputs lines like this:

  pro        8MHzatmega328   ATmega328 (3.3V, 8 MHz)

This output is much less misleading to users especially newcomers.
2017-03-13 14:38:52 +01:00
Simon John
9f2cec3204 Update HISTORY.md 2017-03-12 22:05:23 +00:00
Simon John
ed58b61983 Merge pull request #487 from ericdand/patch-1
Correct spelling mistake in PuTTY section

Thanks @ericdand
2017-03-12 22:02:57 +00:00
Eric Dand
2674885bf0 Correct spelling mistake in PuTTY section
MONITOR_PARMS should be MONITOR_PARAMS.
2017-03-12 14:30:29 -07:00
Simon John
08b4f441ff Update HISTORY.md 2017-02-12 18:13:50 +00:00
Simon John
24cbf1b2a3 Merge pull request #477 from DaWelter/master
Auto-detect F_CPU for Teensy boards

Thanks for the PR @DaWelter 

i'll update HISTORY.md @sudar
2017-02-12 18:11:42 +00:00
Michael Welter
c6012a4be5 Autodetect the fastest speed with which various Teensy boards can run. Alternatively, set the speed in MHz via BOARD_SUB. 2017-02-12 11:22:36 +01:00
Sudar Muthu
12522f3726 Merge pull request #475 from Batchyx/master
Fix generate_assembly for cpp files.
2017-01-24 09:50:25 +05:30
batchy
697c95e26f Arduino.mk: Fix generating assembly for cpp files.
Do not include the Arduino header when generating assembly for .cpp
files with generate_assembly.  This was likely a copy-paste error.
2017-01-21 12:32:25 +01:00
batchy
e126d37f9b History.md: Re-add "In Development" section. 2017-01-21 12:32:25 +01:00
Sudar Muthu
7a14d670eb Bump up version to 1.5.2 for release 2017-01-11 16:48:33 +05:30
Sudar Muthu
03e62130f3 Merge pull request #469 from wilywampa/master
Fix parsing of Teensy options with multiple "="s
2016-11-13 08:49:42 +05:30
Jacob Niehus
9533e7a392 Fix parsing of Teensy options with multiple "="s 2016-11-12 14:56:48 -07:00
Sudar Muthu
2c1155e156 Merge pull request #468 from georgeharker/master
Update to work with Arduino 1.6.12 and Teensyduino 1.30
2016-11-09 07:27:07 +05:30
George Harker
7d564b6a26 fix incorrect variable ref 2016-11-05 12:19:15 -07:00
George Harker
0b1aa8d26a hard code ARCHITECTURE if not found in boards.txt, update history 2016-11-05 12:10:15 -07:00
George Harker
3830299491 add comment on additional vars 2016-11-04 15:32:57 -07:00
George Harker
bcf664079c fix mcu 2016-11-04 11:37:10 -07:00
George Harker
0c55418057 fix platform dir 2016-11-04 11:28:18 -07:00
George Harker
1d7773938c make it work with modern arduino and teensyduino scripts 2016-11-04 11:21:02 -07:00
Simon John
23556d759c Merge pull request #465 from sej7278/master
Changed the PARSE_BOARD function to handle colons
2016-10-12 00:11:49 +01:00
Simon John
a6a9928859 Changed the PARSE_BOARD function to handle colons found in things like build.core and
build.variant

Fixes Issue #461
2016-10-11 19:59:35 +01:00
Simon John
299c1831cc Merge pull request #464 from sej7278/master
Changed LTO support check to avr-gcc > 4.9.0
2016-10-11 15:35:35 +01:00
Simon John
fe020380b6 Changed LTO support check to avr-gcc > 4.9.0 as the 4.8.1 bundled with the 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-10-11 15:23:36 +01:00
Simon John
f3f7684463 Merge pull request #453 from sej7278/master
Updated changelog
2016-09-08 18:34:34 +01:00
Simon John
c426e07fe2 Updated changelog 2016-09-08 18:31:52 +01:00
Sudar Muthu
fd76029b9a Merge pull request #452 from sej7278/master
Added LTO flags etc. to provide smaller/faster AVR code.
2016-09-08 21:39:53 +05:30
Simon John
0b9ba23520 Updated docs regarding CXXFLAGS etc. for LTO support 2016-09-08 15:48:04 +01:00
Simon John
ab261ddd6e Added LTO flags etc. to provide smaller/faster AVR code.
Works with 1.6.10 or later; or 1.0.x with avr-gcc toolchain 4.8+
2016-09-08 14:49:36 +01:00
Sudar Muthu
7c28446e5e Merge pull request #449 from sovcik/master
PySerial installation for Windows updated
2016-08-25 22:32:16 +05:30
Jozef Sovcik
2dd7c567c0 PySerial installation for Windows updated (#1) 2016-08-25 18:36:01 +02:00
Sudar Muthu
0ec1489414 Merge pull request #445 from sej7278/master
Fix for 1.6.10 version detection
2016-07-29 20:48:27 +05:30