From 0feed119cd0b2ab790b2fb29da2342848d36eaec Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 24 Feb 2022 16:34:07 +1100 Subject: [PATCH] AP_HAL_ChibiOS: allow specification of AUTOBUILD_TARGETS in hwdef files --- libraries/AP_HAL_ChibiOS/hwdef/CubeGreen-solo/hwdef.dat | 2 ++ libraries/AP_HAL_ChibiOS/hwdef/CubeSolo/hwdef.dat | 2 ++ libraries/AP_HAL_ChibiOS/hwdef/Swan-K1/hwdef.dat | 2 ++ libraries/AP_HAL_ChibiOS/hwdef/skyviper-journey/hwdef.dat | 2 ++ libraries/AP_HAL_ChibiOS/hwdef/skyviper-v2450/hwdef.dat | 2 ++ 5 files changed, 10 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubeGreen-solo/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CubeGreen-solo/hwdef.dat index de4e9e68c2..f7310ab52d 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CubeGreen-solo/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubeGreen-solo/hwdef.dat @@ -9,3 +9,5 @@ include ../CubeBlack/hwdef.dat # pull Solo's default parameters from /Tools/Frame_params # these are parameters the Solo requires for proper operation that are different from the 4 standard defaults. env DEFAULT_PARAMETERS 'Tools/Frame_params/Solo_Copter-4_GreenCube.param' + +AUTOBUILD_TARGETS Copter diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubeSolo/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CubeSolo/hwdef.dat index a1f9b08279..b5bd97b349 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CubeSolo/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubeSolo/hwdef.dat @@ -51,3 +51,5 @@ define HAL_PROBE_EXTERNAL_I2C_COMPASSES define HAL_OREO_LED_ENABLED 1 define HAL_IMU_TEMP_MARGIN_LOW_DEFAULT 5 + +AUTOBUILD_TARGETS Copter diff --git a/libraries/AP_HAL_ChibiOS/hwdef/Swan-K1/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/Swan-K1/hwdef.dat index b5214322ff..c00287cb2b 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/Swan-K1/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/Swan-K1/hwdef.dat @@ -36,3 +36,5 @@ define HAL_WITH_RAMTRON 1 # use a longer frame gap detector for more robust SBUS with H12 controller define HAL_SBUS_FRAME_GAP 5000U + +AUTOBUILD_TARGETS Plane diff --git a/libraries/AP_HAL_ChibiOS/hwdef/skyviper-journey/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/skyviper-journey/hwdef.dat index e30d74f8f5..cdd20aff02 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/skyviper-journey/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/skyviper-journey/hwdef.dat @@ -128,3 +128,5 @@ define AP_PARAM_MAX_EMBEDDED_PARAM 8192 # Disable un-needed hardware drivers define HAL_WITH_ESC_TELEM 0 define AP_FETTEC_ONEWIRE_ENABLED 0 + +AUTOBUILD_TARGETS Copter diff --git a/libraries/AP_HAL_ChibiOS/hwdef/skyviper-v2450/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/skyviper-v2450/hwdef.dat index ce2aa4eeb2..15430fe5cf 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/skyviper-v2450/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/skyviper-v2450/hwdef.dat @@ -113,3 +113,5 @@ define AP_MOTORS_FRAME_QUAD_ENABLED 1 define COMPASS_MAX_SENSORS 1 define BARO_MAX_INSTANCES 1 define INS_MAX_INSTANCES 1 + +AUTOBUILD_TARGETS Copter