diff options
| author | Sudar Muthu <sudar@sudarmuthu.com> | 2015-03-28 17:10:22 +0530 |
|---|---|---|
| committer | Sudar Muthu <sudar@sudarmuthu.com> | 2015-03-28 17:10:22 +0530 |
| commit | 1dfcb941b3dbd96acceb68a452aa91dce384947b (patch) | |
| tree | 50048e4af8df9fb2534b133fb5de2f6ffd1e2b1b /Arduino.mk | |
| parent | ab068291723dea83a97be9b9e32a61a01452c435 (diff) | |
| parent | 8d52840eb86fa45158a8b7387931ea5e43e2b4a6 (diff) | |
Merge pull request #333 from sej7278/master
Add = to PARSE_BOARD regex to make it less greedy.
Diffstat (limited to 'Arduino.mk')
| -rw-r--r-- | Arduino.mk | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -329,10 +329,16 @@ endif ifndef ARDUINO_SKETCHBOOK ifndef ARDUINO_PREFERENCES_PATH + ifeq ($(shell expr $(ARDUINO_VERSION) '>' 150), 1) + AUTO_ARDUINO_PREFERENCES := $(firstword \ + $(call dir_if_exists,$(HOME)/.arduino15/preferences.txt) ) + # TODO: add mac/windows version once known + else + AUTO_ARDUINO_PREFERENCES := $(firstword \ + $(call dir_if_exists,$(HOME)/.arduino/preferences.txt) \ + $(call dir_if_exists,$(HOME)/Library/Arduino/preferences.txt) ) + endif - AUTO_ARDUINO_PREFERENCES := $(firstword \ - $(call dir_if_exists,$(HOME)/.arduino/preferences.txt) \ - $(call dir_if_exists,$(HOME)/Library/Arduino/preferences.txt) ) ifdef AUTO_ARDUINO_PREFERENCES ARDUINO_PREFERENCES_PATH = $(AUTO_ARDUINO_PREFERENCES) $(call show_config_variable,ARDUINO_PREFERENCES_PATH,[AUTODETECTED]) @@ -552,7 +558,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 |
