From 41da1a4fc58f9a46f8b60c0642f5b52dd0da6e25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mayoral=20Vilches?= Date: Tue, 5 Jan 2016 11:36:41 +0100 Subject: [PATCH] mk: add pxfmini target --- mk/environ.mk | 5 +++++ mk/help.mk | 1 + mk/targets.mk | 6 +++++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/mk/environ.mk b/mk/environ.mk index 090982e0c5..195cbd7255 100644 --- a/mk/environ.mk +++ b/mk/environ.mk @@ -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 diff --git a/mk/help.mk b/mk/help.mk index 37634d463d..390778d9e6 100644 --- a/mk/help.mk +++ b/mk/help.mk @@ -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" diff --git a/mk/targets.mk b/mk/targets.mk index 805e86cfc4..8ebc369dd4 100644 --- a/mk/targets.mk +++ b/mk/targets.mk @@ -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 "