From 440d00e8c8c44f7028c9b6ea513a5a283c7e0cfc Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 22 Apr 2023 11:28:25 +1000 Subject: [PATCH] Tools: add AP_BOOTLOADER_FLASHING_ENABLED to build options --- Tools/scripts/build_options.py | 1 + Tools/scripts/extract_features.py | 1 + 2 files changed, 2 insertions(+) diff --git a/Tools/scripts/build_options.py b/Tools/scripts/build_options.py index 7936f0ddd7..d14d626d21 100644 --- a/Tools/scripts/build_options.py +++ b/Tools/scripts/build_options.py @@ -278,6 +278,7 @@ BUILD_OPTIONS = [ Feature('Other', 'BARO_WIND_COMP', 'HAL_BARO_WIND_COMP_ENABLED', 'Enable Baro Wind Compensation', 0, None), Feature('Other', 'ADVANCED_FAILSAFE', 'AP_ADVANCEDFAILSAFE_ENABLED', 'Enable Advanced Failsafe features', 0, None), Feature('Other', 'SDCARD_FORMATTING', 'AP_FILESYSTEM_FORMAT_ENABLED', 'Enable formatting of microSD cards', 0, None), + Feature('Other', 'BOOTLOADER_FLASHING', 'AP_BOOTLOADER_FLASHING_ENABLED', 'Enable Bootloader flashing', 0, None), Feature('Developer', 'KILL_IMU', 'AP_INERTIALSENSOR_KILL_IMU_ENABLED', 'Allow IMUs to be disabled at runtime', 0, None), diff --git a/Tools/scripts/extract_features.py b/Tools/scripts/extract_features.py index 64279b4223..bd39661580 100755 --- a/Tools/scripts/extract_features.py +++ b/Tools/scripts/extract_features.py @@ -36,6 +36,7 @@ class ExtractFeatures(object): # the substitutions will be upper-cased self.features = [ ('AP_ADVANCEDFAILSAFE_ENABLED', 'AP::advancedfailsafe',), + ('AP_BOOTLOADER_FLASHING_ENABLED', 'ChibiOS::Util::flash_bootloader',), ('AP_AIRSPEED_ENABLED', 'AP_Airspeed::AP_Airspeed',), ('AP_AIRSPEED_{type}_ENABLED', r'AP_Airspeed_(?P.*)::init',),