Commit Graph

705 Commits

Author SHA1 Message Date
Andrew Tridgell 8cdf50a1a0 Tools: force pymonocypher version 2024-05-31 09:44:33 +10:00
Andrew Tridgell 5b9ac1fdc1 waf: added -g option to configure
this adds debug symbolds to the build without enabling other debug
code. This is needed for analysing watchdog crash dumps
2023-05-25 11:33:10 +10:00
Andrew Tridgell cbfba1b719 waf: add -fcheck-new to g++ build
this ensures the compiler doesn't assume that new always returns a
non-NULL value. Without this the compiler may remove the error path in
code like this:

```
MyObject *x = new MyObject;
if (x == nullptr) {
  ::printf("Alloc failed\n");
}
```

the reason it can do this is the new operator is marked as throwing an
exception on failure, which means the error path is unreachable. As we
don't have C++ exceptions in ArduPilot could (and do!) have code that
ends up losing protection against allocation failures
2023-01-10 08:12:47 +09:00
Andrew Tridgell 854061fdbe waf: added --enable-gps-logging 2022-10-24 22:23:32 +09:00
Andrew Tridgell fd126b0d37 waf: ensure we don't try to use non-implemented functions 2022-10-24 22:23:32 +09:00
bugobliterator 19856ee6e8 waf: setup defines for CANARD multi can support 2022-09-08 13:37:55 +10:00
Andrew Tridgell b55ee297d8 waf: allow setting signing key as part of configure with --private-key
makes for faster development with signed bootloaders
2022-09-05 12:35:37 +10:00
esaldiran 661a525dc1 waf: add --enable-custom-controller build option 2022-08-30 13:10:09 +10:00
bugobliterator 3f951c3e0b waf: add support for secure bootloader 2022-08-30 10:51:06 +10:00
bugobliterator 0c78f8bac2 AP_HAL_ChibiOS: add support for booting into DFU 2022-08-30 10:51:06 +10:00
Andrew Tridgell a82758bc3e waf: allow opendroneid on sitl on cygwin and macos
should be now with the structure changes
2022-08-24 18:08:40 +10:00
Peter Barker dab9e00dc7 Tools: rename HAL_MISSION_ENABLED to AP_MISSION_ENABLED 2022-08-18 22:49:10 +10:00
bugobliterator 3c30991153 waf: ensure we don't apply app desc step on BL 2022-08-16 16:49:30 +10:00
Andrew Tridgell c955c75b9d waf: allow for --enable-opendroneid on any board
useful for testing
2022-08-15 12:45:06 +10:00
Andrew Tridgell df75c1796a waf: added --enable-check-firmware option 2022-08-15 09:18:34 +10:00
Joshua Henderson 68360571d1 Tools: ardupilotwaf add OpenDroneID lib 2022-08-09 14:37:08 +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 c0243772b4 waf: add --define command-line option
Allows CPP defines to be specified on command-line

Eases enable/disable of optional features
2022-07-19 09:09:05 +10:00
Peter Barker 6c17fd7bac waf: build Richenpower on SITL by default 2022-07-19 09:09:05 +10:00
Andrew Tridgell 4d4a1ddd42 waf: setup UBSAN_ENABLED define 2022-07-12 11:00:08 +10:00
Andrew Tridgell acf56204f2 waf: added --ubsan and --ubsan-abort options 2022-07-12 11:00:08 +10:00
Iampete1 28989f1838 Tools: ardupilotwaf: add AP_AIS to build 2022-07-12 09:39:54 +10:00
Tom Pittenger 0c7e107157 Tools/waf: Add Sagetech SDK to WAF build 2022-06-14 07:10:17 -07:00
Randy Mackay 104e9202af Tools: remove AP_ToshibaCAN from waf 2022-06-10 12:08:05 +09:00
Pierre Kancir 020bd0ba1e Tools: fix exec permission 2022-06-08 08:16:42 +09:00
Pierre Kancir 2cca370a74 Tools: ardupilotwaf: remove useless shebang on non exec files 2022-06-08 08:16:42 +09:00
Peter Barker 7474a31a83 waf: take ap_version.h int items from environment as we do str items
This will mean we take the integer version of GIT_VERSION from the env
too
2022-04-12 11:47:48 +10:00
bugobliterator 7770c960c9 waf: add support for CANFD in SITL 2022-03-27 06:07:34 -07:00
Peter Barker 4c8fc3bcaf waf: split AP_HAL_SITL and AP_SIM_ENABLED 2022-03-17 14:39:55 +11:00
Peter Barker 1a58b3b025 waf: disable airspeed on sitl_periph_gps 2022-03-15 08:52:37 +11:00
bugobliterator 47e710c21a waf: enable tao option for sitl_periph_gps 2022-03-11 18:13:54 +11:00
bugobliterator 79f55e7aad waf: enable option for setting TAO state 2022-03-11 18:13:54 +11:00
Siddharth Purohit 5e54871d82 ardupilotwaf: set flags for CANFD support as applicable 2022-03-11 18:13:54 +11:00
Iampete1 6ac661c6ce Tools: ardupilotwaf: add AP_CustomRotations 2022-03-02 18:16:42 +11:00
Andy Piper fdaaa589e5 waf: move external flash binaries to regular name to aid publishing 2022-03-01 11:15:52 +11:00
Andrew Tridgell ad88f3e1e8 waf: added --save-temps configure option
linking fails with this option, but the ii files are produced, which
is what is needed for diagnosing cache issues
2022-02-23 12:36:59 +11:00
Andrew Tridgell d07d5a7082 waf: removed g++ command line differences between similar boards
don't put board name on g++ command line
2022-02-22 12:13:19 +11:00
Andy Piper 3f7a726970 waf: add linker map on linking 2022-02-09 12:47:55 +00:00
Andy Piper 2beb9cfc7d waf: rename EXTERNAL_PROG_FLASH_MB to EXT_FLASH_SIZE_MB 2022-02-09 12:47:55 +00:00
Peter Barker 410507d54d waf: include integer version of GIT_VERSION (hash) 2022-02-09 18:32:38 +11:00
Joshua Henderson b3e78e1e8d ardupilotwaf: grouped_program use nested dicts 2022-02-02 19:36:39 +11:00
Willian Galvani 2b9d56c252 Tools: embed default.param files for Linux boards 2022-02-01 17:35:26 +11:00
Peter Barker c056a7948d Tools: move Airspeed up to AP_Vehicle, provide dummy 2022-01-19 18:21:32 +11:00
Peter Barker 43b4f86485 waf: use GIT_VERSION from env if available
This allows for reproducible builds to be produced
2022-01-18 11:30:41 +11:00
Pierre Kancir d9c562cfae Tools: add HAL_COVERAGE_BUILD for coverage build 2022-01-12 12:31:56 +11:00
Peter Barker d6f4f54c0a Tools: include brand name and manufacturer in APJ file, use for manifest 2022-01-07 22:46:52 +11:00
Joshua Henderson ac4304e2c4 Tool: ardupilotwaf fix duplicate reporting from build summary 2022-01-03 12:40:42 +11:00
Josh Henderson d410533424 Tools: fix Build_Summary when more than one targert 2021-12-28 10:27:10 +11:00
Josh Henderson 74fa47a3bb Tools: fix flash size reporting due to crash_log 2021-12-21 20:33:00 +11:00
bugobliterator 9eb3a976bc waf: allow build with ardupilot as a module 2021-12-20 12:47:25 +11:00