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

1403 Commits

Author SHA1 Message Date
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