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

1369 Commits

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