From d1dbe035f58ca7a720f31c74742b9bef3cccf8df Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sun, 6 Oct 2024 14:20:17 +1100 Subject: [PATCH 1/2] AP_HAL: avoid include of non-existant file this file doesn't exist --- libraries/AP_HAL/AP_HAL_Boards.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/libraries/AP_HAL/AP_HAL_Boards.h b/libraries/AP_HAL/AP_HAL_Boards.h index 874782fb9187b..c12ac0e2be90b 100644 --- a/libraries/AP_HAL/AP_HAL_Boards.h +++ b/libraries/AP_HAL/AP_HAL_Boards.h @@ -134,8 +134,6 @@ #include #elif CONFIG_HAL_BOARD == HAL_BOARD_EMPTY #include -#elif CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN - #include #elif CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS #include #elif CONFIG_HAL_BOARD == HAL_BOARD_ESP32 From 5c5f1fe63a0fa436a7c2603d79bab76336c8c8c9 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sun, 6 Oct 2024 14:22:17 +1100 Subject: [PATCH 2/2] AP_HAL: remove defines for boards which don't exist we'll now get compilation failures if code is introduced depending on these... --- libraries/AP_HAL/AP_HAL_Boards.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/AP_HAL/AP_HAL_Boards.h b/libraries/AP_HAL/AP_HAL_Boards.h index c12ac0e2be90b..1c3aa1b1648e7 100644 --- a/libraries/AP_HAL/AP_HAL_Boards.h +++ b/libraries/AP_HAL/AP_HAL_Boards.h @@ -7,12 +7,12 @@ #pragma once #define HAL_BOARD_SITL 3 -#define HAL_BOARD_SMACCM 4 // unused -#define HAL_BOARD_PX4 5 // unused +// #define HAL_BOARD_SMACCM 4 // unused +// #define HAL_BOARD_PX4 5 // unused #define HAL_BOARD_LINUX 7 -#define HAL_BOARD_VRBRAIN 8 +// #define HAL_BOARD_VRBRAIN 8 #define HAL_BOARD_CHIBIOS 10 -#define HAL_BOARD_F4LIGHT 11 // reserved +// #define HAL_BOARD_F4LIGHT 11 // reserved #define HAL_BOARD_ESP32 12 #define HAL_BOARD_QURT 13 #define HAL_BOARD_EMPTY 99