diff options
| author | Gabrielius Mickevicius <gabrielius.m@gmail.com> | 2014-12-28 23:13:56 +0200 |
|---|---|---|
| committer | Gabrielius Mickevicius <gabrielius.m@gmail.com> | 2014-12-28 23:26:35 +0200 |
| commit | 3754e5c0126cf1989be3e70bc879d8b66ab3b65b (patch) | |
| tree | c380f4f0b610e9e15ccf92427046bd6ce44fbc8a /Arduino.mk | |
| parent | dcc75122847b1e0a8fd8a96a33de2f8e75df8559 (diff) | |
Let user skip MONITOR_PORT existance check
Define FORCE_MONITOR_PORT to enable.
Useful if one uses 'ssh root@remotemachine avrdude' instead of the
usual AVRDUDE command.
Diffstat (limited to 'Arduino.mk')
| -rw-r--r-- | Arduino.mk | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -1031,11 +1031,16 @@ else $(call show_config_variable,DEVICE_PATH,[AUTODETECTED]) endif -# Returns the Arduino port (first wildcard expansion) if it exists, otherwise it errors. -ifeq ($(CURRENT_OS), WINDOWS) - get_monitor_port = $(COM_STYLE_MONITOR_PORT) +ifdef FORCE_MONITOR_PORT + # Skips the DEVICE_PATH existance check. + get_monitor_port = $(DEVICE_PATH) else - get_monitor_port = $(if $(wildcard $(DEVICE_PATH)),$(firstword $(wildcard $(DEVICE_PATH))),$(error Arduino port $(DEVICE_PATH) not found!)) + # Returns the Arduino port (first wildcard expansion) if it exists, otherwise it errors. + ifeq ($(CURRENT_OS), WINDOWS) + get_monitor_port = $(COM_STYLE_MONITOR_PORT) + else + get_monitor_port = $(if $(wildcard $(DEVICE_PATH)),$(firstword $(wildcard $(DEVICE_PATH))),$(error Arduino port $(DEVICE_PATH) not found!)) + endif endif # Returns the ISP port (first wildcard expansion) if it exists, otherwise it errors. |
