From edcaa8557b1117dcee96b3a7c4d6fa736d80ac81 Mon Sep 17 00:00:00 2001 From: Albert Pretorius Date: Mon, 26 Oct 2015 19:07:53 +0000 Subject: Better parsing of boards.txt file which allows Adafruit Trinket to be used --- Arduino.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Arduino.mk') diff --git a/Arduino.mk b/Arduino.mk index eb94a3c..7b1342e 100644 --- a/Arduino.mk +++ b/Arduino.mk @@ -568,7 +568,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 "^[ \t]*$(1).$(2)=" | cut -d = -f 2) endif # If NO_CORE is set, then we don't have to parse boards.txt file -- cgit v1.2.3