mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-07 16:38:30 -04:00
Try to find the AVR tools on Linux
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1363 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
c1e9a04ce6
commit
4d490359e7
@ -95,6 +95,7 @@ ifeq ($(ARDUINO),)
|
|||||||
ifeq ($(SYSTYPE),Linux)
|
ifeq ($(SYSTYPE),Linux)
|
||||||
ARDUINO_SEARCHPATH = /usr/share/arduino /usr/local/share/arduino
|
ARDUINO_SEARCHPATH = /usr/share/arduino /usr/local/share/arduino
|
||||||
ARDUINOS := $(wildcard $(ARDUINO_SEARCHPATH))
|
ARDUINOS := $(wildcard $(ARDUINO_SEARCHPATH))
|
||||||
|
TOOLPATH := $(subst ;, ,$(PATH))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -128,6 +129,10 @@ AR = $(call FIND_TOOL,avr-ar)
|
|||||||
LD = $(call FIND_TOOL,avr-gcc)
|
LD = $(call FIND_TOOL,avr-gcc)
|
||||||
OBJCOPY = $(call FIND_TOOL,avr-objcopy)
|
OBJCOPY = $(call FIND_TOOL,avr-objcopy)
|
||||||
|
|
||||||
|
ifeq ($(CXX),)
|
||||||
|
$(error ERROR: cannot find the compiler tools anywhere on the path $(TOOLPATH))
|
||||||
|
endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# Tool options
|
# Tool options
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user