From fb0a0de2f2893b42fa40ec873bf43adff9d7ea85 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 24 Dec 2023 13:53:38 +1100 Subject: [PATCH] waf: added env.BOARD_CLASS --- Tools/ardupilotwaf/boards.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index 2c9432d85e..dc78c9f54b 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -646,6 +646,8 @@ class sitl(Board): AP_BARO_PROBE_EXTERNAL_I2C_BUSES = 1, ) + env.BOARD_CLASS = "SITL" + cfg.define('AP_SIM_ENABLED', 1) cfg.define('HAL_WITH_SPI', 1) cfg.define('HAL_WITH_RAMTRON', 1) @@ -897,6 +899,8 @@ class esp32(Board): abstract = True toolchain = 'xtensa-esp32-elf' def configure_env(self, cfg, env): + env.BOARD_CLASS = "ESP32" + def expand_path(p): print("USING EXPRESSIF IDF:"+str(env.idf)) return cfg.root.find_dir(env.IDF+p).abspath() @@ -988,6 +992,7 @@ class chibios(Board): cfg.load('chibios') env.BOARD = self.name + env.BOARD_CLASS = "ChibiOS" env.DEFINES.update( CONFIG_HAL_BOARD = 'HAL_BOARD_CHIBIOS', @@ -1229,6 +1234,8 @@ class linux(Board): self.with_can = True super(linux, self).configure_env(cfg, env) + env.BOARD_CLASS = "LINUX" + env.DEFINES.update( CONFIG_HAL_BOARD = 'HAL_BOARD_LINUX', CONFIG_HAL_BOARD_SUBTYPE = 'HAL_BOARD_SUBTYPE_LINUX_NONE',