aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSudar <sudar@sudarmuthu.com>2012-12-15 17:07:00 +0530
committerSudar <sudar@sudarmuthu.com>2012-12-15 17:07:00 +0530
commitac01a2609b365f6dd87ee56deac8ccd8843376f0 (patch)
tree99315cd4ec9d226f6db7226d1c812e0ab95d2146
parentbb172d1c42ba4c4f174f8eb32d222a19d6cc9781 (diff)
parent184230fcf2ac9075fee642be8948d406913cb7df (diff)
Merged all commits from upstream
-rw-r--r--README.md17
-rw-r--r--arduino-mk/Arduino.mk28
2 files changed, 39 insertions, 6 deletions
diff --git a/README.md b/README.md
index 233f6dc..52535c4 100644
--- a/README.md
+++ b/README.md
@@ -37,14 +37,23 @@ On Linux, you might prefer:
AVR_TOOLS_DIR = /usr
The Makefile also delegates resetting the board to a short Perl program.
-You'll need to install Device::SerialPort to use it though. On Debian or
-Ubuntu do
+You'll need to install Device::SerialPort to use it though. You'll also
+need the YAML library to run ard-parse-boards.
- apt-get install libdevice-serialport-perl libconfig-yaml-perl
+On Debian or Ubuntu:
-On other systems
+ apt-get install libdevice-serial-perl
+ apt-get install libyaml-perl
+
+On Fedora:
+
+ yum install perl-Device-SerialPort
+ yum install perl-YAML
+
+On other systems:
cpanm Device::SerialPort
+ cpanm YAML
## User Libraries
diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk
index b47a025..64bc115 100644
--- a/arduino-mk/Arduino.mk
+++ b/arduino-mk/Arduino.mk
@@ -113,6 +113,18 @@
# - Added support for utility directory
# within SYS and USER libraries
#
+# 0.10 17.ix.12 M J Oldfield
+# - Added installation notes for Fedora (ex Rickard Lindberg).
+# - Changed size target so that it looks at the ELF object,
+# not the hexfile (ex Jared Szechy and Scott Howard).
+# - Fixed ARDUNIO typo in README.md (ex Kalin Kozhuharov).
+# - Tweaked OBJDIR handling (ex Matthias Urlichs and Scott Howard).
+# - Changed the name of the Debian/Ubuntu package (ex
+# Scott Howard).
+# - Only set AVRDUDE_CONF if it's not set (ex Tom Hall).
+# - Added support for USB_PID/VID used by the Leonardo (ex Dan
+# Villiom Podlaski Christiansen and Marc Plano-Lesay).
+#
########################################################################
#
# PATHS YOU NEED TO SET UP
@@ -511,6 +523,15 @@ ifndef F_CPU
F_CPU = $(shell $(PARSE_BOARD_CMD) $(BOARD_TAG) build.f_cpu)
endif
+# USB IDs for the Leonardo
+ifndef USB_VID
+USB_VID = $(shell $(PARSE_BOARD_CMD) $(BOARD_TAG) build.vid)
+endif
+
+ifndef USB_PID
+USB_PID = $(shell $(PARSE_BOARD_CMD) $(BOARD_TAG) build.pid)
+endif
+
# normal programming info
ifndef AVRDUDE_ARD_PROGRAMMER
AVRDUDE_ARD_PROGRAMMER = $(shell $(PARSE_BOARD_CMD) $(BOARD_TAG) upload.protocol)
@@ -541,8 +562,10 @@ ifndef ISP_EXT_FUSE
ISP_EXT_FUSE = $(shell $(PARSE_BOARD_CMD) $(BOARD_TAG) bootloader.extended_fuses)
endif
-# Everything gets built in here
-OBJDIR = build-cli
+# Everything gets built in here (include BOARD_TAG now)
+ifndef OBJDIR
+OBJDIR = build-$(BOARD_TAG)
+endif
########################################################################
# Local sources
@@ -651,6 +674,7 @@ USER_LIB_OBJS = $(patsubst $(USER_LIB_PATH)/%.cpp,$(OBJDIR)/libs/%.o,$(USER_LIB_
CPPFLAGS += -mmcu=$(MCU) -DF_CPU=$(F_CPU) -DARDUINO=$(ARDUINO_VERSION) \
-I. -I$(ARDUINO_CORE_PATH) -I$(ARDUINO_VAR_PATH)/$(VARIANT) \
$(SYS_INCLUDES) $(USER_INCLUDES) -g -Os -w -Wall \
+ -DUSB_VID=$(USB_VID) -DUSB_PID=$(USB_PID) \
-ffunction-sections -fdata-sections
CFLAGS += -std=gnu99
CXXFLAGS += -fno-exceptions