Added FORCE_ISP_PORT to skip verification.

This commit is contained in:
Benoit Rapidel 2015-09-24 16:56:19 +02:00
parent 02a1811d45
commit 321b1b8c2d

View file

@ -1092,8 +1092,13 @@ else
endif endif
endif endif
# Returns the ISP port (first wildcard expansion) if it exists, otherwise it errors. ifdef FORCE_ISP_PORT
get_isp_port = $(if $(wildcard $(ISP_PORT)),$(firstword $(wildcard $(ISP_PORT))),$(if $(findstring Xusb,X$(ISP_PORT)),$(ISP_PORT),$(error ISP port $(ISP_PORT) not found!))) # Skips the ISP_PORT existance check.
get_isp_port = $(ISP_PORT)
else
# Returns the ISP port (first wildcard expansion) if it exists, otherwise it errors.
get_isp_port = $(if $(wildcard $(ISP_PORT)),$(firstword $(wildcard $(ISP_PORT))),$(if $(findstring Xusb,X$(ISP_PORT)),$(ISP_PORT),$(error ISP port $(ISP_PORT) not found!)))
endif
# Command for avr_size: do $(call avr_size,elffile,hexfile) # Command for avr_size: do $(call avr_size,elffile,hexfile)
ifneq (,$(findstring AVR,$(shell $(SIZE) --help))) ifneq (,$(findstring AVR,$(shell $(SIZE) --help)))