From adbd6532f9877b646d41f039cc1fd4cdd787d54b Mon Sep 17 00:00:00 2001 From: Andreas Lohr Date: Sun, 7 Oct 2012 10:28:10 +0200 Subject: [PATCH 1/3] set USB_VID and USB_PID only for leonardo boards --- arduino-mk/Arduino.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk index 09819ac..450e482 100644 --- a/arduino-mk/Arduino.mk +++ b/arduino-mk/Arduino.mk @@ -401,6 +401,7 @@ ifndef F_CPU F_CPU = $(shell $(PARSE_BOARD_CMD) $(BOARD_TAG) build.f_cpu) endif +ifeq ($(VARIANT),leonardo) # USB IDs for the Leonardo ifndef USB_VID USB_VID = $(shell $(PARSE_BOARD_CMD) $(BOARD_TAG) build.vid) @@ -409,6 +410,7 @@ endif ifndef USB_PID USB_PID = $(shell $(PARSE_BOARD_CMD) $(BOARD_TAG) build.pid) endif +endif # normal programming info ifndef AVRDUDE_ARD_PROGRAMMER From 77f8ee0d77b4029300e0fda877db8e091f25c5d0 Mon Sep 17 00:00:00 2001 From: Andreas Lohr Date: Sun, 7 Oct 2012 10:33:22 +0200 Subject: [PATCH 2/3] use perl from /opt/local --- bin/ard-parse-boards | 2 +- bin/ard-reset-arduino | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/ard-parse-boards b/bin/ard-parse-boards index e2de71b..a18d5b7 100755 --- a/bin/ard-parse-boards +++ b/bin/ard-parse-boards @@ -1,4 +1,4 @@ -#! /usr/bin/perl +#! /opt/local/bin/perl5 use strict; use warnings; diff --git a/bin/ard-reset-arduino b/bin/ard-reset-arduino index 22c7109..17548d6 100755 --- a/bin/ard-reset-arduino +++ b/bin/ard-reset-arduino @@ -1,4 +1,4 @@ -#! /usr/bin/perl +#! /opt/local/bin/perl5 use strict; use warnings; From 4241eccacc6a64cff1638a393a96a8a34acda9d3 Mon Sep 17 00:00:00 2001 From: Andreas Lohr Date: Sun, 7 Oct 2012 11:54:14 +0200 Subject: [PATCH 3/3] added MacPorts --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 0d949ae..9351277 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,13 @@ On Fedora: yum install perl-Device-SerialPort yum install perl-YAML +On Mac using MacPorts: + + sudo port install p5-device-serialport + sudo port install p5-YAML + + and use /opt/local/bin/perl5 instead of /usr/bin/perl + On other systems: cpanm Device::SerialPort