mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-12 02:48:28 -04:00
Issue #415: Modified spotlight search string. Added UPLOAD_PROTOCOL parameter to makefile to use different programmer.
This commit is contained in:
parent
c6eae87f8a
commit
45c4872e6d
@ -124,7 +124,7 @@ ifeq ($(ARDUINO),)
|
|||||||
#
|
#
|
||||||
ifeq ($(SYSTYPE),Darwin)
|
ifeq ($(SYSTYPE),Darwin)
|
||||||
# use Spotlight to find Arduino.app
|
# use Spotlight to find Arduino.app
|
||||||
ARDUINO_QUERY = 'kMDItemKind == Application && kMDItemDisplayName == Arduino.app'
|
ARDUINO_QUERY = 'kMDItemKind == Application && kMDItemFSName == Arduino.app'
|
||||||
ARDUINOS := $(addsuffix /Contents/Resources/Java,$(shell mdfind -literal $(ARDUINO_QUERY)))
|
ARDUINOS := $(addsuffix /Contents/Resources/Java,$(shell mdfind -literal $(ARDUINO_QUERY)))
|
||||||
ifeq ($(ARDUINOS),)
|
ifeq ($(ARDUINOS),)
|
||||||
$(error ERROR: Spotlight cannot find Arduino on your system.)
|
$(error ERROR: Spotlight cannot find Arduino on your system.)
|
||||||
@ -321,7 +321,9 @@ HARDWARE_CORE := $(shell grep $(BOARD).build.core $(BOARDFILE) | cut -d = -f 2)
|
|||||||
UPLOAD_SPEED := $(shell grep $(BOARD).upload.speed $(BOARDFILE) | cut -d = -f 2)
|
UPLOAD_SPEED := $(shell grep $(BOARD).upload.speed $(BOARDFILE) | cut -d = -f 2)
|
||||||
# This simply does not work, so hardcode it to the correct value
|
# This simply does not work, so hardcode it to the correct value
|
||||||
#UPLOAD_PROTOCOL := $(shell grep $(BOARD).upload.protocol $(BOARDFILE) | cut -d = -f 2)
|
#UPLOAD_PROTOCOL := $(shell grep $(BOARD).upload.protocol $(BOARDFILE) | cut -d = -f 2)
|
||||||
UPLOAD_PROTOCOL := arduino
|
ifeq ($(UPLOAD_PROTOCOL),)
|
||||||
|
UPLOAD_PROTOCOL := arduino
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(MCU),)
|
ifeq ($(MCU),)
|
||||||
$(error ERROR: Could not locate board $(BOARD) in $(BOARDFILE))
|
$(error ERROR: Could not locate board $(BOARD) in $(BOARDFILE))
|
||||||
|
Loading…
Reference in New Issue
Block a user