summaryrefslogtreecommitdiffstats
path: root/Arduino.mk
diff options
context:
space:
mode:
Diffstat (limited to 'Arduino.mk')
-rw-r--r--Arduino.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/Arduino.mk b/Arduino.mk
index 4cf3e1e..ed83617 100644
--- a/Arduino.mk
+++ b/Arduino.mk
@@ -139,6 +139,8 @@
# Some paths
#
+SELF_PATH := $(dir $(lastword $(MAKEFILE_LIST)))
+
ifneq (ARDUINO_DIR,)
ifndef AVR_TOOLS_PATH
@@ -170,7 +172,7 @@ BOARDS_TXT = $(ARDUINO_DIR)/hardware/arduino/boards.txt
endif
ifndef PARSE_BOARD
-PARSE_BOARD = ard-parse-boards --boards_txt=$(BOARDS_TXT)
+PARSE_BOARD = $(SELF_PATH)/ard-parse-boards --boards_txt=$(BOARDS_TXT)
endif
# processor stuff