1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

1536 Commits

Author SHA1 Message Date
chrysn
4fb9f46e62 tools/compile_commands: use -Wno-unknown-warning-option
... instead of manual filtering

Some -Wwarning-type flags were removed because in combination with
-Werror they caused clang to fail when the warning type was unknown.
Rather than enumerating them (a manual process with the extra risk of
leaving warnings disabled longer than necessary), this adds
`-Wno-unknown-arning-option` which disables the warnings (that are
becoming erors through -Werror) raised when a warning's name is unknown.
2022-01-27 09:10:49 +01:00
chrysn
c3fa026226 tools/compile_commands: Filter out -msmall-data-limit=8
It is not available in the libclang version currently shipped with
riotdocker.
2022-01-27 08:58:35 +01:00
Leandro Lanzieri
4eb58d74b5
drivers/ft5x06: allow multiple device types 2022-01-21 13:13:09 +01:00
chrysn
13036c1bc4 net/iee802154 doc: Add overview / introduction documentation
The module previously called net_ieee802154 is renamed to capture that
it is about interacting the frames and headers, and moved "into" the new
topic in the documentation tree.

Exceptions for undocumented headers are updated.
2022-01-16 11:29:32 +01:00
Benjamin Valentin
1b71ccab09 tools/zep_dispatch: basic dual-stack support
Murdock does not support IPv6 on link-local interfaces.
Therefore in order to being able to use ZEP dispatcher in automated tests
on CI, we have to add dual-stack support.
2022-01-10 17:57:58 +01:00
5bbab90f57
tools/doccheck: extend exclude patterns 2022-01-09 16:43:35 +01:00
af1456440c
dist/iotlab: remove deprecated auto-ssh backward compatibility 2022-01-06 09:59:26 +01:00
benpicco
120e840b42
Merge pull request #16889 from benpicco/tools/zep_dispatch-topogen
tools/zep_dispatch: add topology generator
2022-01-05 13:47:23 +01:00
Benjamin Valentin
b6819b442a tools/zep_dispatch: add topology generator 2022-01-05 13:34:31 +01:00
86af5b5832
tools/doccheck: extend exclude patterns for b-u585i-iot02a 2021-12-23 11:04:42 +01:00
chrysn
a31947304f dist/tools/cosy: Update, refresh patch and drop applied patch 2021-12-22 14:16:37 +01:00
385e65f497
Merge pull request #17405 from kaspar030/can_fast_ci_run_skipcomments
tools: can_fast_ci_run.py: ignore comment changes for `\.[ch]$`
2021-12-17 09:12:59 +01:00
60f9ceabd1 tools: can_fast_ci_run.py: ignore comment-only change for .[ch] 2021-12-16 20:50:52 +01:00
chrysn
afdabcf9b6
Merge pull request #16274 from chrysn-pull-requests/rust-application
Add some Rust building infrastructure and example
2021-12-16 16:17:28 +01:00
chrysn
a72ee1fb03 compile_commands: Don't produce duplicate -c arguments 2021-12-16 13:29:31 +01:00
chrysn
d0ed537bae compile_commands: Filter out GCC-only -malign-data=natural 2021-12-16 13:29:30 +01:00
krzysztof-cabaj
940f1eea4b tools/elf2uf2: addition of new PROGRAMMER for rpi-pico board 2021-12-15 11:40:10 -05:00
chrysn
9560f18ee1 codespell: Allow 'crate' from Rust context 2021-12-14 13:27:42 +01:00
e080487da1 dist/tools: can_fast_ci_run: add murdock functionality 2021-12-13 10:59:28 +01:00
Francisco
b5085db348
Merge pull request #17326 from benpicco/dist/tools/zep_dispatch-foren6
tools/zep_dispatch: document foren6 usage
2021-12-07 15:22:28 +01:00
Benjamin Valentin
78dae6b9e6 tools/zep_dispatch: document foren6 usage 2021-12-07 11:59:43 +01:00
Benjamin Valentin
5ef70dbee9 tools/zep_dispatch: replace sniffer instead of ignoring it
There can only be a single sniffer, but instead of ignoring any subsequent
sniffers, replace the existing one.

This avoids the silly behaviour that you can't attach the sniffer anymore
should you ever quit it.
2021-12-07 11:59:42 +01:00
d94a53e593
Merge pull request #17239 from maribu/dist/tools/ci
dist/tools/ci: add can_fast_ci_run.py
2021-12-03 16:43:14 +01:00
Marian Buschsieweke
d643bd8d2b
dist/tools/ci: add script to check if fast run is possible 2021-12-02 21:05:12 +01:00
benpicco
a5c5a5d284
Merge pull request #16879 from benpicco/tools/zep_dispatch-sniffer
tools/zep_dispatch: add support for foren6 sniffer
2021-12-02 19:10:46 +01:00
Benjamin Valentin
c4ad82f5e6 pythonlib/riotctrl_shell: use ping instead of ping6 2021-11-29 17:39:12 +01:00
Benjamin Valentin
d9387fd82d static-tests: disable cppcheck
cppcheck produces too many false positives to be useful.
This is likely due to a configuration error (not all header files are included?)
but until this is sorted out, disable the tool as it currently does more harm
than good.
2021-11-28 21:43:34 +01:00
Martine Lenders
1b9146ec21
Merge pull request #17134 from miri64/cppcheck/enh/all-errors
cppcheck: output all annotations as error
2021-11-25 13:12:53 +01:00
Benjamin Valentin
851906763b tools/radvd: fix help text
radvd can be started on any interface, not just tap devices.
The help text is confusing.
2021-11-23 20:02:47 +01:00
68bfd8e257
tools/openocd: check OPENOCD_VERIFY after IMAGE_OFFSET is computed 2021-11-22 13:03:32 +01:00
dba0dab1b1
doccheck: add stm32f746g-disco warning to exclude patterns 2021-11-16 10:51:48 +01:00
Francisco
72abac66f1
Merge pull request #17183 from fjmolinas/pr_stm32wl_adc
cpu/stm32/wl: initial periph_adc implementation
2021-11-15 19:06:24 +01:00
benpicco
7c8504186e
Merge pull request #16109 from benpicco/dist/tools/create_makefile.ci.sh
tools/insufficient_memory: add create_makefile.ci.sh and Makefile.ci make target
2021-11-15 18:12:01 +01:00
Benjamin Valentin
0b3e4cd43f tools/insufficient_memory: add create_makefile.ci.sh 2021-11-15 17:41:54 +01:00
Francisco Molina
6346fc8613 boards/lora-e5-dev: map a4, a5 analog inputs 2021-11-15 17:07:21 +01:00
2f6b7bc651
Merge pull request #17082 from kaspar030/add_doxy_pattern_script
dist/tools/doccheck: add create_pattern.sh
2021-11-15 15:35:59 +01:00
benpicco
6f4c354461
Merge pull request #17139 from fjmolinas/pr_static_cocci_remove
dist/tools/coccinelle/force: remove static.cocci
2021-11-12 13:53:37 +01:00
Francisco
b609646961
Merge pull request #17138 from fjmolinas/pr_sx126x_fixes
drivers/sx126x: fix sync word and TX PA configuration
2021-11-11 10:59:08 +01:00
dba51edc69 net/uhcp[cd]: use modules to select client/server code 2021-11-09 21:42:45 +01:00
Francisco Molina
15b22f83c1 dist/tools/doccheck/exclude_patterns: add lora-e5-dev 2021-11-08 20:01:52 +01:00
Francisco Molina
acde16465a dist/tools/coccinelle/force: remove static.cocci
The rule is not behaving as it should and flagging all 'static'
variables based only on initialization (if the variable is initialized
before usage), but fails to recognize if 'static' is used to limit
visibility.
2021-11-05 08:45:55 +01:00
Martine Lenders
ca32d7704f
cppcheck: output all annotations as error on script error
`cppcheck` has a non-zero exit code even on warnings, so to not confuse
contributors, align the annotation output with that.
2021-11-04 15:43:02 +01:00
Francisco
c3226ba865
Merge pull request #17107 from miri64/treewide/fix/pycryptodome
pycrypto: use pycryptodome instead
2021-11-02 22:09:08 +01:00
Martine Lenders
ab9dd8f942
tools/vagrant: FreeBSD 12 updated to python 3.8 2021-11-02 13:45:50 +01:00
Martine Lenders
e38aec72b2
pycrypto: use pycryptodome instead
`pycrypto` is unmaintained [[1]] since v2.6.1 (released October 2013).
This version, however, has some severe vulnerabilities [[2]] [[3]].

The recommendation is to use the API-compatible `pycryptodome` library.

[1]: https://github.com/pycrypto/pycrypto/issues/173
[2]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-7459
[3]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-6594
2021-11-02 13:28:42 +01:00
Francisco Molina
9a050dc2e8 dist/tools/doccheck/exclude_patterns: add new warnings 2021-11-02 11:48:50 +01:00
72cdaee46f dist/tools/uhcpd: remove project.py
This should never have made it into the repo, it's a build file for an
experimental build system I built years ago.
2021-11-01 21:13:10 +01:00
3cb3976ae0 dist/tools/doccheck: add create_pattern.sh 2021-10-29 12:21:39 +02:00
f27fce0eed doccheck: add nucleo-g07xrb group members to exclude_patterns 2021-10-29 10:49:38 +02:00
Benjamin Valentin
a711208a75 tools/zep_dispatch: add support for foren6 sniffer 2021-10-27 14:15:31 +02:00
benpicco
1b09720149
Merge pull request #16957 from benpicco/tools/zep_dispatch-ack_fix
tools/zep_dispatch: forward based on source addr, not MAC addr
2021-10-26 21:07:30 +02:00
Gunar Schorcht
697c44811a
Merge pull request #16911 from yarrick/esp_jtag
cpu/esp32: Add openocd programming support
2021-10-26 01:24:27 +02:00
d14f559622
Merge pull request #16915 from aabadie/pr/pythonlibs/black_format
tools/pythonlibs/riotctrl_*: add code format check with black
2021-10-25 10:49:16 +02:00
iosabi
7b1f083cd8 esp8266: Download Espressif RTOS SDK as a new RIOT PKG
RIOT-OS uses part of Espressif ESP8266 RTOS SDK to build support for
this CPU. The SDK includes some vendor-provided closed source
pre-compiled libraries that we need to modify to adapt to RIOT-OS
usage. This library modifications was done once and uploaded to a fork
of the vendor repository and was provided as an environment variable.

This patch changes two things:

1. It installs the SDK as a RIOT PKG from the new pkg/esp8266_sdk
directory instead of requiring the user to download it separately.

2. It performs the library modifications (symbol renames) on the pkg
Makefile removing the need to use a fork with the modifications applied
and simplifying the SDK update and future modifications.

This change sets the SDK package version (git SHA) to the same one that
our fork was using as a parent in the vendor repository, meaning that
the output libraries are exactly the same as before.

Tested with
```
ESP8266_RTOS_SDK_DIR=/dev/null USEMODULE=esp_log_startup make -C tests/shell BOARD=esp8266-esp-12x flash
```

and verified that the program works. The boot message now includes:
```
ESP8266-RTOS-SDK Version v3.1-51-g913a06a9
```
confirming the SDK version used.

`/dev/null` in the test is just to make sure that no evaluation of
`ESP8266_RTOS_SDK_DIR` in make is affected by the environment variable
value which would be set to the SDK for people who followed the set up
instructions before this change.

Tested the checkout size:
```bash
$ du -hs build/pkg/esp8266_sdk/
124M	build/pkg/esp8266_sdk/
```
2021-10-23 11:13:38 +00:00
Francisco
81458c8eed
Merge pull request #17021 from fjmolinas/pr_remove_board_fox
boards/fox: remove BOARD
2021-10-23 11:30:35 +02:00
3b4e698b2e
Merge pull request #16907 from aabadie/pr/tools/backport_pr_with_black
tools/backport_pr: check code format with black
2021-10-22 12:58:01 +02:00
2e7c83f374
tools/flake8: ignore pythonlibs/riotctrl_* directories
They are already covered by flake8 with their tox configuration
2021-10-22 10:25:15 +02:00
b44652c489
pythonlib/riotctrl_shell: reformat with black 2021-10-22 10:25:15 +02:00
f2bb9242bb
pythonlib/riotctrl_shell: add black testenv in tox
Add Flake8 configuration compatible with black
2021-10-22 10:25:15 +02:00
43550cd853
pythonlib/riotctrl_ctrl: reformat native.py with black 2021-10-22 10:25:15 +02:00
ba1173409f
pythonlib/riotctrl_ctrl: add black testenv in tox
Add Flake8 configuration compatible with black
2021-10-22 10:25:15 +02:00
8d4d8f207d
tools/backport_pr: reformat with black 2021-10-22 10:20:52 +02:00
43a7c8c8f2
tools/backport_pr: add black testenv in tox
Add Flake8 and Pylint configuration compatible with black
2021-10-22 10:20:52 +02:00
8f870a7cb8
tools/compile_and_test_for_board: reformat with black 2021-10-22 10:19:55 +02:00
c98fc635fc
tools/compile_and_test_for_board: add black testenv in tox
Add Flake8 and Pylint configuration compatible with black
2021-10-22 10:19:55 +02:00
Francisco Molina
2552c6941e treewide: remove mentions of 'fox' BOARD 2021-10-20 13:53:26 +02:00
Francisco Molina
3aa6492016 dist/pythonlibs/riotctrl_shell/tests/common: add expect to mock 2021-10-18 15:50:54 +02:00
Erik Ekman
1c6d7dcdaf tools/openocd: Make verifying flashed image optional
Checksumming flash is not supported on xtensa platform:

Warn : not implemented yet

make: *** [.../RIOT/examples/saul/../../Makefile.include:796: flash] Error 1
2021-10-15 10:13:25 +02:00
Benjamin Valentin
00868f85ce tools/zep_dispatch: forward based on source addr, not MAC addr
Forward data soly based on the real source IPv6 address, not the virtual
MAC address.

ACK frames don't have a MAC address and should still be forwarded to all
nodes in range.
2021-10-06 17:53:15 +02:00
Benjamin Valentin
3e7999387c tools/zep_dispatch: don't graph links with weight 0 2021-09-24 16:26:36 +02:00
chrysn
f93d1276b4
Merge pull request #16867 from miri64/dist/enh/use-fstrings-where-warned
dist/tools: use f-strings where possible
2021-09-17 12:34:17 +02:00
Martine Lenders
5204c29890
dist/tools/compile_and_test_for_board: use f-strings where possible 2021-09-17 12:04:04 +02:00
Martine Lenders
9254cffdda
dist/tools/backport_pr: use f-strings where possible 2021-09-17 12:04:04 +02:00
Jean-Pierre De Jesus DIAZ
70b074ff8f boards/adafruit-clue: fix doxygen warnings
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2021-09-14 11:16:50 +02:00
Jean-Pierre De Jesus DIAZ
7fe67ea285 dist/tools/doccheck: generate exclude_patterns using C.UTF-8
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2021-09-14 10:21:35 +02:00
Jean Pierre Dudey
ffff68deaf
Merge pull request #16813 from jeandudey/doc1
cpu: fix doxygen grouping warnings
2021-09-13 11:30:27 +02:00
Jean-Pierre De Jesus DIAZ
6f8803e34f dist/tools/doccheck: update exclude_patterns
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2021-09-11 12:45:15 +02:00
Kevin "Tristate Tom" Weiss
73e32207df
Merge pull request #16052 from miri64/dist/enh/genconfig-env
makefiles/kconfig.mk: generate config file from RIOT_CONFIG_% environment variables
2021-09-08 11:00:59 +02:00
Martine Lenders
c851ec60b8
buildsystem_sanity_check: Check for RIOT_CONFIG_* variables 2021-09-07 11:23:12 +02:00
Martine Lenders
13cc189a8a
Revert "Remove which from shell invocations" 2021-09-03 11:27:03 +02:00
Karl Fessel
6b47efb57b
Merge pull request #16710 from benpicco/benchmark_udp
add UDP benchmark:
a nice tool to check reliability and performance of networks and nodes under high pkg pressure.
2021-09-03 11:22:06 +02:00
Benjamin Valentin
1bc6b7eec7 tools/benchmark_udp: add host tool for benchmark 2021-09-02 23:12:31 +02:00
chrysn
1c6b675d9f makefiles: Reject 2>&1 > /dev/null
While this could theoretically be desired, it's usually just a mishap.
It is unlikely that legitimate cases will be needed in the build system;
if so, they can exclude themselves.

See-Also: https://github.com/RIOT-OS/RIOT/pull/16775
2021-09-02 16:30:47 +02:00
chrysn
6bcc68b9cc makefiles: Reject shell which in new code
... as that command is deprecated at least on Debian, and a good
replacement is available in the form of `command -v`.
2021-09-02 16:30:47 +02:00
chrysn
6b50033766 makefiles: Replace which with command -v
As the POSIX documentation[1] of `command -v` guarantees that on error
there will be no output (and there will be output in the other cases),
the tests in Makefiles were simplified to test for output equality to
the empty string.

Redirects swallowing error outputs were removed, as the command produces
no error output there (as recommended at [2]).

Existing uses of `command` are simplified as well.

[1]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html
[2]: https://salsa.debian.org/debian/debianutils/-/blob/master/debian/NEWS
2021-09-02 16:30:46 +02:00
Martine Lenders
db16cafe04
Merge pull request #16779 from miri64/doccheck/enh/exclude_pattern_file
dist/tools/doccheck: add exclude file for warnings and use it
2021-09-01 11:58:00 +02:00
Francisco Molina
22d012ff50 makefiles/suit*: use $(Q) to silence output 2021-09-01 08:57:13 +02:00
Martine Lenders
8e1dd16d37
doccheck: fix or suppress shellcheck warnings 2021-08-31 19:20:37 +02:00
Martine Lenders
acdcaf16a5
dist/tools/doccheck: add exclude file for warnings and use it
This is purely to finally unblock RIOT-OS/riotdocker#104, but may also
be useful to add future exclude patterns.

Exclude file was generated using

```sh
make doc 2> dist/tools/doccheck/exclude_patterns_base
grep "^${PWD}" dist/tools/doccheck/exclude_patterns_base | \
    sed -E -e "s#^${PWD}/(.*:)([0-9]+): #\1DIGITS_MAGIC: #" \
           -e 's/[]\\.$*{}|+?()[^-]/\\&/g' \
           -e 's/:DIGITS_MAGIC:/:[0-9]+:/' \
        > dist/tools/doccheck/exclude_patterns
rm dist/tools/doccheck/exclude_patterns_base
```
2021-08-31 19:20:37 +02:00
benpicco
b062ce8660
Merge pull request #16772 from fjmolinas/pr_pylint_compile_and_test
dist/toles/compile_and_test_for_board: fix W1514
2021-08-23 17:58:14 +02:00
Francisco Molina
5d47e186ed dist/toles/compile_and_test_for_board: fix W1514 2021-08-23 16:44:23 +02:00
benpicco
ce99933897
Merge pull request #16726 from hugueslarrive/pyterm
dist/tools/pyterm: ipv6 address support for tcp_serial option
2021-08-14 16:32:06 +02:00
Jan Romann
4384795cb9
treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
Hugues Larrive
4f3cb128ae dist/tools/pyterm: ipv6 address support for tcp_serial option 2021-08-12 22:19:04 +02:00
Benjamin Valentin
b0b8c5a641 riotctrl_shell.gnrc: add parser for reply corruption & truncation 2021-08-11 12:04:22 +02:00
benpicco
4f905bfa8c
Merge pull request #15493 from benpicco/riotboot-serial
riotboot: implement serial flasher
2021-07-21 11:01:31 +02:00
Benjamin Valentin
22b3e1bc6b tools/riotboot_serial: add flasher tool for riotboot serial loader 2021-07-20 22:50:41 +02:00
benpicco
1407559f33
Merge pull request #15773 from benpicco/tools/zep_dispatch-topology
tools/zep_dispatch: add support for advanced topologies
2021-07-07 12:14:43 +02:00
Benjamin Valentin
c81e4d3a2c tools/zep_dispatch: uncrustify 2021-07-06 18:29:25 +02:00
Benjamin Valentin
aa3dfd9b88 tools/zep_dispatch: add support for topologies 2021-07-06 18:21:52 +02:00