Commit graph

206 commits

Author SHA1 Message Date
Sudar
6e2708a446 Bump up version number to v1.1.0 for release 2013-12-26 16:07:58 +05:30
Sudar
7af27ae494 Use ARDUINO_HEADER variable instead of hardcoded file names
Fix #131
2013-12-26 16:00:08 +05:30
mahoy
d3e7eedd5f Allow target specific optimization levels/debug flags
Changing the optimization level from -Os to something else breaks the
SoftwareSerial library. This patch allow optimization flags to be set on a
per target basis.
2013-12-20 17:25:18 +01:00
Simon John
fc92c24cc0 User-defined or calculated bootloader parent directory, allows for
relative paths as defined in boards.txt  e.g. "atmega"

Also added [USER] to ARDUINO_SKETCHBOOK detection

Fixes #126
2013-12-17 09:15:33 +00:00
Sudar
1ad771fea9 Merge pull request #140 from PPvG/master
Don't append port details to avrdude for usbtiny
2013-12-16 10:03:29 -08:00
Simon John
7ea19ce322 Add option to set fuses without burning a bootloader
When using ICSP programmers e.g. usbasp, you can burn sketches directly
to the chip without having to burn a bootloader, however you do need to
set fuses e.g. if you're changing speed/BOD.

Updated help text to include "make set_fuses" and also changed
"make burn_bootloader" help text which wasn't entirely accurate.

Fix #141
2013-12-16 23:14:32 +05:30
Peter-Paul van Gemerden
5dc5cf2257 Don't append port details to avrdude for usbtiny
Fix 138
2013-12-13 10:19:29 +01:00
Christopher Peplin
bc03025596 Adjust path to avrdude/avrdude.conf for MPIDE in Linux. 2013-12-08 15:07:36 -05:00
anthony cantor
24128a1819 Use MAKEFILE_LIST to get the name of the make file
This way we don't assume the make file is 'Makefile' and it will
work even if it is named as 'makefile' or 'makefile-uno'

Fix #130
2013-12-05 12:25:53 +05:30
Ladislas
e04bb4d7d4 Auto detect and include libraries specified in USER_LIB_PATH
Fix #135
2013-12-05 12:12:15 +05:30
Christopher Peplin
ef521d284a Include assembly vector table in chipKIT build.
* Added build step for assembly files in CORE
* Removed duplicate flags from AS build step
2013-12-03 11:24:19 -05:00
Christopher Peplin
58f1cb249c Add common linker script for MPIDE version 0023-*-20130817-test. 2013-12-03 10:27:44 -05:00
Thomas Sigurdsen
d32d612a4b Change echo for printf
rationale:
http://unix.stackexchange.com/questions/65803/why-is-printf-better-than-echo

fix #129
2013-11-27 17:07:47 +05:30
Sudar
51f1271b32 Show correct path to arduino.mk file in help message
Fix #120
2013-10-06 19:20:52 +05:30
Sudar
4fb3e089bb Add burn_bootloader target
Code to burn fuses is moved from ispload target to this new target, so
that fuses are burned only once when needed.

Fix #85
2013-10-06 19:14:50 +05:30
Sudar
7961a86286 In ISP mode, read baudrate and programmer from boards.txt
Arduino IDE also reads this from boards.txt file

Fix #125
2013-10-06 18:14:58 +05:30
Sudar
a17cf2af96 Ignore commented lines while parsing boards.txt file
Fix #124
2013-10-06 18:13:32 +05:30
Sudar
9ff2b2e4d6 Don't append port details to avrdude for usbasp
When usbasp is used as programmer, there is no need to specify the port
to avrdude.

Fix #123
2013-10-06 17:43:03 +05:30
Sudar
9c22972b98 Bump up version to v1.0.1 for release
This is just a minor bug fix release
2013-09-25 15:22:05 +05:30
Sudar
0f68487501 Unconditionally add -D in avrdude options.
This is needed in Mega boards, because of a bug in Mega bootloader. See
https://github.com/sudar/Arduino-Makefile/issues/114#issuecomment-25011005
for detailed explanation.

Fix #114
2013-09-25 15:18:14 +05:30
Sudar
8cf353d551 Bump up version to v1.0.0 for release 2013-09-22 18:31:44 +05:30
Sudar
6300679343 Revert "Make all executables overridable"
If these executables are not overridden in the child makefile, then the
default values are not set properly in the master makefile.

This complicates the solution for #119 :(

This reverts commit 66eec82a3a.
2013-09-19 16:22:28 +05:30
Sudar
66eec82a3a Make all executables overridable
This is helpful for #119 which will add support for colorgcc
2013-09-18 16:44:24 +05:30
Sudar
50e407f8a7 Remove redundant list of targets
After #118, we have a separate target (help) to list all available
targets. Having this list in a single place is better, since we don't
have to make changes in multiple places when things change.
2013-09-18 16:38:58 +05:30
Sudar
f9027d4d13 Whitespace and formatting fix
No code or functionality change
2013-09-18 16:30:16 +05:30
Paolo D'Apice
b2eaca9b2e Added help target showing a summary of all the available targetsx 2013-09-15 15:01:07 +08:00
Simon John
c7f4400822 Added detailed instructions for using alternative cores
Should close Issue #60
2013-08-18 19:55:37 +02:00
Sudar
d719847a8a Allow building with Arduino core, without a .ino/.pde file
Till not it is not possible to build with Arduino core, without using a
.ino or .pde file. This commit removes that restriction.

However, the user has to explicitly include Arduino header files.

Fix #105
2013-08-09 22:04:36 +05:30
Sudar
c92d6724d7 Autodetect baudrate only if either a .ino/.pde is present
Because of the way the autodetect code works, if no .ino/.pde file is
present, then the makefile hangs
2013-08-09 21:39:15 +05:30
Sudar
5ea10b3e19 Merge pull request #112 from openxc/silent-mkdir
Silence output from the many mkdir calls.
2013-07-27 23:22:03 -07:00
Sudar
8fee3165f4 Update instructions about ARDMK_DIR and ARDMK_PATH
Both `ARDMK_DIR` and `ARDMK_PATH` needs to be set differently based on
whether the makefile is installed through a package or git checkout.

Refer to #111 to find out why it is needed.
2013-07-28 11:42:21 +05:30
Sudar
b78d843357 Print config info about ARDMK_DIR after Common.mk file is included
The show_config_variable macro is available in Common.mk file. So invoke
it for ARDMK_DIR only after Common.mk file is included.

Fix #111
2013-07-28 11:42:20 +05:30
Sudar
82fad52f6c Remove duplicate definition of show_config_variable macro
In 5ed507cf43 as part of #98,
[`show_config_variable` was duplicated in Arduino.mk file](https://github.com/sudar/Arduino-Makefile/pull/98#commitcomment-3561542)

But it was later found that `ARDMK_DIR` is still not getting printed
(issue #111). This commit therefore removes the duplicated macro
definition.
2013-07-28 11:42:20 +05:30
Sudar
65b426e4ad Remove unnecessary checks for ARDMK_DIR
If `ARDMK_DIR` is not defined, then it is assumed to be the directory
where `Arduino.mk` or `chipKIT.mk` is present.

Since this assumption is made, `ARDMK_DIR` will always be set, whether
the user has explicitly set it or not. Therefore checking whether
`ARDMK_DIR` is not set is unnecessary. This commit removes these
unnecessary checks.
2013-07-28 11:42:20 +05:30
Christopher Peplin
617ea09b45 Silence output from the many mkdir calls. 2013-07-12 08:37:31 -04:00
Sudar
290a4986d6 Make ARDMK_PATH and ARDMK_DIR backward compatible
When support for ChipKit was added recently (issue #98) it broke the way
ARDMK_PATH and ARDMK_DIR were handled, if the package was installed
through package. It was only working if you have done a git checkout.

This commit fixes it, but searching for `Common.mk` both in
`ARDMK_DIR/arduino-mk` and `ARDMK_DIR/` directories.

Fix #110
2013-07-12 16:07:49 +05:30
Sudar
588f7028b2 Merge pull request #106 from openxc/build-in-subdirs
Allow objects to be in arbitrary subdirectories.
2013-07-11 08:19:37 -07:00
Sudar
81c2f7fe89 Merge branch 'serial-port-variable-name' of git://github.com/openxc/Arduino-Makefile into openxc-serial-port-variable-name 2013-07-10 09:05:52 +05:30
Christopher Peplin
266d629c25 Rename ARDUINO_PORT to MONITOR_PORT to reflect support for other platforms.
This commit includes backwards compatibility with the ARDUINO_PORT flag if
that's set.

Fix #109
2013-07-10 09:05:38 +05:30
Sudar
b76d6bd783 Merge pull request #107 from openxc/chipkit-avrdude
Fix path to avrdude for chipKIT's MPIDE installation.
2013-07-09 20:08:47 -07:00
Sudar
4165bad7d6 Merge pull request #108 from openxc/no-preferences-required
Don't require an IDE preferences file, fallback to default sketchbook.
2013-07-09 19:51:11 -07:00
Christopher Peplin
3c00739165 Don't require an IDE preferences file, fallback to default sketchbook.
It should be possible to use the Makefile without ever running the
Arduino or chipKIT IDE. This change only looks for the preferences file
if the sketchbook path is not defined, and even then, will use the
default skethbook path if the preferences file is unavailable.
2013-07-09 17:03:02 -04:00
Christopher Peplin
18548b4890 Fix path to avrdude for chipKIT's MPIDE installation. 2013-07-09 16:40:27 -04:00
Christopher Peplin
9200fe3d4d Update a call to PARSE_BOARD to Makefile-style in chipKIT file. 2013-07-09 16:29:25 -04:00
Christopher Peplin
7c73209f04 Allow objects to be in arbitrary subdirectories. 2013-07-09 16:20:39 -04:00
Christopher Peplin
474da2ced4 Remove Perl YAML dependency from documentation.
YAML is no longer necessary in Perl since ard-parse-boards was implemented in the Makefile itself.
2013-07-09 13:01:08 -04:00
Sudar
6936a1dcfd Replace Leonardo detection with Caterina detection
Checks bootloader.path for "caterina", instead of checking only for
leonardo

Fix #96
Fix #97
Fix #102
2013-07-09 22:18:46 +05:30
Christopher Peplin
1bc31c814b Compile with debugging symbols only when DEBUG=1.
Fix #101
2013-07-09 21:48:31 +05:30
Christopher Peplin
87e29ea806 Implement ard-parse-boards with shell scripting instead of Perl.
Working towards dropping the dependency on Perl (which very few Windows users
have), this commit implements the required functionality from ard-parse-boards
in a few shell commands from within the Makefile.

Fix #100
2013-07-09 21:45:17 +05:30
Christopher Peplin
df88db2cfb Add support for the Digilent chipKIT platform
This commit modifies a few things in Arduino.mk to be able to support
overriding the necessary configuration options to support the chipKIT build,
and also includes an example sketch configured to build for the Max32 platform.

In addition the following changes were done as well

- Control C standard with a CFLAGS_STD flag, GNU99 by default.
- Duplicate show_config_variable in each sub-makefile.
- Remove redundant output of ARDUINO_PREFERENCES_PATH from config table.
- Defer Priting ARDMK_DIR until Arduino.mk.
- Define names of compiler tools earlier to use for path checking.

Duplicating show_config_variable is unfortunate because the code is duplicated,
but I don't see a good way around it since we need to dupliacate the check
for ARDMK_DIR before we can find Common.mk.

Fix #98
2013-07-09 21:42:05 +05:30