From 2fe77fa6fa6435d0513e3c62b8c2c4a9cc8d5855 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 2 Jan 2013 17:06:44 +1100 Subject: [PATCH] Plane: check for APPDIR to pull in px4 build logic --- ArduPlane/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/ArduPlane/Makefile b/ArduPlane/Makefile index 28e611cefa..5dac8637f9 100644 --- a/ArduPlane/Makefile +++ b/ArduPlane/Makefile @@ -1,5 +1,22 @@ + +ifeq ($(APPDIR),) +#################### +# AVR and SITL build include ../mk/Arduino.mk include ../mk/targets.mk sitl-newcontrollers: EXTRAFLAGS += "-DAPM_CONTROL=ENABLED " sitl-newcontrollers: sitl + +else + +#################### +# PX4 build +APPNAME = ArduPlane +PRIORITY = SCHED_PRIORITY_DEFAULT +STACKSIZE = 4096 + +SKETCHBOOK=.. +include $(APPDIR)/mk/apm.mk + +endif