From e57765e009ad75b41e50aa257acc4bea5129ae2f Mon Sep 17 00:00:00 2001 From: Daniel Hiepler Date: Sat, 28 Sep 2024 09:00:50 +0200 Subject: [PATCH] Tools: add PilotPi support Adds "pilotpi" board to support https://docs.px4.io/main/en/flight_controller/raspberry_pi_pilotpi.html --- Tools/ardupilotwaf/boards.py | 9 +++++++++ Tools/scripts/board_list.py | 1 + 2 files changed, 10 insertions(+) diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index a7930ea0a3..f3667e4f13 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -1658,6 +1658,15 @@ class canzero(linux): CONFIG_HAL_BOARD_SUBTYPE = 'HAL_BOARD_SUBTYPE_LINUX_CANZERO', ) +class pilotpi(linux): + toolchain = 'aarch64-linux-gnu' + + def configure_env(self, cfg, env): + super(pilotpi, self).configure_env(cfg, env) + env.DEFINES.update( + CONFIG_HAL_BOARD_SUBTYPE = 'HAL_BOARD_SUBTYPE_LINUX_PILOTPI', + ) + class SITL_static(sitl): def configure_env(self, cfg, env): super(SITL_static, self).configure_env(cfg, env) diff --git a/Tools/scripts/board_list.py b/Tools/scripts/board_list.py index 9758a1cc80..cc332b2d1f 100755 --- a/Tools/scripts/board_list.py +++ b/Tools/scripts/board_list.py @@ -71,6 +71,7 @@ class BoardList(object): Board("blue"), Board("pxfmini"), Board("canzero"), + Board("pilotpi"), Board("SITL_x86_64_linux_gnu"), Board("SITL_arm_linux_gnueabihf"), ]