From 4d490359e7f358f6de9ea396d0bafefda5c56607 Mon Sep 17 00:00:00 2001 From: DrZiplok Date: Wed, 29 Dec 2010 22:39:39 +0000 Subject: [PATCH] Try to find the AVR tools on Linux git-svn-id: https://arducopter.googlecode.com/svn/trunk@1363 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- libraries/AP_Common/Arduino.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/AP_Common/Arduino.mk b/libraries/AP_Common/Arduino.mk index f3882427aa..be7e0099f2 100644 --- a/libraries/AP_Common/Arduino.mk +++ b/libraries/AP_Common/Arduino.mk @@ -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 #