aboutsummaryrefslogtreecommitdiff
path: root/arduino-mk/Arduino.mk
AgeCommit message (Collapse)Author
2013-09-25Bump up version to v1.0.1 for release1.0.1Sudar
This is just a minor bug fix release
2013-09-25Unconditionally add `-D` in avrdude options.Sudar
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-22Bump up version to v1.0.0 for release1.0.0Sudar
2013-09-19Revert "Make all executables overridable"Sudar
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 66eec82a3af8ee5aa16e28230346e4a1f166da2b.
2013-09-18Make all executables overridableSudar
This is helpful for #119 which will add support for colorgcc
2013-09-18Remove redundant list of targetsSudar
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-18Whitespace and formatting fixSudar
No code or functionality change
2013-09-15Added help target showing a summary of all the available targetsxPaolo D'Apice
2013-08-18Added detailed instructions for using alternative coresSimon John
Should close Issue #60
2013-08-09Allow building with Arduino core, without a .ino/.pde fileSudar
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-09Autodetect baudrate only if either a .ino/.pde is presentSudar
Because of the way the autodetect code works, if no .ino/.pde file is present, then the makefile hangs
2013-07-27Merge pull request #112 from openxc/silent-mkdirSudar
Silence output from the many mkdir calls.
2013-07-28Update instructions about ARDMK_DIR and ARDMK_PATHSudar
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-28Print config info about ARDMK_DIR after Common.mk file is includedSudar
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-28Remove duplicate definition of `show_config_variable` macroSudar
In 5ed507cf43e048f0a6a527c97ea6ed2e8cdb451f 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-28Remove unnecessary checks for `ARDMK_DIR`Sudar
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-12Silence output from the many mkdir calls.Christopher Peplin
2013-07-12Make `ARDMK_PATH` and `ARDMK_DIR` backward compatibleSudar
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-11Merge pull request #106 from openxc/build-in-subdirsSudar
Allow objects to be in arbitrary subdirectories.
2013-07-10Merge branch 'serial-port-variable-name' of ↵Sudar
git://github.com/openxc/Arduino-Makefile into openxc-serial-port-variable-name
2013-07-10Rename ARDUINO_PORT to MONITOR_PORT to reflect support for other platforms.Christopher Peplin
This commit includes backwards compatibility with the ARDUINO_PORT flag if that's set. Fix #109
2013-07-09Don't require an IDE preferences file, fallback to default sketchbook.Christopher Peplin
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-09Allow objects to be in arbitrary subdirectories.Christopher Peplin
2013-07-09Remove Perl YAML dependency from documentation.Christopher Peplin
YAML is no longer necessary in Perl since ard-parse-boards was implemented in the Makefile itself.
2013-07-09Replace Leonardo detection with Caterina detectionSudar
Checks bootloader.path for "caterina", instead of checking only for leonardo Fix #96 Fix #97 Fix #102
2013-07-09Compile with debugging symbols only when DEBUG=1.Christopher Peplin
Fix #101
2013-07-09Implement ard-parse-boards with shell scripting instead of Perl.Christopher Peplin
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-09Add support for the Digilent chipKIT platformChristopher Peplin
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-03moved reset routines down past where we define CATERINASimon John
my understanding of recursively expanded variables wasn't correct
2013-07-03Replace Leonardo detection with Caterina detectionSimon John
Checks bootloader.path for "caterina"
2013-07-02Move wait-for-reconnection logic inside ard-reset-arduinoSudar
When a Leonardo based board is reset, the port disappears and we need to wait till it comes back. Earlier this logic was handled by a separate shell script. Now the logic is moved inside the ard-reset-arduino perl script. This is done to reduce the number of binaries that are needed by the makefile. Fix #95
2013-07-01Move binary sketch size verification logic inside makefileSudar
Earlier bin/ard-verify-size shell script was used to validate that the binary hex file size is less than the flash memory of the target microcontroller. This commit removes the dependency on the external shell script, by moving the binary size verification logic inside the makefile itself. Fix #54
2013-06-29Improve avrdude and avrdude_conf path auto detectionSudar
In Arduino Linux distribution, avrdude and avrdude.conf files are placed in different path. This commit improves the autodetection of avrdude and avrdude.conf paths by considering this fact. Fix #48
2013-06-29Add CURRENT_OS macro which has the current osSudar
Right now CURRENT_OS can have one of the following values - WINDOWS - LINUX - MAC
2013-06-29Print config info about AVR_TOOLS_DIR alwaysSudar
In 25a31afbd92f03a1df1b50e3620f40afedd2e67e a bug was introduced which prevented the config info for AVR_TOOLS_DIR to be printed when AVRDUDE_CONF was defined. This commit moves the config printing statement for AVR_TOOLS_DIR outside the condition which checks whether AVRDUDE_CONF is defined.
2013-06-25Don't overwrite AVRDUDE_CONF if AVR_TOOLS_DIR is not set.Ralf Doering
If one likes to use avrdude from outside of Arduino together with Arduino-bundled gcc crosstolchain, the setting of AVRDUDE_CONF got overwritten.
2013-06-25Remove tab from empty line.Ralf Doering
If editing and saving Arduino.mk with emacs, emacs complains about "Suspicious line 1050". This line is empty but contains an extra tab. Signed-off-by: Ralf Doering <ralf@rdoering.net>
2013-06-23Remove redundant checks for ARDUINO_DIRSudar
2013-06-23Auto detect alternate core path from sketchbook folderSudar
Fix #86
2013-06-22Remove "utility" from example makefilesSudar
From commit fc968b919148eb99d1d58a8454a71bf703ca7c78 files inside utility are automatically build. Fix #84
2013-06-21Add support for reseting "Micro" Arduino.Simon John
Micro can be reset using Leonardo reset functions itself. So call Leonardo reset functions for Micro as well. The reset function seems to have some issues for Micro and is not 100% reliable, like Leonardo. See comments in #30. Fix #80 Fix #83
2013-06-20Add support for specifying optimization levelSudar
Fix #81
2013-06-20Add $OBJDIR to the list of configuration that gets printedSudar
Fix #77
2013-06-20Release v0.12.00.12.0Sudar
2013-06-20Deprecate "generated_assembly" target in favour of "generate_assembly"Sudar
The deprecated target will be removed in v1.0.0. Fix #79
2013-06-19Fix make generated_assemblyMatthijs Kooijman
Before, .ino and .pde files would be converted to .cpp files and there is a rule to convert those .cpp files to .s files for make generated_assembly. However, since 1f043bb (Compile .ino and .pde files directly) these intermediate .cpp files are no longer generated, breaking the rule to generate .s files. This fixes this by also generating .s files from .ino and .pde files directly. Closes #76
2013-06-19Let the .pde and .ino rules also depend on $(COMMON_DEPS)Matthijs Kooijman
In 1f043bb (Compile .ino and .pde files directly), this dependency was accidentally dropped from these rules. This fixes this by adding it again.
2013-06-15Release v0.11.00.11.0Sudar
2013-06-15Add support for compiling plain AVR C filesSudar
To compile plain AVR C files, the variable NO_CORE should be initialized to a non-empty value. When NO_CORE is set, the following changes happen - boards.txt file is not parsed. The user should explicitly set MCU, F_CPU, fuse bits etc. - MONITOR_BAUDRATE is not calculated Fix #63
2013-06-15Handle cases where certain fuse bits are not presentSudar
Introduce two new variables AVRDUDE_ISP_FUSES_PRE and AVRDUDE_ISP_FUSES_POST which are set based on whether the fuse bits are present or not. avrdude is invoked to set fuse bits only if these new variables are not empty. Fix #61