Browse Source

Try to find the AVR tools on Linux


			
			
				mission-4.1.18
			
			
		
DrZiplok 14 years ago
parent
commit
4d490359e7
  1. 5
      libraries/AP_Common/Arduino.mk

5
libraries/AP_Common/Arduino.mk

@ -95,6 +95,7 @@ ifeq ($(ARDUINO),) @@ -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) @@ -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
#

Loading…
Cancel
Save