aboutsummaryrefslogtreecommitdiff
path: root/Arduino.mk
diff options
context:
space:
mode:
authorSimon John <git@the-jedi.co.uk>2015-03-27 16:11:27 +0000
committerSimon John <git@the-jedi.co.uk>2015-03-27 16:11:27 +0000
commitce235b6bb3465452ebbe6ae257639cc550654287 (patch)
tree6b70a327fc5d3fe51de48a5300b5151c163e2d76 /Arduino.mk
parentab068291723dea83a97be9b9e32a61a01452c435 (diff)
Add = to PARSE_BOARD regex to make it less greedy.
For instance in the Sparkfun 1.6 core, we have: promicro16.build.vid.0=0x1B4F promicro16.build.vid.1=0x1B4F promicro16.build.vid=0x1B4F So we end up matching all 3 instead of just the last one. Adding the = means we're looking for promicro16.build.vid= so not catching the .0 or .1 version.
Diffstat (limited to 'Arduino.mk')
-rw-r--r--Arduino.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Arduino.mk b/Arduino.mk
index cc156fc..1d5c6d2 100644
--- a/Arduino.mk
+++ b/Arduino.mk
@@ -552,7 +552,7 @@ endif
ifndef PARSE_BOARD
# result = $(call READ_BOARD_TXT, 'boardname', 'parameter')
- PARSE_BOARD = $(shell grep -v '^\#' $(BOARDS_TXT) | grep $(1).$(2) | cut -d = -f 2 )
+ PARSE_BOARD = $(shell grep -v '^\#' $(BOARDS_TXT) | grep $(1).$(2)= | cut -d = -f 2 )
endif
# If NO_CORE is set, then we don't have to parse boards.txt file