mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-24 17:48:35 -04:00
Plane: check for APPDIR to pull in px4 build logic
This commit is contained in:
parent
2ba2e1c279
commit
2fe77fa6fa
@ -1,5 +1,22 @@
|
|||||||
|
|
||||||
|
ifeq ($(APPDIR),)
|
||||||
|
####################
|
||||||
|
# AVR and SITL build
|
||||||
include ../mk/Arduino.mk
|
include ../mk/Arduino.mk
|
||||||
include ../mk/targets.mk
|
include ../mk/targets.mk
|
||||||
|
|
||||||
sitl-newcontrollers: EXTRAFLAGS += "-DAPM_CONTROL=ENABLED "
|
sitl-newcontrollers: EXTRAFLAGS += "-DAPM_CONTROL=ENABLED "
|
||||||
sitl-newcontrollers: sitl
|
sitl-newcontrollers: sitl
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
####################
|
||||||
|
# PX4 build
|
||||||
|
APPNAME = ArduPlane
|
||||||
|
PRIORITY = SCHED_PRIORITY_DEFAULT
|
||||||
|
STACKSIZE = 4096
|
||||||
|
|
||||||
|
SKETCHBOOK=..
|
||||||
|
include $(APPDIR)/mk/apm.mk
|
||||||
|
|
||||||
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user