From b3a4a24922378629b65e07fb87dc65d0f3a52bc9 Mon Sep 17 00:00:00 2001 From: Martin Oldfield Date: Thu, 26 Apr 2012 23:11:25 +0100 Subject: [PATCH] Allow punter to specify boards.txt file independently of command (after Peplin on github) --- arduino-mk/Arduino.mk | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk index 2d39095..2cc411d 100644 --- a/arduino-mk/Arduino.mk +++ b/arduino-mk/Arduino.mk @@ -63,6 +63,10 @@ # Goldenberg both reported this and # provided patches in the same spirit. # +# 0.9 26.iv.2012 M J Oldfield +# - Allow the punter to specify boards.txt file +# and parser independently (after Peplin on github) +# ######################################################################## # # STANDARD ARDUINO WORKFLOW @@ -215,7 +219,15 @@ BOARDS_TXT = $(ARDUINO_DIR)/hardware/arduino/boards.txt endif ifndef PARSE_BOARD -PARSE_BOARD = ard-parse-boards --boards_txt=$(BOARDS_TXT) +PARSE_BOARD = ard-parse-boards +endif + +ifndef PARSE_BOARD_OPTS +PARSE_BOARD_OPTS = --boards_txt=$(BOARDS_TXT) +endif + +ifndef PARSE_BOARD_CMD +PARSE_BOARD_CMD = $(PARSE_BOARD) $(PARSE_BOARD_OPTS) endif # Which variant ? This affects the include path