Check that on windows ARDUINO_DIR (and MPIDE_DIR) is a relative path.
Checks for paths starting with / e.g. /cydrive/arduino or a drive letter e.g. C:\Program Files\Arduino
This commit is contained in:
parent
70dfdcc7eb
commit
801fc06061
2 changed files with 12 additions and 0 deletions
|
@ -279,6 +279,12 @@ else
|
||||||
$(call show_config_variable,ARDUINO_DIR,[USER])
|
$(call show_config_variable,ARDUINO_DIR,[USER])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CURRENT_OS),WINDOWS)
|
||||||
|
ifneq ($(shell echo $(ARDUINO_DIR) | egrep '^(/|[a-zA-Z]:\\)'),)
|
||||||
|
echo $(error On Windows, ARDUINO_DIR must be a relative path)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# Default TARGET to pwd (ex Daniele Vergini)
|
# Default TARGET to pwd (ex Daniele Vergini)
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,12 @@ else
|
||||||
$(call show_config_variable,MPIDE_DIR,[USER])
|
$(call show_config_variable,MPIDE_DIR,[USER])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CURRENT_OS),WINDOWS)
|
||||||
|
ifneq ($(shell echo $(ARDUINO_DIR) | egrep '^(/|[a-zA-Z]:\\)'),)
|
||||||
|
echo $(error On Windows, MPIDE_DIR must be a relative path)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifndef MPIDE_PREFERENCES_PATH
|
ifndef MPIDE_PREFERENCES_PATH
|
||||||
AUTO_MPIDE_PREFERENCES_PATH := $(firstword \
|
AUTO_MPIDE_PREFERENCES_PATH := $(firstword \
|
||||||
$(call dir_if_exists,$(HOME)/.mpide/preferences.txt) \
|
$(call dir_if_exists,$(HOME)/.mpide/preferences.txt) \
|
||||||
|
|
Loading…
Reference in a new issue