From 1bac278a38715691b28e49bd97f99c0dfd3e622c Mon Sep 17 00:00:00 2001 From: Henry Wurzburg Date: Wed, 17 Jan 2024 21:55:12 -0600 Subject: [PATCH] Tools: add button build server option --- 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 eab4918c87..28a1721d52 100644 --- a/Tools/scripts/build_options.py +++ b/Tools/scripts/build_options.py @@ -311,6 +311,7 @@ BUILD_OPTIONS = [ Feature('Other', 'SDCARD_MISSION', 'AP_SDCARD_STORAGE_ENABLED', 'Enable storing mission on microSD cards', 0, None), Feature('Other', 'COMPASS_CAL', 'COMPASS_CAL_ENABLED', 'Enable "tumble" compass calibration', 0, None), Feature('Other', 'DRONECAN_SERIAL', 'AP_DRONECAN_SERIAL_ENABLED', 'Enable DroneCAN virtual serial ports', 0, None), + Feature('Other', 'Buttons', 'HAL_BUTTON_ENABLED', 'Enable Buttons', 0, None), # MAVLink section for mavlink features and/or message handling, # rather than for e.g. mavlink-based sensor drivers diff --git a/Tools/scripts/extract_features.py b/Tools/scripts/extract_features.py index 31b63b2dda..f208aee9b5 100755 --- a/Tools/scripts/extract_features.py +++ b/Tools/scripts/extract_features.py @@ -240,6 +240,7 @@ class ExtractFeatures(object): ('AP_SERIALMANAGER_IMUOUT_ENABLED', 'AP_InertialSensor::send_uart_data'), ('AP_NETWORKING_BACKEND_PPP', 'AP_Networking_PPP::init'), ('FORCE_APJ_DEFAULT_PARAMETERS', 'AP_Param::param_defaults_data'), + ('HAL_BUTTON_ENABLED', 'AP_Button::update'), ] def progress(self, msg):