5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-01-05 23:48:31 -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:
DrZiplok 2010-12-29 22:39:39 +00:00
parent c1e9a04ce6
commit 4d490359e7

View File

@ -95,6 +95,7 @@ ifeq ($(ARDUINO),)
ifeq ($(SYSTYPE),Linux)
ARDUINO_SEARCHPATH = /usr/share/arduino /usr/local/share/arduino
ARDUINOS := $(wildcard $(ARDUINO_SEARCHPATH))
TOOLPATH := $(subst ;, ,$(PATH))
endif
#
@ -128,6 +129,10 @@ AR = $(call FIND_TOOL,avr-ar)
LD = $(call FIND_TOOL,avr-gcc)
OBJCOPY = $(call FIND_TOOL,avr-objcopy)
ifeq ($(CXX),)
$(error ERROR: cannot find the compiler tools anywhere on the path $(TOOLPATH))
endif
#
# Tool options
#