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

1879 Commits

Author SHA1 Message Date
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
Jose Alamos
43b992c09b
dist/Kconfiglib: fix autoconf header
This commit fixes the generation of autoconf headers.
The `write_autoconf` function in the RIOT wrapper was overriding
the default value of the `header` arg to None in Kconfiglib's `write_autoconf`.
It's now set to the default header.
2021-06-16 14:06:47 +02:00
565d28a6bc
tools/iotlab-testbed: add support for remote debugging 2021-06-02 18:13:34 +02:00
3c8cfd45f1
tools/iotlab-testbed: rename deprecated flash/reset-m3 subcommands 2021-06-01 17:37:50 +02:00
ebbe2c2aa1
tools/testbed-iotlab: better handle unsupported archis 2021-06-01 17:37:50 +02:00
a7f00548a2
tools/iotlab-testbed: check iotlab cli tools are installed 2021-06-01 17:37:50 +02:00
a9fceb1592
tools/iotlab-testbed: handle IOTLAB_NODE in comma separated form 2021-06-01 17:37:49 +02:00
6c0556b422
tools/testbed: use IOTLAB_NODE=auto instead of auto-ssh
This deprecates the use of IOTLAB_NODE=auto-ssh
2021-05-28 17:23:11 +02:00
Benjamin Valentin
68f2a6b3c3 tools/edbg: bump version
- adds pic32 & saml11 devices
 - Nuvoton M480 series support
2021-05-23 18:28:36 +02:00
b9ba47f6aa
tools/uncrusctify: whitelist sx127x driver related files 2021-05-18 11:00:44 +02:00
Francisco
8cb8bba4e7
Merge pull request #16104 from maribu/external_modules
build system: Rework EXTERNAL_MODULE_DIRS
2021-05-07 23:27:17 +02:00
Marian Buschsieweke
6ac8aba955
build system: rework EXTERNAL_MODULE_DIRS
Previously, external modules had to be individually added to both
EXTERNAL_MODULE_DIRS and USEMODULE. If those where not in sync, this
resulted in build errors.

With this commit, search folders for external modules are added to
EXTERNAL_MODULE_DIRS instead. So lets say the file system structure is
like this

```
└── /path/to/external/modules
    ├── mod_a
    │   ├── Makefile
    │   ├── Makefile.dep
    │   ├── Makefile.include
    │   ├── foo.c
    │   └── include
    │       └── external_module.h
    └── mod_b
        ├── Makefile
        └── bar.c

```

One now adds `/path/to/external/modules` to EXTERNAL_MODULES and only
with `USEMODULE += mod_a` the corresponding module, dependencies and
include settings are actually used. Hence, it is possible to configure
`EXTERNAL_MODULE_DIRS` from `~/.profile` or `~/.bashrc` once and never
needs to worry about them again.
2021-05-07 21:29:05 +02:00
Martine Lenders
c71a52dc0c
Merge pull request #15978 from miri64/riotctrl_ctrl/enh/native_reset
riotctrl_ctrl: A reset helper class for `native`
2021-05-04 13:48:18 +02:00
Martine Lenders
9f8b4a1c9b
riotctrl_ctrl: add tests for NativeRIOTCtrl 2021-05-04 11:46:51 +02:00
Martine Lenders
49ea453df9
riotctrl_ctrl: provide helper class for native reset 2021-05-04 11:46:51 +02:00
Martine Lenders
5b7b32e654
Merge pull request #16403 from fjmolinas/pr_riotctrl_shell_loramac
dist/pythonlibs/riotctrl_shell: add loramac shell
2021-05-03 19:18:48 +02:00
Francisco Molina
3fbd079bc3
dist/pythonlibs/riotctrl_shell: add loramac shell 2021-05-03 16:52:14 +02:00
Hauke Petersen
365641ac3c tools/dhcpv6-pd_ia: add Linux Mint to installer 2021-04-28 18:31:24 +02:00
Marian Buschsieweke
7f01c17ef3
dist/tools/avarice/debug.sh: less noise
Redirect also stderr to /dev/null when trying to detect the correct
binary name for GDB for AVR.
2021-04-22 08:45:57 +02:00
chrysn
c99bb55e68
Merge pull request #16129 from maribu/compile_commands_json
build system: add compile-commands target to generate compile_commands.json
2021-04-14 18:10:28 +02:00
Marian Buschsieweke
a07dac9ad1
build system: add new compile-commands make target
By running make compile-commands a `compile_commands.json` in the RIOT base
directory. With the environment variable `COMPILE_COMMANDS` the path of
this file can be changed to a custom location.

The `compile_commands.json` will contain the exact compile command, but
as additional flag `-I/usr/$(TARGET)/include` is added to work around
`clangd` not being able to locate the newlib system headers. The
additional includes can be overwritten using the environment variable
`COMPILE_COMMANDS_EXTRA_INCLUDES`.
2021-04-14 14:51:46 +02:00
MrKevinWeiss
450b70e345 tools/kconfiglib: Allow for - in symbols 2021-04-08 16:44:10 +02:00
Dmitry K
a3984a529f tapsetup: fix typo in usage text 2021-04-06 21:44:45 +03:00
Kevin "Tristate Tom" Weiss
796175591d
Merge pull request #15877 from MrKevinWeiss/pr/gootfet2to3
dist/tools/goodfet: Update goodfet flasher to python3
2021-03-30 09:54:40 +02:00
Martine Lenders
fd36c626a3
Merge pull request #15950 from MrKevinWeiss/pr/turo/initial
sys/test_utils/result_output: Initial implementations and API of turo
2021-03-15 11:35:01 +01:00
MrKevinWeiss
2e5ff00386 dist/tools/uncrustify: Add turo module 2021-03-15 10:36:46 +01:00
Martine Lenders
e768a85f62
Merge pull request #15798 from miri64/dist/enh/annotations-moved-by-offset
static_tests: move diff annotations by offset.
2021-03-11 14:12:02 +01:00
Martine Lenders
254af225c9
uncrustify: move annotation by offset 2021-03-11 13:32:33 +01:00
Martine Lenders
b52ddefccd
headerguards: move annotation by offset 2021-03-11 13:32:33 +01:00
Martine Lenders
c6260f29b3
coccinelle: move annotation by offset 2021-03-11 13:32:32 +01:00
Martine Lenders
d27ea0237e
Merge pull request #16119 from miri64/riotctrl_shell/feat/congure_test
riotctrl_shell: add ShellInteraction for `congure_test`
2021-03-09 12:27:10 +01:00
Gerson Fernando Budke
9cd9ba1bce dist/tools/avarice/debug.sh: Change gdb check order
There are some Linux distributions that gdb-multiarch doesn't work as
expected and debug section not start.  Since AVARICE is dedicated to
AVR architecture, let's check first by the default tool then multiarch
version.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2021-03-08 17:49:36 -03:00
Martine Lenders
da1778e85c
riotctrl_shell.tests: add tests for CongureTest ShellInteraction 2021-03-03 14:12:49 +01:00
Martine Lenders
0bdbf8c8cc
riotctrl_shell: add ShellInteraction for congure_test 2021-03-03 14:12:49 +01:00
Martine Lenders
ae14386736
riotctrl_shell.tests: add capability to access history of commands 2021-03-03 14:12:49 +01:00
Martine Lenders
02e56c2614
Merge pull request #16132 from miri64/dist/fix/riotctrl_shell-spawnmock-method-missing
riotctrl_shell.tests: add missing method to MockSpawn
2021-03-03 11:51:22 +01:00
Martine Lenders
70aac82e6b
riotctrl_shell.tests: add missing method to MockSpawn 2021-03-03 10:40:06 +01:00
Benjamin Valentin
6a705d95b3 dist/tools: always print how to disable programmer wrapper
If the help is only printed on failure, if the script does not detect failure
and programming still fails, the user has no idea how to get the full information.

Always print help on how to disable this feature.
2021-03-02 10:42:39 +01:00
Martine Lenders
fc6627606c
Merge pull request #15951 from miri64/congure/feat/initial
congure: initial import of a congestion control framework
2021-02-26 12:46:50 +01:00
Martine Lenders
28592c203c
uncrustify: whitelist congure 2021-02-26 10:08:12 +01:00
5a8094ea0a
dist/iotlab: return ret code within a single call 2021-02-25 12:59:40 +01:00
976eda9cbb
dist/tools: add programmer wrapper script 2021-02-25 12:59:39 +01:00
367a8e8574
Merge pull request #16083 from benpicco/cosy
make: add cosy as a build target
2021-02-24 13:59:11 +01:00
Benjamin Valentin
d95f21fd67 make: add cosy as a build target
`cosy` is a graphical memory usage analyzer.
It is a great tool, but pretty hidden.
Add it as a build target so it can be easiely summoned for any application and board.
2021-02-24 12:11:00 +01:00
Francisco
bf7b727c4a
Merge pull request #16049 from aabadie/pr/make/namespace_programmer_vars
make: namespace programmer specific variables
2021-02-24 08:17:47 +01:00
Francisco
8dec3f2833
Merge pull request #15795 from miri64/dist/fix/diff-output
static_tests: fix diff output
2021-02-24 08:17:37 +01:00
7e21f25779
make: namespace openocd PRE_FLASH_CHECK_SCRIPT variable 2021-02-23 21:22:55 +01:00
6f47505997
make: namespace pyocd FLASH_TARGET_TYPE variable 2021-02-23 21:22:52 +01:00
603186f913
make: namespace openocd DEBUG_ADAPTER variable 2021-02-23 21:22:52 +01:00
Martine Lenders
a0234cafe5
uncrustify: fix diff annotations 2021-02-23 18:25:50 +01:00
Martine Lenders
2d27db02f5
headerguards: fix diff annotations 2021-02-23 18:25:50 +01:00
Martine Lenders
2465a701ee
coccinelle: fix diff annotation 2021-02-23 18:25:50 +01:00
benpicco
bd7782c23f
Merge pull request #16034 from maribu/test-boards-supported
makefiles/tests: add unit test for info-boards-supported
2021-02-22 14:15:50 +01:00
dd88ead843
tools/compile_and_test_for_board: fix lint
Pylint raises an error because of inconsistent return statements in the make_with_outfile function. The return value of this function is never used, so a bare return or no return is ok
2021-02-21 21:34:03 +01:00
1ec4ea2d7c
tools/edbg: add wrapper bash script 2021-02-21 12:56:35 +01:00
Marian Buschsieweke
8183bbb069
makefiles/tests: add unit test for info-boards-supported 2021-02-17 15:40:05 +01:00
Marian Buschsieweke
ed2ae85985
tests/feature_resolution: add build system unit tests
This test "application" contains a set of unit tests for the feature resolution
of RIOT's build system.
2021-02-10 21:05:38 +01:00
807b154fc4
Merge pull request #15956 from fjmolinas/pr_riotboot_uncrustify
sys/riotboot: uncrustify
2021-02-09 22:14:50 +01:00
Martine Lenders
7bb706356a
Merge pull request #15962 from miri64/pyterm/fix/space-after-prompt
pyterm: read space after prompt into prompt
2021-02-09 20:34:34 +01:00
benpicco
b25c63757e
Merge pull request #15884 from benpicco/boards/zigduino
boards: add zigduino
2021-02-09 18:40:48 +01:00
Martine Lenders
271d1ae3a2
pyterm: read space after prompt into prompt
Currently, when the prompt is read in `pyterm` the space after it is
ignored for the prompt and the output command just adds its own prompt.
This leads to the next output always having a leading space, see e.g.
this output from `tests/shell` using `RIOT_TERMINAL=pyterm`:

```
make: Entering directory '/home/mlenders/Repositories/RIOT-OS/RIOT2/tests/shell'
/home/mlenders/Repositories/RIOT-OS/RIOT2/dist/tools/pyterm/pyterm -p "/dev/ttyUSB1" -b "500000"
Twisted not available, please install it if you want to use pyterm's JSON capabilities
2021-02-09 14:47:15,071 # Connect to serial port /dev/ttyUSB1
Welcome to pyterm!
Type '/exit' to exit.
bufsize
2021-02-09 14:47:19,712 # bufsize
2021-02-09 14:47:19,712 # 128
> bufsize
2021-02-09 14:47:21,535 #  bufsize
2021-02-09 14:47:21,536 # 128
>
```

While this isn't necessarily a problem in most cases, it becomes a
problem when the prompt is expected and the output of a command is
empty. In that case, the space is added to the empty output, making it
" ", so the prompt output command is never triggered and the prompt is
added to the next command in the log output. To demonstrate I added a
command `empty` to `tests/shell` that just does nothing and deactivated
the command echoing using `CFLAGS=-DCONFIG_SHELL_NO_ECHO=1`:

```
empty
> empty
empty
bufsize
2021-02-09 14:54:33,753 #  > > 128
>
```

This fixes that problem by also reading the assumed space (we already
assume the prompt, so I don't see no harm in that) and if it is not a
space to skip the reading of the next char in the next iteration of the
reader loop.
2021-02-09 17:17:25 +01:00
Martine Lenders
40da80085e
pyterm: move char reading and reconnect to their own private functions 2021-02-09 16:51:52 +01:00
Benjamin Valentin
5fdbd09187 boards: add zigduino
This adds support for the ATmega128RFA1 based Zigduino.
The board is available on the Strasbourg site of the IoT lab for testing.
2021-02-09 15:26:03 +01:00
Francisco Molina
6a79d94f1a
sys/riotboot: uncrustify 2021-02-09 13:38:31 +01:00
50cf93c719
Merge pull request #15718 from bergzand/pr/rv32i/fe310_rv32i_refactor
riscv_common: Refactor common fe310 code to riscv_common
2021-02-08 10:27:41 +01:00
19bb182a92
uncrustify: also include riscv_common in the whitelist 2021-02-05 09:32:19 +01:00
Martine Lenders
8730733b97
uncrustify: fix ztimer whitelist pattern 2021-02-02 22:21:15 +01:00
Martine Lenders
8a31d2ec9f
uncrustify: add cpu/fe310/include/atomic_utils_arch.h to blacklist 2021-02-02 22:21:15 +01:00
MrKevinWeiss
b26c4727a7 dist/tools/goodfet: Update goodfet flasher to python3
Apply `2to3` for scripted python 2 to 3 update.
Fix encoding and decoding of serial write and read.
Fix `chr` and `ord` to `to_bytes` and `bytearray`.
2021-01-28 11:03:21 +01:00
Hauke Petersen
ce0d589384
Merge pull request #15807 from haukepetersen/opt_jlink_versioncheckstuff
tools/jlink.sh: fix version check and allow to skip it
2021-01-25 14:03:06 +01:00
dd407f2717
Merge pull request #15803 from miri64/static-tests/enh/group-runs
static-tests: group tests
2021-01-20 16:05:28 +01:00
Martine Lenders
bfeef735d1
Merge pull request #15813 from jia200x/pr/vera/revert_tcl
ci/vera++/rules/L004: remove warning support
2021-01-20 13:10:10 +01:00
Jose Alamos
d5062cfd4e
ci/vera++/rules/L004: remove warning support
This reverts commit f3a934a169.
2021-01-20 11:04:12 +01:00
benpicco
d54cc2ee1f
Merge pull request #15808 from bergzand/pr/jlink/add_silent
tools/jlink.sh: Run JlinkExe with silent when debugging
2021-01-20 10:48:26 +01:00
75748e3c1f
tools/jlink.sh: Run JlinkExe with silent when debugging
The print statements from the Jlink binary offer little additional
benefit while debugging and only clutter the output. Furthermore they
interfere with the TUI layout of GDB when one of the context layouts is
used.
2021-01-19 21:49:28 +01:00
Hauke Petersen
82ae3eb8a6 tools/jlink.sh: allow to skip version check 2021-01-19 21:28:00 +01:00
Hauke Petersen
5f8d58fbea tools/jlink.sh: use SERIAL for version test 2021-01-19 21:27:07 +01:00
Martine Lenders
9ecc804151
static-tests: group tests 2021-01-19 17:31:01 +01:00
8f2b375f81
tools/vera++: increase max line length bounds 2021-01-19 16:10:51 +01:00
3c7efc497e
uncrustify: Add fe310 cpu files to the whitelist 2021-01-15 13:56:47 +01:00
Martine Lenders
42c1070387
Merge pull request #15767 from miri64/dist/fix/uncrustify-file
uncrustify: use unified diff to generate GH annotation
2021-01-14 13:00:20 +01:00
Martine Lenders
0a99a018c2
dist/tools/headerguards: fix comment for current code 2021-01-14 12:26:58 +01:00
Martine Lenders
629d3cd39d
uncrustify: use unified diff to generate GH annotation
`git diff` creates diffs where the file name starts with `a/` or `b/`
respectively. These are obviously not in path, so the Github annotations
point to nowhere when the path is used without accounting for this.

This fixes the GH annotation parsing to account for that.
2021-01-14 12:19:53 +01:00
Martine Lenders
09463b73cb
Merge pull request #15756 from miri64/dist/enh/shellcheck-enabled
static_tests: enable shellcheck and annote its output
2021-01-14 01:21:45 +01:00
Martine Lenders
89418e4277
dist/tools/ci/static_tests.sh: fix shellcheck warnings 2021-01-13 22:03:11 +01:00
Martine Lenders
f6290c1c02
shellcheck: annotate errors in Github Action 2021-01-13 22:03:11 +01:00
Martine Lenders
79301c623d
static-tests: add shellcheck (but don't fail) 2021-01-13 22:02:49 +01:00
daf5a7d6b4
Merge pull request #15585 from aabadie/pr/doc/emulator
doc/emulators: add emulators documentation in Doxygen
2021-01-13 17:43:02 +01:00
Martine Lenders
5457105fe0
Merge pull request #15751 from miri64/dist/enh/codespell-annotate
dist/tools/codespell: annotate errors in Github Action
2021-01-13 17:27:19 +01:00
Martine Lenders
7b3b01659f
dist/tools/codespell: annotate errors in Github Action 2021-01-13 17:16:59 +01:00
4b90d93fc0
dist/tools/renode: remove documentation
The documentation was moved to doc/doxygen/src/emulators.md
2021-01-13 17:14:40 +01:00
Francisco
4736a881fc
Merge pull request #15512 from aabadie/pr/tools/emulator_term
tools/emulator: allow use with *term targets + introduce EMULATE=1 instead of emulate target
2021-01-13 17:12:00 +01:00
Martine Lenders
ff0e41ff9f
Merge pull request #15750 from miri64/dist/enh/buildsystem-sanity-check-annotate
dist/tools/buildsystem_sanity_check: minor fixes and annotate errors in Github Action
2021-01-13 16:42:36 +01:00
Martine Lenders
688b89ba40
Merge pull request #15748 from miri64/dist/enh/uncrustify-annotate
dist/tools/uncrustify: annotate errors in Github Action
2021-01-13 15:30:14 +01:00
Kevin "Tristate Tom" Weiss
aa19614a6c
Merge pull request #15731 from miri64/dist/enh/pr_check-annotate
dist/tools/pr_check: cleanup and annotate errors in Github Action
2021-01-13 15:24:13 +01:00
Martine Lenders
d4628dc07f
dist/tools/pr_check: annotate errors in Github Action 2021-01-13 15:18:06 +01:00
Martine S. Lenders
bb310ec644
dist/tools/vera++: annotate errors in Github Action 2021-01-13 12:06:48 +01:00
Martine Lenders
375df5740a
pr_check: remove label check 2021-01-13 12:02:18 +01:00
Martine Lenders
741aaf9a38
pr_check: fix README 2021-01-13 12:02:18 +01:00
Martine Lenders
7a6dec464e
Merge pull request #15644 from miri64/dist/enh/externc-annotate
dist/tools/externc: annotate errors in Github Action
2021-01-12 17:24:57 +01:00
Martine Lenders
750e656b6f
Merge pull request #15645 from miri64/dist/enh/cppcheck-annotate
dist/tools/cppcheck: annotate errors in Github Action
2021-01-12 17:24:40 +01:00
Martine Lenders
d5ec8494ec
Merge pull request #15749 from miri64/dist/fix/headerguards-multi-patch
dist/tools/headerguards: fix annotation for multiple patches per file
2021-01-12 17:22:01 +01:00
Martine Lenders
ab71561759
dist/tools/buildsystem_sanity_check: annotate errors in Github Action 2021-01-12 16:31:08 +01:00
Martine Lenders
1d61f38bf2
dist/tools/buildsystem_sanity_check: output line number with git grep 2021-01-12 16:30:22 +01:00
Martine Lenders
afe9e990fa
dist/tools/buildsystem_sanity_check: fix typo in error message 2021-01-12 16:29:46 +01:00
Martine Lenders
d7391b3cc3
dist/tools/buildsystem_sanity_check: add colon to every error message 2021-01-12 16:28:50 +01:00
a469942ecf
Merge pull request #15747 from miri64/dist/enh/coccinelle-annotate
dist/tools/coccinelle: annotate errors in Github Action
2021-01-12 15:38:42 +01:00
Martine Lenders
b711515e76
dist/tools/headerguards: fix annotation for multiple patches per file 2021-01-12 15:04:02 +01:00
Martine Lenders
b5a0dd5ab7
dist/tools/coccinelle: annotate errors in Github Action 2021-01-12 14:51:51 +01:00
Martine Lenders
c251551a8c
dist/tools/uncrustify: annotate errors in Github Action 2021-01-12 14:25:09 +01:00
Martine Lenders
3ffe6f665f
dist/tools/headerguards: annotate errors in Github Action 2021-01-12 12:52:54 +01:00
Martine Lenders
2eec26a0f8
Merge pull request #15740 from aabadie/pr/tools/headerguards_check_fix
tools/headerguards: also catch messages from stderr
2021-01-12 10:31:46 +01:00
08108f85b4
make: replace emulate% targets with EMULATE variable 2021-01-11 21:31:48 +01:00
c8ce41c9de
dist/tools/emulator: allow use of term with emulators 2021-01-11 21:31:48 +01:00
Martine Lenders
628b45d975
dist/tools/externc: annotate errors in Github Action 2021-01-11 16:59:16 +01:00
Martine Lenders
1c310c6926
dist/tools/cppcheck: annotate errors in Github Action 2021-01-11 16:58:47 +01:00
Martine Lenders
f1600af701
Merge pull request #15642 from miri64/dist/enh/doccheck-annotate
dist/tools/doccheck: annotate errors in Github Action
2021-01-11 16:55:05 +01:00
Martine Lenders
619d013d6e
github_annotate.sh: fix usage and function of _github_annotate 2021-01-11 15:57:14 +01:00
Martine Lenders
429a2a8724
github_annotate.sh: fix escaped echo for bash scripts 2021-01-11 15:57:14 +01:00
Martine Lenders
9ee568e319
dist/tools/doccheck: annotate errors in Github Action 2021-01-11 15:57:14 +01:00
Martine Lenders
db81377af7
dist/tools/doccheck: only exit after when every check ran
Doxygen takes an eternity to finish anyways, so it does not hurt to not
early exit for the group checks.
2021-01-11 15:27:21 +01:00
Martine Lenders
13f1a3cf0d
dist/tools/commit-msg: annotate errors in Github Action 2021-01-11 14:04:53 +01:00
06f3a18f52
tools/headerguards: also catch messages from stderr 2021-01-09 19:13:02 +01:00
Martine Lenders
fe74043e9a
dist/tools: move check for PKG_SOURCE_LOCAL to buildsystem_sanity_check 2021-01-08 15:04:28 +01:00
Martine Lenders
6208515a86
dist/whitespacecheck: use result of piped command for return value 2021-01-08 14:09:43 +01:00
Martine Lenders
44b48e6c2d
gh-actions: move PR checks from static tests to own workflow 2021-01-08 14:09:42 +01:00
Martine Lenders
e69617a493
dist/tools/pr_check: rename check script to common name 2021-01-08 14:06:17 +01:00
Martine Lenders
39db02ade0
Merge pull request #15669 from miri64/dist/enh/github-annotate-no-file
dist/tools/ci/github_annotate.sh: allow annotations without files
2021-01-08 11:06:52 +01:00
Martine Lenders
20350edebb
dist/tools/ci/github_annotate.sh: allow annotations without files 2021-01-08 10:38:59 +01:00
2902fa8611
tools/codespell: remove redundant entry in ignored words
Words added in this list are case insensitive so chang works for both
chang and Chang.
2021-01-08 10:15:33 +01:00
11d1abbac6
tools/nrf52_resetpin_cfg: fix typo in code
Progamming => Programming
2021-01-08 10:15:32 +01:00
d99f34fc69
codespell: add 'ether' to ignored words
trigger a false positive with 'either'
2021-01-08 10:15:32 +01:00
5b279c8a3f
codespell: add filp to ignored words
filp is used as a variable name and trigger a false positive with flip
2021-01-07 22:12:15 +01:00
438464b5fa
dist/tools/bmp: fix flake8 issue E741
E741: ambiguous variable name
2021-01-07 19:11:20 +01:00
84e2881d18
dist/testrunner: fix flake8 issue E741
E741: ambiguous variable name
2021-01-07 19:11:20 +01:00
Martine Lenders
7f83c8c488
Merge pull request #15709 from jia200x/pr/vera_cpp_checks
dist/tools/vera++: improve C/C++ support and optimize CI call
2021-01-06 13:20:39 +01:00
Jose Alamos
541d21db0f
ci/vera++: run only once
Signed-off-by: Jose Alamos <jose@alamos.cc>
2021-01-06 13:02:18 +01:00
Jose Alamos
f3a934a169
ci/vera++/rules/L004: add warning support
Signed-off-by: Jose Alamos <jose@alamos.cc>
2021-01-06 13:02:09 +01:00
Jose Alamos
da17a1b5a3
ci/vera++/rules/T003: do not include C++ keywords in C files
Signed-off-by: Jose Alamos <jose@alamos.cc>
2021-01-06 13:01:42 +01:00
Martine Lenders
1892da1b1a
dist/tools/vera++: exclude tests/pkg_utensor/models/deep_mlp_weight.hpp 2021-01-06 12:09:46 +01:00
Martine Lenders
40d72df91f
static_tests.sh: only default to master when not in a GitHub action 2021-01-06 12:09:46 +01:00
Martine Lenders
4bcf908176
Merge pull request #15667 from miri64/make/cleanup/static-tests
make: run static_tests.sh directly with `static-tests` target
2021-01-05 16:41:45 +01:00
abfb289aa3
tools/suit/manifest-generator: fix dependencies alignment 2020-12-30 15:18:42 +01:00
7f6f60b1a2
tools/suit/manifest-generator: remove unused pyhsslms dependency 2020-12-30 15:17:45 +01:00
5e160e3684
tools/suit/manifest-generator: set cbor2 dependency 2020-12-30 15:17:16 +01:00
Martine Lenders
01c061a922
dist/tools/vagrant: remove trailing whitespaces from README 2020-12-19 09:58:42 +01:00
Martine Lenders
003dd8f356
dist/tools/packer: remove trailing whitespaces from README 2020-12-19 09:58:31 +01:00
558f3920a9
dist/tools: don't overwrite EXCLUDE when not necessary 2020-12-18 12:58:25 +01:00
MrKevinWeiss
30fe436ea0 dist/tools/flake8: Allow gh annotation 2020-12-17 17:04:49 +01:00
Martine Lenders
9066ab28e1
make: run static_tests.sh directly with static-tests target 2020-12-17 15:16:36 +01:00
Martine Lenders
9817811b8f
dist/tools/ci/static_tests.sh: add dependency check for tools 2020-12-17 15:10:17 +01:00
Martine Lenders
f6cc30664e
dist/tools/ci: Add README.md 2020-12-16 21:23:40 +01:00
Martine Lenders
3a3984e05d
tools/whitespacecheck: annotate errors in Github Action 2020-12-16 21:23:39 +01:00
Martine Lenders
019817d58b
dist/tools/ci: add harness to annotate static tests in Github Actions 2020-12-16 21:23:38 +01:00
Martine Lenders
581cc641ef
Merge pull request #15625 from miri64/riot_ctrl/doc/fix-class
riotctrl_shell.gnrc: fix documentation for GNRCICMPv6EchoParser.parse()
2020-12-14 08:46:26 +01:00
Martine Lenders
9b431f70d5
riotctrl_shell.gnrc: fix documentation for GNRCICMPv6EchoParser.parse()
This seems to be a copy-paste error. The `GNRCICMPv6EchoParser` parse
function parses of course the output of the `ping6` command, not the
`nib neigh show` command.
2020-12-14 08:23:24 +01:00
Leandro Lanzieri
ddf78bae22
dist/tools/kconfig/genconfig: fix printing of range condition 2020-12-09 11:11:17 +01:00
8b8a3ffbd9
Merge pull request #15491 from aabadie/pr/tools/qemu_debug
tools/emulator: add debug feature with qemu emulator
2020-12-08 11:23:33 +01:00
b979fb3262
ci/changed_files: exclude lpc2k_pgm tool 2020-12-03 19:17:58 +01:00
e04085622b
Revert "dist/tools/externc: exclude code in dist/tools"
This reverts commit 4567c108a1.
2020-12-03 19:17:33 +01:00
Benjamin Valentin
b7b208829f tools/uf2: add uf2conv.py as a flash tool 2020-12-02 10:20:17 +01:00
Francisco
9f3eebd9b9
Merge pull request #15543 from aabadie/pr/tools/robotis-loader_common
boards/opencm904: move robotis-loader in common place
2020-12-02 09:18:51 +01:00
4ff5b749b0
tools/renode: qemu: move debug script in common place 2020-12-02 08:43:44 +01:00
Francisco
0b8ec0ba11
Merge pull request #15490 from aabadie/pr/tools/renode_refactor
tools/renode: refactor integration + add debugger support
2020-12-01 23:16:11 +01:00
966221f5a4
boards/opencm904: move robotis-loader in common place 2020-12-01 18:31:41 +01:00
d2c09e798a
dist/tools/lpc2k_pgm: fix headerguards 2020-12-01 16:21:50 +01:00
4567c108a1
dist/tools/externc: exclude code in dist/tools 2020-12-01 16:17:17 +01:00
aea9d4b0a7
make: move lpc2k_pgm in tools/ 2020-12-01 13:36:36 +01:00
d2f57c3aad
dist/tools/renode: remove unused run-renode script 2020-11-27 13:39:22 +01:00
dcaa9eb59c
makefiles/tools/renode: improve debugger management
When using the debug target, the GDB server is spawned automatically in the background. This logic is moved in a external script
2020-11-27 13:39:22 +01:00
23a2afd8b1
Merge pull request #15514 from aabadie/pr/tools/ci/print_versions_make
ci/print_versions: don't print directory for make shell
2020-11-26 19:49:03 +01:00
da16710229
ci: ensure EMULATOR* variables are not exported 2020-11-20 12:31:15 +01:00
ded50b2494
Merge pull request #15446 from fjmolinas/pr_tests_riotboot_cc2538_bsl
tests/riotboot: make automatic script work with cc2538-bsl
2020-11-18 17:09:01 +01:00
Francisco Molina
49d054cc2d
dist/tools/cc2538-bsl: bump version 2020-11-18 14:47:19 +01:00
Roudy Dagher
1dc6c848f6 dist/tools/jlink: debugserver test_config prior test_version 2020-11-17 16:42:54 +01:00
Francisco Molina
6a606e3f21
makefiles/tools/cc2538-bsl: use --write-erase to avoid mass erase 2020-11-16 09:13:57 +01:00
Francisco Molina
8f1e2cbe00
dist/tools/cc2538-bsl: add Makefile to build dependencies 2020-11-16 09:13:57 +01:00
Martine Lenders
a07d3e0fc9
Merge pull request #14755 from benpicco/examples/gnrc_border_router-native
examples/gnrc_border_route: simplify ZEP setup on native
2020-11-13 18:41:03 +01:00
6c190726f0
Merge pull request #15352 from bergzand/pr/usb-cdc-ecm/resolve_shellcheck
usb-cdc-ecm: resolve shellcheck issues
2020-11-13 15:52:27 +01:00
b0ad1564aa
Merge pull request #15441 from fjmolinas/pr_jlnink_test_version_gui
dist/tools/jlink: add -nogui to version test, fix for OSX
2020-11-13 15:39:36 +01:00
Francisco Molina
1dc84b0d9e
dist/tools/jlink: use 'grep -E' instead of 'grep -P'
-P is not suppoted in OSX
2020-11-13 14:27:43 +01:00
Francisco Molina
914912b276
dist/tools/jlink: add -nogui to version test
If multiple debuggers are present when testing for JLinkExe version
a GUI will open to select the debugger to attach, so add -nogui
when testing for version as well.
2020-11-13 14:13:38 +01:00
57116e737b
Merge pull request #14691 from gdoffe/mp1_dev
Port of RIOT-OS to stm32mp1
2020-11-13 12:34:19 +01:00
a42a3fadd1
Merge pull request #15350 from bergzand/pr/whitespacecheck/resolve_shellcheck
whitespacecheck: Resolve most shellcheck issues
2020-11-13 11:29:30 +01:00
Gilles DOFFE
cca2d70808 tools/openocd: add stlink-dap adapter
stlink-dap adapter is based on stlink-dap.cfg and is used by
STM32MP1 family.

Signed-off-by: Gilles DOFFE <gilles.doffe@savoirfairelinux.com>
2020-11-13 10:43:08 +01:00
Gilles DOFFE
8a35e114c0 tools/openocd: add GDB_PORT_CORE_OFFSET variable
In case of muticore CPU, openocd opens one debug port by core for gdb.
Thus add a GDB_PORT_CORE_OFFSET port offset to select the right port
for debugging.

Signed-off-by: Gilles DOFFE <gilles.doffe@savoirfairelinux.com>
2020-11-13 10:43:08 +01:00
Gilles DOFFE
5424ef1dfe tools/openocd: add flashr action
As for debugr, boards like stm32mp157c-dk2 does not have flash memory.
The firmware could be flashed using the operating system (mainly Linux) or
the bootloader (mainly u-boot) of the dual architecture (cortex-A7 on
stm32mp157c-dk2). However in engineering mode (only cortex-M4), the
firmware has to be flashed using jtag once the board is powered up.
The flashr action do this using openocd only.

Signed-off-by: Gilles DOFFE <gilles.doffe@savoirfairelinux.com>
2020-11-13 10:43:08 +01:00
Gilles DOFFE
4f3ea5c74c tools/openocd: select target core
For multi-arch SoC like STM32MP1, the right target core has
to be selected to avoid debugging the wrong default cpu.
This is done using openocd command 'targets ${OPENOCD_CORE}'.
OPENOCD_CORE has to be set in board Makefile.include file.
In case it is not set, the command just display available targets, thus it
has no effect on already existing boards using openocd.

Signed-off-by: Gilles DOFFE <gilles.doffe@savoirfairelinux.com>
2020-11-13 10:43:08 +01:00
Gilles DOFFE
e7b344983d tools/openocd: add debugr action
In case of STM32MP157c-dk2 board, there is no flash available. Thus,
the elf binary has to be flashed directly to SRAM before debugging.
To do so, the DBG_FLAGS variable has to be overrided to load the binary
using 'load' gdb command.
The START_ADDR variable is the entrypoint extracted from the elf binary
using objdump tool.
The do_debug function can now be used as usual.

Signed-off-by: Gilles DOFFE <gilles.doffe@savoirfairelinux.com>
2020-11-13 10:43:08 +01:00
2fff75017b
whitespacecheck: Resolve most of the shellcheck sh issues 2020-11-13 10:31:38 +01:00
2bc4944934
usb-cdc-ecm: resolve shellcheck issues 2020-11-12 14:43:01 +01:00
Benjamin Valentin
54eedd94ba tools/zep_dispatch: add simple ZEP dispatcher 2020-11-10 15:41:15 +01:00
Francisco Molina
017618d1a7
dist/tools/codespell: add Chang, chang 2020-11-10 07:46:37 +01:00
8183809ebf
ci/print_versions: don't print directory for make shell 2020-11-09 20:32:02 +01:00
Leandro Lanzieri
71a3aa081e
dist/tools/genconfig: check the APPLICATION symbols only when testing
This changes the Kconfig check to only perform it when testing Kconfig
dependency modlling for now (TEST_KCONFIG=1).
2020-11-06 15:58:02 +01:00
Leandro Lanzieri
1408f3f96e
dist/tools/kconfiglib: add tests for genconfig.py
Also add the test to 'python-tests' GitHub actions.
2020-11-05 09:04:10 +01:00
Leandro Lanzieri
e815863aa9
tools/genconfig: add invalid configurations checks 2020-11-05 09:04:07 +01:00
Francisco
1dff630192
Merge pull request #15376 from aabadie/pr/tools/iotlab_single_dwm1001
dist/testbed-support: add iotlab mapping for dwm1001
2020-11-04 09:10:09 +01:00
Marian Buschsieweke
deb52f858c
Merge pull request #15375 from maribu/bmp-fix
dist/tools/bmp: Fix flashing with pygdbmi 0.10.0
2020-11-03 20:11:53 +01:00
506498a2df
dist/testbed-support: add iotlab mapping for dwm1001 2020-11-03 17:45:53 +01:00
Marian Buschsieweke
71b2860322
dist/tools/bmp: Fix flashing with pygdbmi 0.10.0
The flashing script for the black magic probe stopped working with pygdbmi in
version 0.10.0 due to an API change. This adapts the code to first try
initialization with the old pygdbmi API (as before), but tries again with the
new API if that fails.
2020-11-03 16:33:46 +01:00
Francisco
3e3da1217d
Merge pull request #15249 from aabadie/pr/tools/typo
tools/codespell: fix new typos and make it fail when typos are found
2020-11-03 15:01:20 +01:00
Bas Stottelaar
0c8df9bb3c dist/coccinelle: adapt rules for ENABLE_DEBUG 2020-11-02 21:49:40 +01:00
391a26aa2e
Merge pull request #15351 from bergzand/pr/usb-serial/list-ttys/resolve_shellcheck
usb-serial/list-ttys: Resolve shellcheck issues
2020-11-02 10:21:48 +01:00
cf04e5c824
Merge pull request #15347 from bergzand/pr/tools/sh2bash
dist/tools: Use bash instead of sh where needed
2020-10-30 16:47:38 +01:00
9222b72f8b
Merge pull request #15320 from benpicco/tools/insufficient_memory-nodocker
tools/insufficient_memory: restore build with no docker
2020-10-30 16:43:47 +01:00
cb660898b3
usb-serial/list-ttys: Resolve shellcheck issues 2020-10-30 16:13:05 +01:00
c5b2ded055
dist/tools: Use /usr/bin/env bash for bash scripts 2020-10-30 13:13:40 +01:00
96cad82910
dist/tools: Use bash instead of sh where needed
A number of scripts use features from bash such as `local` which are not
in the POSIX spec. This breaks on systems where sh is not symlinked to
bash.

This patch changes the interpreter indicated by the hashbang to bash for
those scripts
2020-10-30 12:12:10 +01:00
Benjamin Valentin
555e8a8efb tools/insufficient_memory: restore build with no docker
It's useful being able to run this script without having Docker installed.
Introduce the `--no-docker` parameter to run the script without docker.
2020-10-29 18:19:04 +01:00
e4f724a443
tools/build_and_test: use all instead of all-debug on native 2020-10-28 22:08:18 +01:00
48ffdcb080
tools/codespell: make it fail when typos are found 2020-10-27 10:33:48 +01:00
cb2974984b
codespell: add 'circular' to the list of ignored words 2020-10-27 10:33:47 +01:00
Bas Stottelaar
62530f42c8 dist/jlink: check for minimum version 2020-10-21 18:23:02 +02:00
Bas Stottelaar
237a24d51b dist/jlink: do not show the GUI.
Since J-Link V6.74, a GUI is shown when flashing from the command line.
This steals the focus of the terminal. Adding `-nogui 1` solves the
issue, but raises the minimum supported version to V6.74 (released
around June 2020).

Note that JLinkGDBServer has a slightly different `-nogui` option.
2020-10-21 14:34:49 +02:00
Bas Stottelaar
8af4f4a60c dist/jlink: textual improvements
- renamed JLink -> J-Link [1]
- fixed incomplete sentence
- fixed typo's

[1] https://wiki.segger.com/J-Link_Commander
2020-10-21 14:08:52 +02:00
Bas Stottelaar
107fd41b1a dist/jlink: unify command line options
According to the documentation [1], the options are case-insensitive.
Unify all options to use a single style (lower case was the easiest).

[1] https://wiki.segger.com/J-Link_Commander
2020-10-21 14:02:28 +02:00
6c63e1b6c4
tools/insufficient_memory: improve error handling and output 2020-10-13 15:37:50 +02:00
b2aaebc699
tools/suit/manifest-generator: small fixes
- fix typo 'formated' -> 'formatted'
- remove unused variable
2020-10-02 07:59:51 +02:00
39c4e36f1a
tools/codespell: add more ignored words 2020-10-02 07:42:16 +02:00
3cf082d59b
Merge pull request #15110 from bergzand/pr/suit/storage_backend
SUIT: Introduction of a payload storage API for SUIT manifest payloads
2020-09-30 22:47:33 +02:00
benpicco
0bc80250cf
Merge pull request #15101 from benpicco/sys/net/uhcp-log
sys/net/uhcp: use LOG_xxx functions
2020-09-30 11:08:53 +02:00
8159819087
tools/suit: Add optional component ID argument
This extends the component argument of the gen_manifest.py script with
an optional component name. As component names in the SUIT manifest
consist of an array of bytestrings, the commponent name in the argument
is also split. Each part of the name ends up as a separate part of the
component name in the manifest. Component names are split by colons to
match the separator used in the rest of the argument.
2020-09-29 15:18:56 +02:00
Benjamin Valentin
f163f1580b sys/net/uhcp: use LOG_ functions
Using `gnrc_border_router` with `uhcp` is quite noisy.
uhcpc will regularly refresh the prefix and print a bunch of status messages.

Allow the user to tone it down by setting a higher `LOG_LEVEL`.
For this, convert calls to `printf()` and `puts()` to `LOG_xxx()`.

This requires a dummy header for `uhcpd`.
2020-09-29 09:55:28 +02:00
Martine Lenders
2ed4b32e54
tapsetup: add support for single, unbridged TUN interface 2020-09-28 12:31:22 +02:00
Martine Lenders
73b8342528
tapsetup: make deleting interfaces a function 2020-09-28 12:31:22 +02:00
Martine Lenders
ff8b7a92d4
tapsetup: fix output for no sub-interfaces with list command
To be correct YAML, an empty list must be signified as a `[]`
2020-09-25 12:21:58 +02:00
Francisco
ad9e35c445
Merge pull request #14436 from bergzand/pr/suit/ietf_v7
SUIT: Upgrade to draft-ietf-suit-manifest-09
2020-09-24 21:57:24 +02:00
401f8eb9bd
dist/tools/suit: Update suit tooling to IETF-v7 compliance 2020-09-24 21:15:13 +02:00
benpicco
baedd20e68
Merge pull request #14972 from maribu/riscv-none-elf
build system: use riscv-none-elf as triplet
2020-09-24 00:50:46 +02:00
Cenk Gündoğan
b09fd7c78d
Merge pull request #14947 from leandrolanzieri/pr/kconfig/add_empty_recipies_dependencies
tools/genconfig: add empty recipes in dependency file
2020-09-16 11:00:45 +02:00
Marian Buschsieweke
d9e495fe83
build system: use riscv-none-elf as triplet
Use riscv-none-elf instead of legacy riscv-none-embed as target triplet for
RISC-V development. However, if ricsv-none-elf is not present, try
riscv64-unknown-elf and riscv-none-embed instead. If the legacy riscv-none-embed
is used, a warning is printed.
2020-09-15 11:18:33 +02:00
Cenk Gündoğan
0d0bc91553
Merge pull request #14754 from leandrolanzieri/pr/no_archives
build system: link object files
2020-09-10 09:36:29 +02:00
Martine S. Lenders
5fea5fca65
tapsetup: FreeBSD/OSX: remove member TAPs of bridge explicitly 2020-09-08 13:50:45 +02:00
Martine S. Lenders
29684af116
tapsetup: add capability to add routes to bridge 2020-09-08 13:50:45 +02:00
Martine S. Lenders
dbeb783b13
tapsetup: add capability to add addresses to bridge 2020-09-08 13:50:44 +02:00
Martine S. Lenders
0abe581e3e
tapsetup: add capability to enable forwarding for bridge 2020-09-08 13:50:27 +02:00
Martine S. Lenders
a9722dda71
tapsetup: add capability to list bridges 2020-09-08 13:50:09 +02:00
Leandro Lanzieri
847c2f8b6b
dist: remove unused ar-wrapper 2020-09-04 15:01:16 +02:00
Leandro Lanzieri
8c79c18ce0
tools/genconfig: generate empty recipes in dependency file 2020-09-04 10:39:37 +02:00
Martine S. Lenders
de36c400d4
tapsetup: make output easier to parse
Distinguish bridge creation from tap creation.
2020-09-02 11:05:13 +02:00
c83b78a567
Merge pull request #14762 from maribu/move_byteorder
core/byteorder: Moved to sys
2020-09-01 15:02:11 +02:00
Francisco
c11a06224c
Merge pull request #14856 from jhaand/master
Updated stlink makefile to use OpenOCD's single configuration file.
2020-09-01 09:03:53 +02:00
Jelle Haandrikman
f18d3f5663
dist/tools/openocd/stlink: handle new and old Openocd version 2020-08-31 17:34:25 +02:00
179cf1b8cd
Merge pull request #14882 from aabadie/pr/tools/tapsetup_typo
tools/tapsetup: fix typo in function name
2020-08-28 13:58:02 +02:00
15222cf5e9
tools/tapsetup: fix typo in function name 2020-08-28 13:33:27 +02:00
János Brodbeck
e9370a2b81
dist/tools/tapsetup: fix minor typo 2020-08-28 13:24:55 +02:00
Martine S. Lenders
4cc6963b12
compile_and_test_for_board.py: add optional JUnit XML support 2020-08-27 14:25:57 +02:00
Leandro Lanzieri
bbfca7e1ef
Merge pull request #14458 from miri64/vagrant/enh/freebsd
vagrant: add Vagrantfile to test native in FreeBSD
2020-08-25 16:32:05 +02:00
Martine S. Lenders
1d435de445
buildsystem_sanity_check: whitelist Vagrantfiles
Vagrantfiles are not part of our build-system so they should be ignored
by its sanity check.
2020-08-25 16:01:59 +02:00
Martine S. Lenders
f9e3c0f513
vagrant: add Vagrantfile to test native in FreeBSD 2020-08-25 16:00:59 +02:00
Francisco
d665546d6f
Merge pull request #14464 from benpicco/python3
Convert remaining Python2 users to Python3
2020-08-18 09:11:23 +02:00
Benjamin Valentin
a5043540f4 dist/tools/compile_test: use Python3 2020-08-16 20:00:54 +02:00
Benjamin Valentin
b8e2d14164 gen_esp32part.py: use Python3 2020-08-16 19:48:04 +02:00
Marian Buschsieweke
164d2ac8f2
core/byteoder: Moved to sys
The byteorder utilities are never used in `core`, but extensively in `sys`.
They seem to be better located in `sys`.
2020-08-14 16:28:59 +02:00
377d389ce9
Merge pull request #14609 from fjmolinas/pr_openwsn_bump
pkg/openwsn: bump version
2020-08-11 16:25:36 +02:00
Francisco Molina
aa1e7797b0
pkg/openwsn: bump version
With the new version some OpenWSN modules are optional:
- openwsn_cjoin (and therefore opewnsn_coap)
- openwsn_6lo_fragmentation
- openwsn_icmpv6echo
- openwsn_crypto
- openwsn_udp (optional but kept as default)

New optional modules have been added:
- openwsn_iee802154e_security (link layer security)
- openwsn_adaptive_msf (MSF dynamic slot allocation)

Openvisualizer needs to be updated to be compatible with the new
version.
2020-08-11 15:24:33 +02:00
Cenk Gündoğan
964413c34a
ci: changed_files: ignore fixdep.c for cppcheck 2020-08-11 09:47:32 +02:00
Cenk Gündoğan
4fac8800bd
tools: whitespacecheck: ignore fixdep.c 2020-08-11 09:47:32 +02:00
Cenk Gündoğan
f49eb4305c
dist: tools: import fixdep from linux 2020-08-10 12:17:59 +02:00
Cenk Gündoğan
b65c6abad5
Merge pull request #14727 from leandrolanzieri/pr/kconfig/refactor_integration
makefiles/kconfig: refactor integration and add genconfig script
2020-08-10 12:17:29 +02:00
Leandro Lanzieri
9c10580ba4
dist/tools/kconfiglib: introduce own genconfig.py tool
This tool unifies multiple functionalities needed by the Kconfig
integration into one tool.
2020-08-07 18:17:37 +02:00
Martine S. Lenders
382cfee1de
riotctrl_shell: simplify error case for cord registration info parser 2020-08-06 17:02:32 +02:00
M Aiman Ismail
45546a711f riotctrl_shell: provide cord_ep interactions and parser 2020-08-06 13:51:13 +02:00
26c915dcb3 tools: print_toolchain_versions.sh: update to msp430-elf 2020-08-05 14:29:07 +02:00
Cenk Gündoğan
f4e631ffdb tools: whitespacecheck: use ignore file to easily add expressions 2020-08-04 13:19:26 +02:00
Benjamin Valentin
6ac24d1a95 tools/usb-cdc-ecm/start_network.sh: remove parameters to read
The `read` implementation on my system doesn't know a `-n` parameter:

    tools/usb-cdc-ecm/start_network.sh: 100: read: Illegal option -n

As the command is only used to block if no terminal is started, we can
as well remove them.
2020-08-02 15:04:02 +02:00
b7f2ad8d76
ci/build_system_check: improve check for features provided in Makefile.features
- Take into account potential spaces at the beginning of a line
- Check all Makefile.<something> files, not only the ones in boards and cpus
2020-07-20 13:06:05 +02:00
benpicco
4fb1e17508
Merge pull request #14454 from trickeydan/usb-cdc-ecm-example
Add USB Ethernet support to GNRC Border Router example
2020-07-18 15:58:44 +02:00
Dan Trickey
2c3987def0
examples/gnrc_border_router: add CDC-ECM uplink
Optionally executes pyterm from CDC-ECM start_network.sh

The shell script exits and cleans up instantly unless there is a
blocking program running at the end. Users can supply a serial port to
display in pyterm, or alternatively just wait if it is a "headless"
deployment.
2020-07-17 21:34:56 +01:00
Martine Lenders
2ab65da409
Merge pull request #14519 from RIOT-OS/riotctrl_shell/fix/superflous-quotation-marks
riotctrl_shell.gnrc: remove superfluous quotation marks
2020-07-15 17:35:50 +02:00
José Alamos
90911f4bf9
Merge pull request #14510 from miri64/riotctrl.netif/bug/multi-iface-w-stats
riotctrl_shell.netif: fix for multiple interfaces with netstats
2020-07-15 15:23:46 +02:00
Martine Lenders
198eda14e6
riotctrl_shell.gnrc: remove superfluous quotation marks 2020-07-15 13:46:34 +02:00
Francisco
83396ac83c
Merge pull request #14486 from aabadie/pr/tools/pkg_clean_build_standalone
tools: build more tools with tools-buildtest
2020-07-15 11:22:26 +02:00
Martine Lenders
d968f16cc1 riotctrl_shell.netif: fix for multiple interfaces with netstats 2020-07-14 14:32:29 +02:00
Martine S. Lenders
92957e571f riotctrl_shell.tests: provide case for multiple interfaces with stats 2020-07-14 14:32:29 +02:00
5efbb97b5c
dist/testbed-support: remove iotlab wsn430 mapping
The boards were removed (EOL) and thus are no longer usable using IOTLAB_NODE
2020-07-10 16:49:08 +02:00
ce36767972
tools/setsid: cleanup and allow Makefile to be used standalone 2020-07-10 13:30:46 +02:00
5dd5c7913f
tools/pic32prog: cleanup and allow Makefile to be used standalone 2020-07-10 13:30:46 +02:00
7d5f08babf
tools/edbg: allow Makefile to be called stand-alone
Also:
- refactor the Makefile so all is not called if edbg is already there
- add a clean target to only remove the edbg binary
2020-07-10 13:30:38 +02:00
7e6b506ee6
tools/bossa: allow Makefile to be called stand-alone 2020-07-10 13:30:37 +02:00
b05b2fddb9
Merge pull request #14484 from aabadie/pr/tools/bossa_factorize
tools/bossa: factorize Makefiles
2020-07-10 12:22:18 +02:00
09dbfd88be
dist/tools/bossa*: use common build Makefile 2020-07-10 11:56:11 +02:00
Martine S. Lenders
94c8b19d68
riotctrl_shell.gnrc: provide ipv6_nib interactions and parsers 2020-07-10 10:09:06 +02:00
4dc82bce70
Merge pull request #14462 from miri64/riotctrl_shell.gnrc/enh/compile-to-init
riotctrl_shell.gnrc: move compile object init to parser constructors
2020-07-09 21:32:16 +02:00
dcfe736b7c
Merge pull request #14479 from miri64/riotctrl_shell.netif/fix/non-str-set
riotctrl_shell.netif: allow for non str values with ifconfig_set()
2020-07-09 21:31:05 +02:00
Martine S. Lenders
b1a1bf1078
riotctrl_shell.netif: allow for non str values with ifconfig_set() 2020-07-09 15:43:02 +02:00
Martine S. Lenders
6c2d8f7a14
riotctrl_shell.tests: add regression test for non-str ifconfig_set() 2020-07-09 15:42:47 +02:00
79f26bd09e
Merge pull request #14460 from miri64/riotctrl_shell.netif/fix/check_term-decorator
riotctrl_shell.netif: add missing check_term decorator
2020-07-09 14:29:06 +02:00
Martine S. Lenders
c3e6d89bcb
riotctrl_shell.gnrc: move compile object init to parser constructors 2020-07-09 13:20:14 +02:00
0a86086967
Merge pull request #14468 from miri64/riotctrl_shell.gnrc/enh/doctests
riotctrl_shell.gnrc: add doctests as parsing examples and bugfixes
2020-07-09 13:12:58 +02:00
Martine S. Lenders
667ba11732
riotctrl_shell.gnrc: fix some more ping6 parsing errors
Found during integration of release tests:

- if the payload is too small, RTTs are not shown
- duplicates are now shown properly, if duplicates exist, the stats are
  now parsed instead of ignored
2020-07-09 13:03:08 +02:00
Martine Lenders
37a5e8700f
Merge pull request #14459 from miri64/tools/enh/make-env
tools: add capability to provide make command via environment
2020-07-09 12:20:09 +02:00
Martine S. Lenders
1cb0e09d88
tests: add capability to provide make command via environment
For those tests that don't use the tooling fixed in the previous commit
2020-07-09 10:59:01 +02:00
Martine S. Lenders
9b5b20e3b9
riotctrl_shell.gnrc: fix bug discovered by doctests 2020-07-08 17:48:25 +02:00
Martine S. Lenders
d5e3f8756e
riotctrl_shell.gnrc: add doctests as parsing examples 2020-07-08 17:47:56 +02:00
Martine S. Lenders
637c673e6a
riotctrl_shell.tests: rewrite Mock to detect missing check_term
`check_term` calls `run_term` of the `ctrl` if necessary.
2020-07-08 15:31:48 +02:00
Benjamin Valentin
12cf6f0137 buildsystem_sanity_check: use python3 2020-07-08 14:57:54 +02:00
Benjamin Valentin
830bd34662 pyterm: use Python3 in setup.py 2020-07-08 14:57:14 +02:00
Leandro Lanzieri
f6b6072398
dist/tools/kconfiglib: Use python3 for RIOT adaption of menuconfig 2020-07-08 14:40:06 +02:00
Martine S. Lenders
b110f9e38c
riotctrl_shell.netif: add missing check_term decorator 2020-07-08 12:04:31 +02:00
Martine S. Lenders
da3fdd33d1
tools: add capability to provide make command via environment
Not all operating systems name the GNU Make `make`. FreeBSD e.g. uses a
different dialect of Make, that seems to be incompatible with GNU make.
(I wasn't able to get `make` run, but `gmake` works).

This allows our test scripts to be configured via the environment
variable `MAKE` to point to a different make command.
2020-07-08 09:36:36 +02:00
Martine S. Lenders
da7d5f7a49
tapsetup: fix for FreeBSD 2020-07-07 20:20:37 +02:00
Martine S. Lenders
f8d23b4745
riotctrl_shell: activate doctests for pytest 2020-07-07 12:24:42 +02:00
Martine S. Lenders
1182f24b25
riotctrl_shell: provide netif interactions and parsers 2020-07-07 12:24:41 +02:00
ffbc16aafd
riotctrl_shell: fix riotctrl url in requirements.txt 2020-07-06 15:29:50 +02:00
dfa9979615
tools/backport_pr: add doctest for _get_latest_release function 2020-07-04 18:25:36 +02:00
4b6ab1e583
tools/backport_pr: fix warning/issues reported by pylint and flake8 2020-07-04 18:25:36 +02:00
09c7b54704
tools/backport_pr: relax pylint and flake8 checks
- ignore fixme warning with pylint
- increase tolerated code complexity for flake8
2020-07-04 18:25:36 +02:00
Martine S. Lenders
bf5d66757a
riotctrl_shell: remove unneeded variables and imports 2020-07-04 12:18:29 +02:00
0ddb539d97
Merge pull request #11406 from miri64/tools/enh/test-mixins
riotctrl_shell: initial import of shell interaction spawn
2020-07-03 22:06:05 +02:00
Martine S. Lenders
d11b5b2b54
riotctrl_shell: provide pktbuf interaction 2020-07-03 21:53:00 +02:00
Martine Lenders
98219e6746
riotctrl_shell: provide ping6 interaction 2020-07-03 21:53:00 +02:00
Martine Lenders
fa9deae489
riotctrl_shell: initial import of shell interaction riotctrl wrapper 2020-07-03 21:53:00 +02:00
Cenk Gündoğan
7aa499d5f1 make: use $(MAKE) instead of direct make call 2020-07-03 12:03:06 +02:00
benpicco
adc0a3cb8c
Merge pull request #13668 from benpicco/tools/radvd
tools/radvd: Add script to run radvd on a tun interface
2020-07-01 16:06:24 +02:00
Leandro Lanzieri
b2c0a8e67d
Merge pull request #14401 from benpicco/kconfiglib-v14.1.0
kconfiglib: bump to v14.1.0
2020-07-01 09:37:50 +02:00
Francisco
41888674a4
Merge pull request #14385 from aabadie/pr/make/appdeps_export
boards/mips: remove use of APPDEPS, un-export globally APPDEPS
2020-07-01 09:13:35 +02:00
Benjamin Valentin
6dcaa9ad49 tools/radvd: Add script to run radvd on a tun interface
This adds a small wrapper script to configure and start radvd on a
tun interface.
This allows the use of router advertisements and global adresses with
the `native` target.

Usage:

 - first create the tap interface as usual

    sudo dist/tools/tapsetup/tapsetup

 - now run radvd on the new tapbr0 interface

    sudo dist/tools/radvd/radvd.sh -c tapbr0 2001:db8::/64

 - Now run the `gnrc_networking` example on native:

    make -C examples/gnrc_networking all term

You should now see that the `native` node has received a global address
in `ifconfig`.
You should be able to reach this address from your host computer.

It may take very long for the native node to obtain the address.
If you are observing this, try turning off router advertisements of the
native node on the upstream interface by running

    ifconfig 6 -rtr_adv

Alternatively change `USEMODULE += gnrc_ipv6_router_default` to
`USEMODULE += gnrc_ipv6_default` in the project's `Makefile`.
2020-06-30 17:55:25 +02:00
Benjamin Valentin
11fa839abb kconfiglib: bump to v14.1.0
The latest upstream version uses Python3 instead of Python2.
2020-06-30 17:32:42 +02:00
d98ddfad9a
Merge pull request #13824 from fjmolinas/pr_openwsn
pkg/openwsn: re-integrate the network stack as a package
2020-06-30 14:08:10 +02:00
Gunar Schorcht
7554abd8e2
Merge pull request #14392 from benpicco/esptool-python3_only
esptool.py: use Python3
2020-06-30 13:57:27 +02:00
Francisco Molina
d01476a661
dist/tools/openvisualizer: inital support 2020-06-30 13:10:56 +02:00
chrysn
250f6fdfa3 usb: Warn on test-ID usage in a unified location
This

* renames DEFAULT_xID to USB_xID_TESTING as it is not really a default
  (if anyting, the 7D00 is, and it's not that)
* moves the check into Makefile
* generalizes the check to all test PID/VID pairs
  * in doing so, fixes the "or" (which would have ruled out warning-free
    use of an allocated pid.codes number), and compares to the actual
    testing PID rather than the RIOT-peripheral PID
* removes all occurrences of duplicated checks in examples or tests,
  leaving definitions only where they are needed
* moves the Kconfig defaults of the usbus_minimal example into the main
  Kconfig, as these are good defaults for all cases when USB is enabled
  manually

Closes: https://github.com/RIOT-OS/RIOT/issues/12273
2020-06-30 10:51:36 +02:00
Benjamin Valentin
09c3ad5999 esptool.py: use Python3 2020-06-29 23:35:37 +02:00
88452abfcf
ci/build_system_check: ensure no export of APPDEPS/BUILDDEPS/DEBUGDEPS 2020-06-28 12:15:18 +02:00
86fb4a5685
tools/flatc: don't clone flatbuffers in the global pkg dir
When building with make -j, flatbuffers is cloned by both the flatc build and the regular package build and from time to time a concurrency issue make the build to fail. Keeping regular flatbuffer package and flatc tool sources separate avoid this issue
2020-06-28 11:16:12 +02:00
a0b042cdd4
dist/tools: adapt tools that are built using pkg.mk 2020-06-26 09:25:45 +02:00
Francisco Molina
9909cdfffd
dist/buildsystem_sanity_check: no USEMODULE in Makefile.include 2020-06-25 11:02:00 +02:00
e785d43003
ci/build_system_check: fix typo in function name 2020-06-25 10:15:23 +02:00
Francisco
a665fcc542
Merge pull request #14123 from jue89/fix/ztimer_pseudomodules
ztimer: relocate PSEUDOMODULES definitions
2020-06-24 22:56:07 +02:00
c36109516a
dist/buildsystem_check: ensure no export of toolchains vars 2020-06-24 11:01:01 +02:00
d69036f08d
dist/tools/git-cache: don't export GIT_CACHE_DIR in script 2020-06-23 14:54:25 +02:00
1084d6593f
dist/buildsystem_check: ensure no export of GITCACHE/GIT_CACHE_DIR 2020-06-23 14:54:25 +02:00
d0f966734a
dist/tools: remove unneccessary redefinition of GITCACHE 2020-06-23 14:54:25 +02:00
Leandro Lanzieri
d90140e121
Merge pull request #13221 from miri64/tools/feat/pktbuf-parser
dist/tools: provide tool to parse `pktbuf` output
2020-06-23 13:50:36 +02:00
Martine S. Lenders
697f16eab7
dist/tools: provide tool to parse pktbuf output 2020-06-23 11:12:33 +02:00
3332f7d643
dist/tools/flatc: configure cmake for out-of-source build 2020-06-19 14:23:49 +02:00
Francisco
315b97939f
Merge pull request #14246 from leandrolanzieri/pr/cpu_arch_to_cpu_core
cpu: Rename CPU_ARCH to CPU_CORE
2020-06-16 13:48:08 +02:00
Leandro Lanzieri
4d65bc8e0a
cpu: Rename CPU_ARCH to CPU_CORE 2020-06-16 12:05:40 +02:00
be5db69ea9
dist/tools/mosquitto_rsmb: fix stand-alone build 2020-06-15 09:53:46 +02:00
1ed0d659ed
Merge pull request #13320 from bergzand/pr/stdio/semihosting
stdio_semihosting: Initial include of Semihosting-based STDIO
2020-06-09 16:52:44 +02:00
aff18b9599
tools/openocd: add OPENOCD_DBG_EXTRA_CMD 2020-06-09 10:14:57 +02:00
Leandro Lanzieri
5ba7ef6d6f
dist/tools/kconfiglib: Add remove command to delete files
The 'remove' target removes the downloaded files from the tool.
2020-06-04 15:31:40 +02:00
0e1e0a5b6a dist/tools/flatc: compile with ccache (if CCACHE is set) 2020-06-02 21:42:27 +02:00
Leandro Lanzieri
1783a56767
buildsystem_check: Add check for features provided
This checks that providing features for boards and CPUs is only being
done in Makefile.features.
2020-05-29 11:07:09 +02:00
Juergen Fitschen
0a4beec345 buildsystem_sanity_check: don't touch PSEUDOMODULES in Makefile.dep 2020-05-23 16:35:05 +02:00
eb9bf4b601 dist/tools/uncrustify: add ztimer files to whitelist 2020-05-07 14:59:13 +02:00
87b0c1d909 dist/tools/uncrustify: temporarily disable error on check failure 2020-05-07 13:57:09 +02:00
fda6ef6ac6 dist/tools/uncrustify/uncrustify.sh: fix uncrustify check logic
Previously, uncrustify.sh would fail (report uncrustifying necessary) if
there was any output of uncrustify. Turns out uncrustify sometimes
outputs something.

This commit changes the logic to use uncrustify's output value as
indicator.

Also, adds printing which file causes the check to fail.
2020-04-29 09:51:36 +02:00
e531bdbcec
Merge pull request #8519 from jia200x/uncrustify
uncrustify: add auto uncrustify with blacklist
2020-04-29 09:16:27 +02:00
Leandro Lanzieri
fe09fd3502
Merge pull request #13891 from miri64/testrunner/fix/SIGKILL-last-resort
testrunner: use SIGKILL only as last resort
2020-04-28 20:15:00 +02:00
Martine S. Lenders
aee9f09386
testrunner: use SIGKILL only as last resort
When the child has a clean-up step (closing files, killing
sub-processes, deleting operational files, etc.), this currently is not
executed by the test, as the `testrunner` just does a hard `SIGKILL`
for the child's PPID. This change makes this a `SIGTERM` and only uses
`SIGKILL` if there are still processes lingering a second after the
`SIGTERM`.
2020-04-28 19:42:07 +02:00
Jose Alamos
bb7c7a7496 uncrustify: add core to whitelist 2020-04-28 12:35:26 +02:00
Jose Alamos
bf1e2431ac ci/static_tests: call uncrustify check 2020-04-28 12:35:25 +02:00
Jose Alamos
9f1b2f2550 uncrustify: add CI check
Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
2020-04-28 12:35:25 +02:00
Leandro Lanzieri
8023aa3d47
dist/tools/kconfiglib: Add riot_kconfig to override default behaviours
This also patches menuconfig.py to use the new class. For now it
implements a version of _parse_help which removes Doxygen markers.
2020-04-27 12:29:40 +02:00
Martine Lenders
55a7010a0a
Merge pull request #13157 from nmeum/pr/fuzzing_tcp_only
Add AFL-based fuzzing setup for network modules
2020-04-18 10:54:14 +02:00