Commit Graph
1591 Commits
Author SHA1 Message Date
Peter Barker 6062120e49 Tools: exempt MatekL431 variants from building bootloader
really would be nice to get this information from the hwdefs, but backwards-compataiblity turns out to be a problem
2025-08-05 09:04:28 +09:00
Peter Barker 05d186e993 Tools: set dummy GIT_VERSION_EXTENDED for repeatible bootloader builds 2025-08-04 09:12:59 +01:00
James O'Shannessy 8afb9e2541 uploader.py: Update to support reading bootloader software version
Supports both ArduPilot and PX4 implementation of reading bootloader software version.
2025-07-30 17:21:38 +10:00
Shiv Tyagi ef52728221 Tools: add AP_PERIPH_AIRSPEED_ENABLED as a build option 2025-07-30 16:58:41 +10:00
Shiv Tyagi adf710149c Tools: add AP_PERIPH_RPM_ENABLED as a build option 2025-07-30 14:24:44 +10:00
Peter Barker 91bb293027 Tools: sitl-on-hw.py: allow for comma-separated list of default files 2025-07-29 10:12:11 +10:00
Peter Barker cc4b6616c1 Tools: sitl-on-hw.py: add --debug option to get a debug build 2025-07-29 10:12:11 +10:00
Peter Barker 9f6e98bc04 Tools: add and use AP_SIM_VICON_ENABLED
this doesn't compile on sim-on-hardware when debugging is enabled (stack frame too large)
2025-07-29 10:12:11 +10:00
Iampete1 4e46dbc318 Tools: scripts: run_lua_language_check: add option for more verbose logging of the install step 2025-07-28 09:46:01 +10:00
Shiv Tyagi ff127c8f16 Tools: add AP_PERIPH_RCIN_ENABLED as a build option 2025-07-25 13:39:30 -04:00
Shiv Tyagi b2fe2942e1 Tools: add AP_PERIPH_EFI_ENABLED as a build option 2025-07-24 12:21:31 +10:00
Shiv Tyagi d71f08bbb9 Tools: add AP_PERIPH_RC_OUT_ENABLED as a build option 2025-07-23 08:25:25 +10:00
Shiv Tyagi 6104345d53 Tools: add AP_PERIPH_IMU_ENABLED as a build option 2025-07-22 21:00:04 +10:00
Peter Barker 3708936c62 global: correct shebang lines to refernce python3
also remove the odd encoding line which is not required in Py3
2025-07-22 10:45:57 +10:00
Peter Barker 6612891f76 Tools: add and use AP_RC_TRANSMITTER_TUNING_ENABLED 2025-07-22 08:14:19 +09:00
Shiv Tyagi 92ac0225b7 Tools: add AP_PERIPH_RANGEFINDER_ENABLED as a build option 2025-07-22 08:18:23 +10:00
Shiv Tyagi d89d11d88b Tools: add AP_PERIPH_BARO_ENABLED as a build option 2025-07-21 14:16:43 +10:00
Shiv Tyagi f053f82b02 Tools: add AP_PERIPH_MAG_ENABLED as a build option 2025-07-21 09:46:04 +10:00
Shiv Tyagi af111e91b6 Tools: add AP_PERIPH_ADSB_ENABLED as a build option 2025-07-20 06:57:42 +10:00
Peter Barker 32c3bfa4b9 Revert "Tools: add and use ability to get HWDef for board out of BoardList"
This reverts commit 721ed65003.

This commit causes issues on the 4.6 branch as hwdef.py doesn't exist.

We copy board_list.py back as part of build_binaries.py but not all of the hwdef.py files, so the script doesn't start.

It is unclear to me why we copy board_list.py back, it doesn't seem necessary or correct, rather build_binaries.py should adapt to whatever is on the branch it is trying to build.
2025-07-19 20:43:30 +09:00
Shiv Tyagi 2b69ddfbdb Tools: add AP_PERIPH_GPS_ENABLED as a build option 2025-07-19 17:49:44 +10:00
Shiv Tyagi f7c3fd961a Tools: add AP_PERIPH_PROXIMITY_ENABLED as a build option 2025-07-19 11:45:35 +10:00
Shiv Tyagi 158b9d3263 Tools: add AP_PERIPH_BATTERY_TAG_ENABLED as a build option 2025-07-17 08:32:14 +10:00
Peter Barker 47c04771f7 Tools: build_binaries.py: stop adding bebop/disco to boards
this information now comes from hwdefs
2025-07-15 09:55:20 +10:00
Peter Barker 5040b35f6a Tools: add and use ability to get HWDef for board out of BoardList
notably, use it for working out if we do a bootloader build or not
2025-07-15 09:55:20 +10:00
Shiv Tyagi 1c016abfd1 Tools: add AP_PERIPH_BATTERY_BALANCE_ENABLED as a build option 2025-07-12 11:52:26 -05:00
Shiv Tyagi 6f5bda3ece Tools: add AP_PERIPH_RELAY_ENABLED as a build option 2025-07-11 14:51:36 -07:00
Shiv Tyagi 2f2039b8f0 Tools: add AP_PERIPH_BATTERY_ENABLED as a build option 2025-07-11 07:33:42 +10:00
Peter Barker 77cf38b9fa Tools: SITL toolchain names
fixes SITL builds being stripped for comparison
2025-07-10 21:06:15 +10:00
Shiv Tyagi f0a1a27eae Tools: add AP_PERIPH_SERIAL_OPTIONS_ENABLED as a build option 2025-07-10 14:52:19 +10:00
Shiv Tyagi d19ec13283 Tools: add AP_PERIPH_NOTIFY_ENABLED as a build option 2025-07-10 10:09:08 +10:00
Shiv Tyagi 01fc3d58ef Tools: add AP_PERIPH_MSP_ENABLED as a build option 2025-07-08 23:07:23 +10:00
Randy Mackay 5fac558be2 Tools: build option rename for preland mavlink 2025-07-08 08:48:16 +09:00
Christian Clauss 123c2efc44 Tools: Fix pytest DeprecationWarning: 'maxsplit' is passed as positional argument
```diff
- parts = re.split(r'[,=\s]+', processed_line, 1)
+ parts = re.split(r'[,=\s]+', processed_line, maxsplit=1)
```

Pytest: `DeprecationWarning: 'maxsplit' is passed as positional argument`
* https://docs.python.org/3/library/re.html#re.split

### How was this tested?
Localhost testing...
% `python -m pytest --ignore=Tools/ros2`
```
========================================== test session starts ==========================================
platform darwin -- Python 3.13.5, pytest-8.4.1, pluggy-1.6.0
rootdir: /Users/cclauss/Python/ardupilot
configfile: pyproject.toml
collected 53 items

Tools/autotest/unittest/annotate_params_test.py ........................                                                                                                                                                         [ 45%]
Tools/autotest/unittest/extract_param_defaults_test.py ..................                                                                                                                                                        [ 79%]
Tools/scripts/param_check_test.py ...........                                                                                                                                                                                    [100%]

========================================== warnings summary ==========================================
Tools/scripts/param_check_test.py: 118 warnings
  /Users/cclauss/Python/ardupilot/Tools/scripts/param_check.py:338: DeprecationWarning: 'maxsplit' is passed as positional argument
    parts = re.split(r'[,=\s]+', processed_line, 1)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
========================================== 53 passed, 118 warnings in 2.74s ==========================================
```

After this change:
% `python -m pytest --ignore=Tools/ros2`
```
========================================== test session starts ==========================================
platform darwin -- Python 3.13.5, pytest-8.4.1, pluggy-1.6.0
rootdir: /Users/cclauss/Python/ardupilot
configfile: pyproject.toml
collected 53 items

Tools/autotest/unittest/annotate_params_test.py ........................                                                                                                                                                         [ 45%]
Tools/autotest/unittest/extract_param_defaults_test.py ..................                                                                                                                                                        [ 79%]
Tools/scripts/param_check_test.py ...........                                                                                                                                                                                    [100%]

========================================== 53 passed in 2.55s ==========================================
```

Also failed with `ruff check --select=B034` and passed after the proposed change.

https://docs.astral.sh/ruff/rules/re-sub-positional-args
2025-07-07 13:10:44 +10:00
Shiv Tyagi ca88644c54 Tools: add AP_TEMPERATURE_SENSOR_ENABLED as dependecy of AP_PERIPH_DEVICE_TEMPERATURE_ENABLED 2025-07-05 21:34:38 -05:00
Peter Barker 66361e29ee Tools: allow size_compare_branches.py to compare features 2025-07-04 17:50:10 +10:00
Shiv Tyagi 1a628c69f9 Tools: allow enabling AP_PERIPH_DEVICE_TEMPERATURE_ENABLED from Custom Build Server 2025-07-04 08:33:34 +10:00
Peter Barker b0f6006aff Tools: size_compare_branches.py: don't build bootloader for pilotpi/ARKV6X-bdshot
We don't build bootloaders for Linux boards, so don't try for pilotpi

ARKV6X-bdshot uses the bootloader from ARKV6X
2025-07-03 08:58:11 +01:00
Bob Long 23c21bfcec Tools: remove last vehicles from hwdefs to skip 2025-06-27 13:10:31 +10:00
Bob Long 118877ad1f Tools: param_check: fix DISABLE_CHECKS tag
This was a holdover from before I had the SkipChecks class, and I would
pass None to enable all checks.
2025-06-27 13:10:31 +10:00
Peter Barker edc7928164 Tools: add and use AP_ADSB_AVOIDANCE_ENABLED
this gates the "ADSB" avoidance feature used for macro-level avoidance.  It's not actually limited to ADSB as input...
2025-06-26 16:32:22 +10:00
e5ebd61f49 Tools: Add support for MS5837-02BA sensor
Co-authored-by: Shaikimram <shaikimran2723@gmail.com>
Co-authored-by: ES-Alexander <sandman.esalexander@gmail.com>
2025-06-26 11:41:47 +10:00
Bob Long 82faa97874 Tools: remove 4 vehicles from param check skip 2025-06-25 17:13:21 +01:00
Peter Barker 63cfa2484c Tools: run_flake8.py: check all scripts in tree, not just Tools directory 2025-06-25 13:16:59 +01:00
Peter Barker e1f2bdd456 build_options.py: correct feature lists 2025-06-24 16:42:00 +10:00
Peter Barker 75dcf12c6e Tools: allow AP_MotorsTri to be compiled out of code 2025-06-24 16:42:00 +10:00
Iampete1 f893d21b7e Tools: scripts: decode devid: add latest airspeed and baro devices 2025-06-23 14:33:44 +01:00
Christian Clauss 22582bc6c9 Tools: Fix test_ccache.py to not confuse pytest discovery
`Tools/scripts/build_tests/test_ccache.py` has a filename that will make Pytest Discovery think that it should be tested.
* https://docs.pytest.org/en/stable/explanation/goodpractices.html#conventions-for-python-test-discovery

This script also has code ___at global scope___ that will fail if certain command line arguments are not provided.

The proposed change is to put that code under `if __name__ == "__main__":` so it will not be run at test time.
* https://docs.python.org/3/library/__main__.html

Search for `test_ccache`:
* https://github.com/search?q=repo%3AArduPilot%2Fardupilot%20test_ccache&type=code

How was this tested?
1. `pytest Tools/scripts/build_tests/test_ccache.py`
2. `pytest Tools`

Both of the above find no tests instead of crashing with a long, confusing error.
2025-06-22 16:51:40 -05:00
Bob Long dfd48f9e15 Tools: remove luminousbee5 from param check skip 2025-06-19 21:27:52 +10:00
Peter Barker 406d1b38b4 Tools: size_compare_branches.py: skip building bootloads for TBS-L431 peripherals
these use their bootloader from TBS-L431 base
2025-06-18 22:57:09 +10:00