From 994a934f88e025e4d24705eb21172231444a3324 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Fri, 10 Jan 2020 16:03:47 -0300 Subject: [PATCH] Tools: ardupilotwaf: Add navigator board MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- Tools/ardupilotwaf/boards.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index c893e39f0c..67319a879a 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -621,6 +621,16 @@ class linux(Board): # Avoid infinite recursion bld.options.upload = False +class navigator(linux): + toolchain = 'arm-linux-gnueabihf' + + def configure_env(self, cfg, env): + super(navigator, self).configure_env(cfg, env) + + env.DEFINES.update( + CONFIG_HAL_BOARD_SUBTYPE='HAL_BOARD_SUBTYPE_LINUX_NAVIGATOR', + ) + class erleboard(linux): toolchain = 'arm-linux-gnueabihf'