aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSudar <sudar@sudarmuthu.com>2013-10-06 18:12:33 +0530
committerSudar <sudar@sudarmuthu.com>2013-10-06 18:13:32 +0530
commita17cf2af96cea3234b4d41b7ad0f02a5d2915ba4 (patch)
tree67b9ccb3eca7bf89b66b187d40fba05f18c15e4b
parent9ff2b2e4d66e31677118becb2f83a52ce0e97184 (diff)
Ignore commented lines while parsing boards.txt file
Fix #124
-rw-r--r--HISTORY.md1
-rw-r--r--arduino-mk/Arduino.mk2
2 files changed, 2 insertions, 1 deletions
diff --git a/HISTORY.md b/HISTORY.md
index 1a0b4ac..5a5a758 100644
--- a/HISTORY.md
+++ b/HISTORY.md
@@ -6,6 +6,7 @@ I tried to give credit whenever possible. If I have missed anyone, kindly add it
### 1.1.0 (in development)
- Don't append port details to avrdude for usbasp. See #123
+- Ignore commented lines while parsing boards.txt file. See #124
### 1.0.1 (2013-09-25)
- Unconditionally add -D in avrdude options. See #114
diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk
index f3584ae..d2b3e62 100644
--- a/arduino-mk/Arduino.mk
+++ b/arduino-mk/Arduino.mk
@@ -498,7 +498,7 @@ endif
ifndef PARSE_BOARD
# result = $(call READ_BOARD_TXT, 'boardname', 'parameter')
- PARSE_BOARD = $(shell grep $(1).$(2) $(BOARDS_TXT) | 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