mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
mk: add pxfmini target
This commit is contained in:
parent
fa3dad928b
commit
41da1a4fc5
@ -217,6 +217,11 @@ HAL_BOARD = HAL_BOARD_QURT
|
||||
HAL_BOARD_SUBTYPE = HAL_BOARD_SUBTYPE_NONE
|
||||
endif
|
||||
|
||||
ifneq ($(findstring pxfmini, $(MAKECMDGOALS)),)
|
||||
HAL_BOARD = HAL_BOARD_LINUX
|
||||
HAL_BOARD_SUBTYPE = HAL_BOARD_SUBTYPE_LINUX_PXFMINI
|
||||
endif
|
||||
|
||||
# default to SITL
|
||||
ifeq ($(HAL_BOARD),)
|
||||
HAL_BOARD = HAL_BOARD_SITL
|
||||
|
@ -37,3 +37,4 @@ help:
|
||||
@echo " qflight - qualcomm flight board"
|
||||
@echo " erlebrain2 - the Erle-Brain 2 board"
|
||||
@echo " bhat - the RaspberryPi + BH HAT combination"
|
||||
@echo " pxfmini - the RaspberryPi Zero + PXFmini cape combination"
|
||||
|
@ -77,6 +77,10 @@ qurt: HAL_BOARD = HAL_BOARD_QURT
|
||||
qurt: TOOLCHAIN = QURT
|
||||
qurt: all
|
||||
|
||||
pxfmini: HAL_BOARD = HAL_BOARD_LINUX
|
||||
pxfmini: TOOLCHAIN = RPI
|
||||
pxfmini: all
|
||||
|
||||
# cope with HIL targets
|
||||
%-hil: EXTRAFLAGS += "-DHIL_MODE=HIL_MODE_SENSORS "
|
||||
%-hilsensors: EXTRAFLAGS += "-DHIL_MODE=HIL_MODE_SENSORS "
|
||||
@ -96,7 +100,7 @@ qurt: all
|
||||
|
||||
# cope with copter and hil targets
|
||||
FRAMES = quad tri hexa y6 octa octa-quad heli single coax obc nologging
|
||||
BOARDS = apm1 apm2 apm2beta apm1-1280 px4 px4-v1 px4-v2 px4-v4 sitl flymaple linux vrbrain vrbrain-v40 vrbrain-v45 vrbrainv-50 vrbrain-v51 vrbrain-v52 vrubrain-v51 vrubrain-v52 vrhero-v10 erle pxf navio raspilot bbbmini minlure erlebrain2 bhat qflight
|
||||
BOARDS = apm1 apm2 apm2beta apm1-1280 px4 px4-v1 px4-v2 px4-v4 sitl flymaple linux vrbrain vrbrain-v40 vrbrain-v45 vrbrainv-50 vrbrain-v51 vrbrain-v52 vrubrain-v51 vrubrain-v52 vrhero-v10 erle pxf navio raspilot bbbmini minlure erlebrain2 bhat qflight pxfmini
|
||||
|
||||
define frame_template
|
||||
$(1)-$(2) : EXTRAFLAGS += "-DFRAME_CONFIG=$(shell echo $(2) | tr a-z A-Z | sed s/-/_/g)_FRAME "
|
||||
|
Loading…
Reference in New Issue
Block a user