From ba6c58a33cfdbdc6faaaeeb8d90bcfb5437573dc Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 17 Sep 2011 12:15:41 +1000 Subject: [PATCH] build: cope with more depths for libraries this finds the libraries at more levels up from the current directory --- libraries/AP_Common/Arduino.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libraries/AP_Common/Arduino.mk b/libraries/AP_Common/Arduino.mk index be6928f17c5..3d19e125935 100644 --- a/libraries/AP_Common/Arduino.mk +++ b/libraries/AP_Common/Arduino.mk @@ -60,6 +60,12 @@ endif # ifeq ($(SKETCHBOOK),) SKETCHBOOK := $(shell cd $(SRCROOT)/.. && pwd) + ifeq ($(wildcard $(SKETCHBOOK)/libraries),) + SKETCHBOOK := $(shell cd $(SRCROOT)/../.. && pwd) + endif + ifeq ($(wildcard $(SKETCHBOOK)/libraries),) + SKETCHBOOK := $(shell cd $(SRCROOT)/../../.. && pwd) + endif ifeq ($(wildcard $(SKETCHBOOK)/libraries),) SKETCHBOOK := $(shell cd $(SRCROOT)/../../../.. && pwd) endif