Use different variables for Arduino/MPIDE path and quit if they're not set.
This commit is contained in:
parent
61d37eab82
commit
c614cafa4d
2 changed files with 9 additions and 3 deletions
|
@ -183,7 +183,9 @@ endif
|
|||
# Some paths
|
||||
#
|
||||
|
||||
ifneq (ARDUINO_DIR,)
|
||||
ifeq ($(wildcard $(ARDUINO_DIR)),)
|
||||
$(error "Error: the ARDUINO_DIR variable must point to your Arduino IDE installation")
|
||||
endif
|
||||
|
||||
ifndef AVR_TOOLS_PATH
|
||||
AVR_TOOLS_PATH = $(ARDUINO_DIR)/hardware/tools
|
||||
|
@ -221,8 +223,6 @@ ifndef ARDUINO_VAR_PATH
|
|||
ARDUINO_VAR_PATH = $(ARDUINO_DIR)/hardware/arduino/variants
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
########################################################################
|
||||
# boards.txt parsing
|
||||
#
|
||||
|
|
|
@ -13,6 +13,12 @@
|
|||
|
||||
OSTYPE := $(shell uname)
|
||||
|
||||
ifeq ($(wildcard $(MPIDE_DIR)),)
|
||||
$(error "Error: the MPIDE_DIR variable must point to your MPIDE installation")
|
||||
endif
|
||||
|
||||
ARDUINO_DIR = $(MPIDE_DIR)
|
||||
|
||||
AVR_TOOLS_PATH = $(ARDUINO_DIR)/hardware/pic32/compiler/pic32-tools/bin
|
||||
|
||||
ifneq ($(OSTYPE),Linux)
|
||||
|
|
Loading…
Reference in a new issue