Commit Graph

1054 Commits

Author SHA1 Message Date
Peter Barker
459af5ec9b Tools: generate_manifest.py: allow generation of features.json file 2022-09-09 20:33:41 +10:00
Peter Barker
1a46a27bb8 Tools: remove vestiges of travis autotest hooks
travis had a split into two tests, test1 and test2 - which we no longer need
2022-09-09 12:08:59 +10:00
Henry Wurzburg
d17df7afc6 Tools:fix build option for MSP Optical Flow sensor and cleanup 2022-09-06 10:41:13 +10:00
Peter Barker
efc2de99de Tools: add generate_features_txt_files.py
walks a directory tree and emits a features.txt for each found .elf
2022-09-06 10:33:22 +10:00
Peter Barker
84509a4f7d Tools: extract_features: factor slightly to allow better use as library 2022-09-06 10:33:22 +10:00
Peter Barker
7244cd361d Tools: build_ci.sh: build with no/all options enabled
More chance of catching problems, and these are relatively cheap
2022-09-06 09:37:20 +10:00
Andrew Tridgell
5f8f8cf220 Tools: update signing docs 2022-09-05 12:35:37 +10:00
Andrew Tridgell
ddf770330d CI: added test of signed firmware builds 2022-09-05 12:35:37 +10:00
Andrew Tridgell
0388460c92 Tools: put ArduPilot keys first
makes key changing a bit easier for vendors
2022-09-05 12:35:37 +10:00
Andrew Tridgell
11b12cd4c8 Tools: reformat public keys
add newline to make it easier to compare keys with command line tools
2022-09-05 12:35:37 +10:00
Andrew Tridgell
7454822a8b Tools: added --debug option to build_bootloaders.py 2022-09-05 12:35:37 +10:00
Peter Barker
ae92c7d429 Tools: build_options.py: MODE_FOLLOW requires AC_AVOID 2022-09-05 09:06:33 +10:00
Henry Wurzburg
3610d36fce Tools: fix readme error for signing script 2022-09-04 07:29:38 +10:00
Peter Barker
1fcc7e6926 Tools: extract_features.py: add more feature defines/symbols 2022-09-02 23:08:04 +10:00
Peter Barker
de77105df6 Tools: extract_features.py: include !FOUND features in output 2022-09-02 23:08:04 +10:00
Peter Barker
e8589de75e build_options.py: add Flip mode 2022-09-02 23:08:04 +10:00
Henry Wurzburg
4b218bd3dc Tools: Completed adding build options to extract_features.py 2022-09-02 14:25:57 +10:00
Peter Barker
67fd2b6856 Tools: build_options.py: correct dependency name for RANGEFINDER
RANGERFINDER vs RANGEFINDERS
2022-09-01 18:02:45 +10:00
Peter Barker
a0bef487c1 Tools: build_options.py: correct msp airspeed feature name
this will now match a dependency nominating it
2022-09-01 18:02:45 +10:00
Andrew Tridgell
5c95716ed5 Tools: allow apj_tool.py --extract without having params 2022-09-01 15:20:10 +10:00
Andrew Tridgell
7fccdf3a55 Tools: fixed Holybro 6C UDB product ID 2022-09-01 15:20:10 +10:00
Peter Barker
252588b9f8 Tools: understand elf is a known firmware file format 2022-08-31 22:51:06 +10:00
Andrew Tridgell
d0508189e1 Tools: added 3rd ArduPilot signing key 2022-08-31 10:14:25 +10:00
Andrew Tridgell
9f00076e15 Tools: allow for only ArduPilot keys when creating bootloader 2022-08-31 10:14:25 +10:00
Andrew Tridgell
e31a40014a Tools: added Holybro 6C/6X px4 USB IDs
should help solve loading in MissionPlanner

https://github.com/ArduPilot/MissionPlanner/issues/2934
2022-08-31 09:44:13 +10:00
Andrew Tridgell
86ed18716e Tools: added ArduPilot signing public keys 2022-08-30 10:51:06 +10:00
Andrew Tridgell
0c2594d04b Tools: added signing tools for secure boot 2022-08-30 10:51:06 +10:00
bugobliterator
40d11540ac Tools: add signed_firmware field in apj 2022-08-30 10:51:06 +10:00
Andy Piper
c68b886700 scripts: blacklist KakuteH7Miniv2 in favour of KakuteH7Mini-Nand 2022-08-30 09:52:41 +10:00
Andy Piper
33425ce542 scripts: update manifests with KakuteH7v2 and KakuteH7Mini-Nand. 2022-08-30 09:52:41 +10:00
Andy Piper
efbf3a79a7 scripts: remove Pixhawk1-1M-bdshot from blacklist 2022-08-24 17:27:41 +10:00
Andrew Tridgell
252f2ac6f5 Tools: don't build -ODID-heli 2022-08-22 18:56:14 +10:00
Peter Barker
9bf66afee2 build_binaries.py: write fwversion out even if directory exists
We re-use the "beta" directory for other betas
2022-08-22 14:02:52 +10:00
Peter Barker
a3124689b1 Tools: flake8 fixes for board_list.py 2022-08-20 21:52:20 +10:00
Andrew Tridgell
6245b3aa16 Tools: blacklist build of ODID boards
these confuse users
2022-08-19 18:51:38 +10:00
Peter Barker
2059d1485e CI: test sailboat in CI 2022-08-19 17:04:25 +10:00
Stephen Dade
b031f88e3c Tools: Add EKF3 External Nav to build_options 2022-08-19 09:02:10 +10:00
Peter Barker
27e7042377 Tools: build_autotest.sh: sync submodules from new master not old
Also remove a redundant pull
2022-08-18 22:47:10 +10:00
Stephen Dade
5b5cdfa1f1 Tools: Add mode flowhold to build_options 2022-08-18 07:46:13 -04:00
Peter Barker
2ebba3ea99 Tools: include blimp in manifest 2022-08-17 17:34:45 +10:00
Peter Barker
d269758737 build_binaries.py: retain elf files in stm32 boards, add .elf to them 2022-08-17 17:31:52 +10:00
Peter Barker
46234e85f9 build_binaries.py: tidy file copying loop
notably, don't make fwinfo file more than once
2022-08-17 17:31:52 +10:00
Peter Barker
26b17b7c39 build_binaries.py: collapse copyit into sole caller 2022-08-17 17:31:52 +10:00
TunaLobster
04a6a2fce7 Tools: build_options.py: Add macros for Fuel options
Adds macros for FuelFlow, FuelLevel_PWM, and FuelLevel_Analog. The features are enabled on all 2MB boards.
2022-08-16 09:36:31 +10:00
Peter Barker
a237a42390 build_ci.sh: change back to original directory after running profile
.profile changes directory on Vagrant VMs.
2022-08-14 07:50:27 +10:00
Peter Barker
44229c87f0 Tools: size_compare_branches: allow compilation with --extra-hwdef 2022-08-13 09:31:13 +10:00
Peter Barker
df2e354828 build_binaries.py: print not-found-on-boardlist message
Makes it clearer in the output that we're skipping a board because it isn't in the configure list.  Currently it just does the submodule updaet then goes onto the next build, without telling you why it's not doing anything more
2022-08-10 23:28:14 +10:00
Peter Barker
e29374fa04 Tools: extract_features.py: allow for regular expressions for features
Also switch to keying off the define in build_options.py rather than the label as the label is not unique and we'd have to munge them badly (and enforce shape) where we can just use the ArduPilot defines which are all pretty well-formed.
2022-08-10 18:05:54 +10:00
Peter Barker
0632b9a0c4 Tools: powr_status.py: remove MAV_POWER_STATUS_ from bit descriptions 2022-08-10 10:05:48 +10:00
Andrew Tridgell
2f4a3ea4e8 CI: added CubeOrange-ODID build 2022-08-09 14:37:08 +10:00
Andy Piper
6ce3bb6a84 scripts: add back in bdshot targets for KakuteF7 and CubeYellow 2022-08-09 11:14:44 +10:00
Henry Wurzburg
44ce44b2fa Tools: fix errors in build_options.py 2022-08-09 10:00:03 +10:00
Henry Wurzburg
cea1e29f4e Tools: add TeraRange Neo Rangefinder 2022-08-09 09:01:34 +10:00
Peter Barker
d0210f7b89 Tools: build_ci.sh: correct quoting of space-containing value
May be "Unit Tests"
2022-08-03 09:06:49 +10:00
Andrew Tridgell
ee4a53da27 Tools: updated decode_devid.py 2022-08-02 17:26:46 +10:00
Peter Barker
b7a3038996 Tools: add script to extract features supported by a firmware 2022-07-27 09:23:06 -07:00
Iampete1
e397749946 Tools: build options: add fence 2022-07-27 19:04:56 +10:00
Iampete1
68e29f02a1 Tools: build options: add AC_AVOID 2022-07-27 19:04:56 +10:00
Peter Barker
41b8728296 autotest: remove report of pull failure
Nobody is ever reading these
2022-07-27 18:25:17 +10:00
Peter Barker
5fbd143d82 Tools: remove references to config.mk
dates from APM-build days.  The build server files references APM1 which is long gone.  Users running build_binaries can pollute their own environments, not need for this.
2022-07-26 21:23:06 +10:00
Peter Barker
b365fc129d Tools: build_parameters.sh: honour $BUILDLOGS 2022-07-25 09:34:41 +10:00
Peter Barker
52aa676db2 Tools: build_log_message_documentation.sh: honour $BUILDLOGS 2022-07-25 09:34:41 +10:00
Tom Pittenger
c60f7bff91 Tools: Enable uploader.py and waf --upload to work on WSL2 2022-07-22 09:12:01 +10:00
Peter Barker
8d833e8f23 Tools: add CI test to build with default build_options.py output
hopefully make defaults builds on the build server work all the time
2022-07-22 08:48:16 +10:00
Peter Barker
edab5f0e5a Tools: build_options.py: add AP_ICENGINE_ENABLED 2022-07-22 08:48:16 +10:00
李孟晓
d4bfcf80bd Tools: added ICP201XX build option 2022-07-19 15:02:31 +10:00
Henry Wurzburg
406d03559f Tools:Add build option for Ublox 2022-07-18 16:50:31 +01:00
Andy Piper
591f43e7d0 scripts: add TRAMP to build options 2022-07-14 09:23:59 +10:00
Tamas Nepusz
19bc7ebebe build_bootloaders.py should invoke bin2hex.py with the same Python interpreter as its own 2022-07-13 17:24:19 +10:00
Iampete1
1a70f9fffc Tools: scripts: build options: update AP_AIS_ENABLED to AP_AIS_ENABLED 2022-07-12 09:39:54 +10:00
Peter Barker
0ec06511ae Tools: build_options: mount backends depend on mount being enabled 2022-07-08 16:00:57 +10:00
Peter Barker
c19549c3a9 Tools: add AP_LTM_TELEM_ENABLED 2022-06-28 20:19:41 +10:00
TunaLobster
e77ab54de1 Tools: Improved flake8 speed, ignore, and exclude 2022-06-28 13:16:24 +10:00
李孟晓
ff7832510d Tools: add ICP101XX options to build_options.py 2022-06-28 11:59:04 +10:00
Peter Barker
554f20ddb1 Tools: configure_all.py: clarify command-line --stop option
This just makes it fatal on any command...
2022-06-28 08:18:27 +10:00
Peter Barker
71a4d24e72 Tools: add rangefinder backends to custom build server options 2022-06-21 09:15:20 +10:00
Randy Mackay
e55fa6ad92 Tools: add build_options for individual mount drivers 2022-06-15 18:08:58 +10:00
Andy Piper
3db079d15c Tools: add MambaF405 2022 MK4 2022-06-15 17:05:41 +10:00
Chuck Faber
b657d54336 Tools/scripts: Add Sagtech MXS to custom build server 2022-06-14 07:10:17 -07:00
Andy Piper
3935971e46 Tools: add MambaH743 to manifest generator 2022-06-08 21:44:21 +10:00
Pierre Kancir
020bd0ba1e Tools: fix exec permission 2022-06-08 08:16:42 +09:00
Andrew Tridgell
f0c3d5129c Tools: cope with change in cygwin build
copy both with and without exe extension
2022-06-07 11:20:03 +10:00
Peter Barker
a09e8527ff Tools: build_options.py: disable MSP, UAVCAN, Dummy and ExternalAHRS baro backends by default
Causes build errors as (e.g. ExternalAHRS is disable by default)
2022-05-26 21:45:45 +10:00
ES-Alexander
f6544ca25a Tools: uploader.py: exit with error on failure
- Script was already exiting at this point anyway, this just sets a non-zero program return code in the case of a failure
- Means programatic callers can detect if flashing fails, without needing to monitor (and parse) stdout
2022-05-26 09:30:27 +10:00
Peter Barker
b99c4b3a89 build_options.py: enable baro backends by default 2022-05-25 18:17:49 +10:00
Peter Barker
0e9236a116 Tools: build_options.py: fix double-definition of AP_BARO_MSP_ENABLED
Fixes redefinition on custom build server
2022-05-25 17:49:38 +10:00
Peter Barker
e7d8ad4096 Tools: add baro backend drivers to build options 2022-05-22 12:11:45 +10:00
Peter Barker
c8bc8a8824 Tools: allow baro backends to be individually compiled out 2022-05-22 12:11:45 +10:00
Peter Barker
74ca672caf Tools: add build options for airspeed to custom build server 2022-05-10 09:02:51 +10:00
Andrew Tridgell
b9366c50c8 Tools: treat brltty like modemmanager
on Ubuntu 22.04 brltty prevents use of serial radios
2022-05-03 10:09:12 +10:00
Oleksandr Shcherbatii
0cec5dccea Tools: Fix setup for Jammy 2022-05-02 08:05:00 +10:00
Leonardo Garcia
0eb6ae365a AP_InertialSensor: Added BMI085 support
Fixed styling for 61125e2

Remove whitespace l202

Removed else
2022-04-27 18:37:39 +10:00
Andrew Tridgell
e00608d922 Tools: fixed type of max-gap in CAN fix2 script 2022-04-27 17:13:07 +10:00
Andrew Tridgell
51fa26c505 Tools: added options to board_list.py
make it easier to rebuild all bootloaders for AP_Periph with:

  ./Tools/scripts/board_list.py AP_Periph --per-line | xargs -i ./Tools/scripts/build_bootloaders.py '{}'
2022-04-20 12:27:29 +10:00
Andrew Tridgell
35a2ca62ee Tools: added test script for checking for Fix2 missed frames
used to track down the F405 and L431 lost frames
2022-04-18 14:40:53 +10:00
Andrew Tridgell
69666d19ee Tools: fix cygwin build error 2022-04-13 18:30:18 +10:00
Peter Barker
eb930f830b Tools: build_ci.sh: set consistent GIT_VERSION_INT in env
For consistent compiler output
2022-04-12 11:47:48 +10:00
Peter Barker
c805310152 Tools.py: add Volz, RobotisServo and FETTec to build_options.py
Allows for enabling/disabling on custom build server
2022-04-12 10:35:01 +10:00
Peter Barker
870527a385 Tools: allow size-compare_branches.py on AP_Periph 2022-04-11 08:07:42 +10:00
Andrew Tridgell
10d7ea9358 Tools: recognise "AUTOBUILD_TARGETS None"
and make for easier testing on command line
2022-04-06 14:13:44 +10:00