Skip to content

Commit 6c5589b

Browse files
committed
Merge remote-tracking branch 'sudar/master'
2 parents e3d97f7 + c0fea5c commit 6c5589b

File tree

11 files changed

+146
-81
lines changed

11 files changed

+146
-81
lines changed

Arduino.mk

Lines changed: 72 additions & 60 deletions
Large diffs are not rendered by default.

HISTORY.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,28 @@ A Makefile for Arduino Sketches
44
The following is the rough list of changes that went into different versions.
55
I tried to give credit whenever possible. If I have missed anyone, kindly add it to the list.
66

7-
### In Development
7+
### 1.5.1 (Debian version: 1.5-3) (2016-02-22)
88

9+
- New: Add show_submenu target (https://github.com/drewhutchison)
10+
- New: Add AVR Dragon to list of ISP's without a port (https://github.com/mtnocean)
911
- New: Add more board examples to Blink demo (https://github.com/sej7278)
1012
- New: Add option to split avrdude MCU from avr-gcc MCU (Issue #357) (https://github.com/hhgarnes)
1113
- New: Add support for /dev/tty.wchusbserial* (comes with cheap clones - DCCduino) (https://github.com/biesiad)
12-
- New: Add support for picocom as serial monitor(https://github.com/biesiad)
14+
- New: Add support for picocom as serial monitor (https://github.com/biesiad)
15+
- Tweak: Add support for Adafruit trinket3/trinket5/protrinket3/protrinket5 by improved BOARDS_TXT parsing (Issue #393) (https://github/com/zabereer)
1316
- Tweak: Looks for submenu items first when parsing BOARDS_TXT (Issue #347) (https://github.com/sej7278)
1417
- Tweak: Various spelling/grammar/typo fixes (https://github.com/dcousens)
1518
- Tweak: Clarified some 1.5+ issues in docs (Issue #352) (https://github.com/sej7278)
1619
- Tweak: Added some more Continuous Integration tests (https://github.com/sej7278)
1720
- Tweak: Updated Fedora instructions (https://github.com/sej7278)
21+
- Fix: Preserve original extension for object files, support asm sources in core, fixes pulseInASM (Issue #255, #364) (https://github.com/sej7278)
22+
- Fix: Make sure TARGET is set correctly when CURDIR contains spaces (https://github.com/svendahlstrand)
23+
- Fix: Ensure AVRDUDE_CONF is set when AVR_TOOLS_DIR is, not just on Windows (Issue #381) (https://github.com/sej7278)
24+
- Fix: Rename VENDOR to ARDMK_VENDOR to workaround tcsh issue (Issue #386) (https://github.com/sej7278)
25+
- Fix: Document OSX 1.0/1.6 ARDUINO_DIR differences (https://github.com/thomaskilian)
26+
- Fix: Fix regex to support BOARD_TAGs with hyphens e.g. attiny44-20 (https://github.com/sej7278)
27+
- Fix: Remove check for BOOTLOADER_PATH, just check for BOOTLOADER_FILE (Issue #402) (https://github.com/sej7278)
28+
- Fix: Port ard-reset-arduino to pyserial 3.0 (#407, #408) (https://github.com/gauteh)
1829

1930
### 1.5 (2015-04-07)
2031
- New: Add support for new 1.5.x library layout (Issue #275) (https://github.com/lukasz-e)

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ whilst [Blink](examples/Blink/Makefile) demonstrates the minimal settings requir
134134

135135
Download a copy of this repo some where in your system or install it through a package.
136136

137-
On the Mac you might want to set:
137+
On the Mac with IDE 1.0 you might want to set:
138138

139139
```make
140140
ARDUINO_DIR = /Applications/Arduino.app/Contents/Resources/Java
@@ -144,6 +144,12 @@ On the Mac you might want to set:
144144
BOARD_TAG = mega2560
145145
```
146146

147+
On the Mac with IDE 1.5+ it's like above but with
148+
149+
```
150+
ARDUINO_DIR = /Applications/Arduino.app/Contents/Java
151+
```
152+
147153
On Linux (if you have installed through package), you shouldn't need to set anything other than your board type and port:
148154

149155
```make
@@ -242,7 +248,7 @@ See examples/BlinkTeensy for example usage.
242248

243249
## Versioning
244250

245-
The current version of the makefile is `1.5`. You can find the full history in the [HISTORY.md](HISTORY.md) file
251+
The current version of the makefile is `1.5.1`. You can find the full history in the [HISTORY.md](HISTORY.md) file
246252

247253
This project adheres to Semantic [Versioning 2.0](http://semver.org/).
248254

Teensy.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ endif
3333
# include Common.mk now we know where it is
3434
include $(ARDMK_DIR)/Common.mk
3535

36-
VENDOR = teensy
36+
ARDMK_VENDOR = teensy
3737
ARDUINO_CORE_PATH = $(ARDUINO_DIR)/hardware/teensy/cores/teensy3
38-
BOARDS_TXT = $(ARDUINO_DIR)/hardware/$(VENDOR)/boards.txt
38+
BOARDS_TXT = $(ARDUINO_DIR)/hardware/$(ARDMK_VENDOR)/boards.txt
3939

4040
ifndef F_CPU
4141
F_CPU=96000000

ard-reset-arduino.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH ARD-RESET-ARDUINO "1" "April 2015" "ard-reset-arduino 1.5" "Arduino CLI Reset"
1+
.TH ARD-RESET-ARDUINO "1" "February 2016" "ard-reset-arduino 1.5.1" "Arduino CLI Reset"
22

33
.SH NAME
44
ard-reset-arduino - Reset Arduino board

arduino-mk-vars.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ ARCHITECTURE = sam
166166

167167
----
168168

169-
### VENDOR
169+
### ARDMK_VENDOR
170170

171171
**Description:**
172172

@@ -177,7 +177,7 @@ Defaults to `arduino`
177177
**Example:**
178178

179179
```Makefile
180-
VENDOR = sparkfun
180+
ARDMK_VENDOR = sparkfun
181181
```
182182

183183
**Requirement:** *Optional*
@@ -281,7 +281,7 @@ BOARD_TAG = uno or mega2560
281281

282282
**Description:**
283283

284-
1.5+ submenu as listed in `boards.txt`
284+
1.5+ submenu as listed in `boards.txt` or `make show_submenu`.
285285

286286
**Example:**
287287

@@ -378,6 +378,26 @@ OBJDIR = /path/to/my/project-directory/bin
378378

379379
----
380380

381+
### TARGET
382+
383+
**Description:**
384+
385+
What name you would like for generated target files.
386+
387+
Defaults to the name of your current working directory, but with underscores (_) instead of spaces.
388+
389+
**Example:**
390+
391+
```Makefile
392+
TARGET = my-project
393+
```
394+
395+
Will generate targets like `my-project.hex` and `my-project.elf`.
396+
397+
**Requirement:** *Optional*
398+
399+
----
400+
381401
### ALTERNATE_CORE
382402

383403
**Description:**

bin/ard-reset-arduino

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ import os.path
66
import argparse
77
from time import sleep
88

9+
pyserial_version = None
10+
try:
11+
pyserial_version = int(serial.VERSION[0])
12+
except:
13+
pyserial_version = 2 # less than 2.3
14+
915
parser = argparse.ArgumentParser(description='Reset an Arduino')
1016
parser.add_argument('--caterina', action='store_true', help='Reset a Leonardo, Micro, Robot or LilyPadUSB.')
1117
parser.add_argument('--verbose', action='store_true', help="Watch what's going on on STDERR.")
@@ -17,7 +23,12 @@ if args.caterina:
1723
if args.verbose: print('Forcing reset using 1200bps open/close on port %s' % args.port[0])
1824
ser = serial.Serial(args.port[0], 57600)
1925
ser.close()
20-
ser.setBaudrate(1200)
26+
27+
if pyserial_version < 3:
28+
ser.setBaudrate (1200)
29+
else:
30+
ser.baudrate = 1200
31+
2132
ser.open()
2233
ser.setRTS(True) # RTS line needs to be held high and DTR low
2334
ser.setDTR(False) # (see Arduino IDE source code)

chipKIT.mk

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,11 @@ ARDUINO_CORE_PATH = $(ALTERNATE_CORE_PATH)/cores/$(ALTERNATE_CORE)
8181
ARDUINO_PREFERENCES_PATH = $(MPIDE_PREFERENCES_PATH)
8282
ARDUINO_DIR = $(MPIDE_DIR)
8383

84-
CORE_AS_SRCS = $(ARDUINO_CORE_PATH)/vector_table.S
84+
CORE_AS_SRCS = $(ARDUINO_CORE_PATH)/vector_table.S \
85+
$(ARDUINO_CORE_PATH)/cpp-startup.S \
86+
$(ARDUINO_CORE_PATH)/crti.S \
87+
$(ARDUINO_CORE_PATH)/crtn.S \
88+
$(ARDUINO_CORE_PATH)/pic32_software_reset.S
8589

8690
ARDUINO_VERSION = 23
8791

@@ -107,9 +111,11 @@ LDSCRIPT = $(call PARSE_BOARD,$(BOARD_TAG),ldscript)
107111
LDSCRIPT_FILE = $(ARDUINO_CORE_PATH)/$(LDSCRIPT)
108112

109113
MCU_FLAG_NAME=mprocessor
110-
LDFLAGS += -T$(ARDUINO_CORE_PATH)/$(LDSCRIPT)
111-
LDFLAGS += -T$(ARDUINO_CORE_PATH)/chipKIT-application-COMMON.ld
112-
CPPFLAGS += -mno-smart-io -fno-short-double
114+
LDFLAGS += -mdebugger -mno-peripheral-libs -nostartfiles -Wl,--gc-sections
115+
LINKER_SCRIPTS += -T $(ARDUINO_CORE_PATH)/$(LDSCRIPT)
116+
LINKER_SCRIPTS += -T $(ARDUINO_CORE_PATH)/chipKIT-application-COMMON.ld
117+
CPPFLAGS += -mno-smart-io -fno-short-double -fframe-base-loclist \
118+
-g3 -Wcast-align -D_BOARD_MEGA_
113119
CFLAGS_STD =
114120

115121
include $(ARDMK_DIR)/Arduino.mk

examples/MakefileExample/Makefile-example.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ARDMK_DIR = $(PROJECT_DIR)/Arduino-Makefile
1515
### ARDUINO_DIR
1616
### Path to the Arduino application and resources directory.
1717
### On OS X:
18-
ARDUINO_DIR = /Applications/Arduino.app/Contents/Resources/Java
18+
ARDUINO_DIR = /Applications/Arduino.app/Contents/Java
1919
### or on Linux: (remove the one you don't want)
2020
ARDUINO_DIR = /usr/share/arduino
2121

@@ -38,12 +38,12 @@ AVR_TOOLS_DIR = /usr/local
3838
### or on Linux: (remove the one you don't want)
3939
AVR_TOOLS_DIR = /usr
4040

41-
### AVRDDUDE
41+
### AVRDUDE
4242
### Path to avrdude directory.
4343
### On OS X with `homebrew`:
44-
AVRDDUDE = /usr/local/bin/avrdude
44+
AVRDUDE = /usr/local/bin/avrdude
4545
### or on Linux: (remove the one you don't want)
46-
AVRDDUDE = /usr/bin/avrdude
46+
AVRDUDE = /usr/bin/avrdude
4747

4848
### CFLAGS_STD
4949
### Set the C standard to be used during compilation. Documentation (https://github.com/WeAreLeka/Arduino-Makefile/blob/std-flags/arduino-mk-vars.md#cflags_std)

packaging/fedora/arduino-mk.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Name: arduino-mk
2-
Version: 1.5
2+
Version: 1.5.1
33
Release: 1%{dist}
44
Summary: Program your Arduino from the command line
55
Packager: Simon John <[email protected]>

0 commit comments

Comments
 (0)