build: make flymaple port find libmaple in parent directory

saves some hassle for people following the instructions
This commit is contained in:
Andrew Tridgell 2013-09-23 14:17:51 +10:00
parent c1d56f74b5
commit 3df849b8d1

View File

@ -2,6 +2,16 @@
#
# Build ArduPlane for Flymaple http://www.open-drone.org/flymaple
# cope with relative paths
ifeq ($(wildcard $(LIBMAPLE_PATH)/wirish),)
LIBMAPLE_PATH := $(shell cd $(SKETCHBOOK)/../libmaple && pwd)
endif
ifeq ($(wildcard $(LIBMAPLE_PATH)/wirish),)
$(error ERROR: failed to find libmaple - please see libraries/AP_HAL_FLYMAPLE/FlymaplePortingNotes.txt)
endif
TOOLCHAIN = ARM
#include $(MK_DIR)/find_arduino.mk