aboutsummaryrefslogtreecommitdiff
path: root/arduino-mk/Arduino.mk
AgeCommit message (Collapse)Author
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
2013-06-15Add the ability to configure avrdude optionsSudar
A new environmental variable AVRDUDE_OPTS is added, which can be used to configure the options passed to avrdude. Fix #53
2013-06-15Add a warning when HEX_MAXIMUM_SIZE is not specifiedSudar
2013-06-15Fix whitespace issuesSudar
2013-06-15Replace hardcoded executables with variableSudar
2013-06-14Tag v0.10.6 for release0.10.6Sudar
2013-06-14Merge pull request #72 from matthijskooijman/indent-fixSudar
Don't indent variable assignments with tabs
2013-06-14Don't indent variable assignments with tabsMatthijs Kooijman
This causes make to consider the line part of the preceding recipe, causing the variable to remain unset and the preceding recipe to break. In this case, this was the recipe for user libraries with .c files, which is uncommon enough for this to go unnoticed. This was broken in 3bce1d88 (Allow adding extra common dependencies).
2013-06-14Move reseting Leonardo logic to ard-reset-arduinoSudar
ard-reset-leonardo which was used for reseting Leonardo was written in Python. Now the logic is added inside the ard-reset-arduino perl script itself. Fix #62 Squashed commit of the following: commit a63366980f452780f9f7894a8c7b77ca9cd9dcdd Author: Simon John <git@the-jedi.co.uk> Date: Fri Jun 14 11:36:00 2013 +0200 who put a space in the shebangs?! commit c798eb26ea12351186b8f64266d98f44ed791270 Author: Simon John <git@the-jedi.co.uk> Date: Fri Jun 14 11:10:12 2013 +0200 replaced ard-reset-leonardo with an update to ard-reset-arduino which is now called from Arduino.mk with the --leonardo flag removed some trailing whitespace upped version string in Arduino.mk
2013-06-13Merge pull request #70 from matthijskooijman/libs-fixSudar
Fix directory creation for library source files
2013-06-13Fix directory creation for library source filesMatthijs Kooijman
In commit 3bce1d88 (Allow adding extra common dependencies), the way $(OBJDIR) was created changed. Instead of having some ad-hoc mkdir calls around, all relevant rules were made to depend on the directory instead. However, this change didn't take into account that the object files for libraries live instead a subdirectory of $(OBJDIR), which was no longer automatically created. This made compilation of all libraries fail, on a clean build directory. Fixing the rules to depend on $(dir $@) or $(dir %) doesn't work, since those function calls are expanded by making upon reading the file, not later when the rule is actually matched. Therefore, this commit restores the previous explicit mkdir calls for library object files. The non-library objects files, which do not live in a subdirectory, still use the dependency approach as before. Fixes: #58
2013-06-13Make serial baudrate detection work in MacSimon John
Replace regex used for detecting serial baudrate. New regex is tested in both debian and mountain lion. fix #52 - serial monitor baudrate detection
2013-06-13Change the way AUTO_ARDUINO_VERSION is computedSimon John
adds another pass to sed to remove the '1:' from debian version numbers
2013-06-13fixed whitespace and /dev/null redirectionSimon John
2013-06-12Correct the build directory name in commentsSudar
2013-06-11Release v0.10.50.10.5Sudar
2013-06-11Add support for leonardo.Sudar
Leonardo board requires a new way of handling board reset. There is a new script which does the reset differently for leonardo boards. close #30 and close #44
2013-06-09Enhanced support for programming using Arduino as ISP. Fixes #56Sudar
2013-06-09Enhanced config detection messagesSudar
2013-06-09Strip extra whitespace from the variable. Fixes #57Sudar
2013-06-08Added leonardo support. Took Code from @guicho271828Sudar
2013-06-08Moved comments outside the rule. Otherwise the comments were getting printedSudar
2013-06-06Fixed some typos in commentsSudar
2013-06-02Reformatted file and changed some wrong tabs into spacesSudar
2013-05-31Added ifndef ARDUINO_VAR_PATH for compiling for the attinySudar
2013-05-31Allow adding extra common dependenciesSudar
2013-05-31Formatting and typo fixesSudar
2013-05-31Add USB_VID and USB_PID to CPPFLAGS only if the board is Leonardo. Fixes #43 ↵Sudar
and fixes #51
2013-05-31Added information about the changes that went in v0.10.40.10.4Sudar