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

870 Commits

Author SHA1 Message Date
MrKevinWeiss
957cc83cc6 doc: Update copywrites it include HAW 2019-01-28 09:08:50 +01:00
613e05fd42
tools/compile_test_one_board: update documentation README
Provide some notes on how to perform basic checks on the script using tox
2019-01-23 18:23:05 +01:00
148f715689
tools/compile_test_one_board: add tox.ini configuration file
tox.ini configures 3 checks on the python script: doctest (via pytest), pylint and flake8
2019-01-23 18:23:04 +01:00
26a64694dd
tools/compile_test_one_board: rename TestError exception class
Otherwise it conflicts with pytest automatic parsing which tries to execute all classes with name beginning with Test
2019-01-23 16:25:31 +01:00
a4ad366a81
Merge pull request #10818 from cladmi/pr/compile_and_test_board
dist/tools/compile_and_test_for_board: add compile and test script
2019-01-22 08:56:31 +01:00
cladmi
921afa0820
testrunner: fix script when RIOTBASE is not defined
If not defined it was raising a KeyError. Use the 'get' function to
handle non defined value.

It did not put the value in the `default` case as it would have changed
the behavior when `RIOTBASE` is defined but empty.
2019-01-21 12:19:34 +01:00
Gaëtan Harter
204a4bae7f
dist/tools/compile_and_test_for_board: add some TODO
The script was migrated as is from Release-Specs but could benefit from
adaptation as it is run from RIOT.
2019-01-18 16:08:55 +01:00
Gaëtan Harter
ae76d7f364
dist/tools/compile_and_test_for_board: add compile and test script
Move the compile and test script from Release-Specs.
https://github.com/RIOT-OS/Release-Specs/blob/271dc8/02-tests/compile_and_test_for_board.py

By default it should be run as

    ./compile_and_test_for_board.py path_to_riot_directory board_name [results]

The script is migrated as-is so has not been changed to automatically use the
current repository.
2019-01-18 16:08:31 +01:00
Juan Carrano
2209435214 tools/ci: correcly report flake8 version.
If the flake8 executable is not found, the static test script reports
the tool as missing. It may happen that the flake8 module is installed,
but the console entry point is not.

In the flake8 shell script, flake is invoked via `python -m`. The result
is a confusing error message where static-test reports the tools as missing,
yet the flake8 tests are run.

This patch makes the toolchain version script use the same command as the
flake8 script.
2019-01-15 20:10:29 +01:00
Juan Carrano
9926ac1ffa ci/print_toolchain_versions: robust/portable version detection.
Detect command line tool versions without using "command".
Command may be a builting in some shells, leading to unportability.

The new version uses the status code to correctly detect a non-existent
command. This allows it to differentiate between error in the tool and
not-found errors.

It also works with compound commands, for example `python -m callable_module".
2019-01-15 20:02:01 +01:00
Martine Lenders
4887b22ef5 print_toolchain_versions.sh: add xtensa newlibs 2018-12-29 15:26:36 +01:00
Martine Lenders
745574266c print_toolchain_versions.sh: add xtensa toolchains 2018-12-29 14:28:08 +01:00
Martine Lenders
7bdbd163c9 print_toolchain_versions.sh: make lists easily diff-able 2018-12-29 14:27:35 +01:00
f5170bb82c dist/tools/pyocd: provide support for PyOCD programmer 2018-12-21 14:56:26 +01:00
Francisco Acosta
a638f31bce dist/tools: add genhdr tool to generate RIOT image headers
In order to use the RIOT bootloader (riotboot) a header needs to
be created and placed before the firmware. This tool generates
such a header with the expected information by the bootloader.

Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
2018-12-18 19:31:34 +01:00
0cb75c5f10 testbed-support: add nrf51dk to supported archis 2018-12-12 15:36:56 +01:00
Dylan Laduranty
f01bc4dc1d dist/tools/edbg: update to lastest version
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2018-12-07 10:49:38 +01:00
Gaëtan Harter
a0b97ad737
openocd: get flash and debug files from cli
Get FLASH_FILE and ELFFILE from command line instead of environment variable.

The documentation was claiming ELFFILE was given as a command line argument
already, but is was not.
2018-12-05 16:21:03 +01:00
Martine Lenders
37a11e9802 dist/testbed-support: add firefly in IoT-LAB archis 2018-12-04 14:54:26 +01:00
963d06c7de
Merge pull request #10528 from cladmi/pr/make/jlink/flashfile_from_cli
jlink: get flash and debug files from cli
2018-12-03 13:44:39 +01:00
Juan I Carrano
f4e810cfff
Merge pull request #9819 from jcarrano/doccheck-report-total-failure
tools/doccheck: Detect when `make doc` fails to run.
2018-11-29 18:37:15 +01:00
Martine Lenders
2a2ef9bbdf
Merge pull request #10481 from aabadie/pr/tools/pyterm_exception
tools/pyterm: catch serial.Exception when serial port is busy
2018-11-27 17:59:26 +01:00
Gaëtan Harter
adbc214298
Merge pull request #10457 from aabadie/pr/testbed-support/iotlab-phynode
dist/testbed-support: add pba-d-01-kw2x in iotlab archis
2018-11-27 17:34:19 +01:00
98413e43af tools/pyterm: catch serial.Exception when port is busy
This can happen when opening a terminal right after flashing a board that has just been plugged
2018-11-27 17:30:45 +01:00
cladmi
5fcc1210d9
jlink: get flash and debug files from cli
Get BINFILE and ELFFILE from command line instead of environment variable.

Rename 'HEXFILE' to 'BINFILE' in the script as the binary file is used.
The documentation was already talking about 'BINFILE' but 'BINFILE'
was never exported by the build system and it was using 'HEXFILE' in the
implementation.
2018-11-27 15:28:49 +01:00
Juan I Carrano
d3e9eec8fe
Merge pull request #10060 from cladmi/pr/tests/build_system_checks
static_tests: add build system checks
2018-11-27 15:20:45 +01:00
Juan Carrano
ae4cecd14c tools/doccheck: Detect when make doc fails to run.
The previous doccheck would give a false negative when doxygen does
not even run (for example, because of misconfiguration).

Also, when doxygen fails to run, print the full output.
2018-11-22 16:51:07 +01:00
a640957e31 dist/testbed-support: add pba-d-01-kw2x in iotlab archis 2018-11-22 16:38:33 +01:00
17c7ad89a9 dist/testbed-support: add frdm-kw41z in iotlab archis 2018-11-22 10:56:50 +01:00
99fa0e9cf8 dist/tools/tested-support: update samr30 archi mapping
The archi was changed in IoT-LAB: samr30:at86rf215 => samr30:at86rf212b
2018-11-20 21:39:12 +01:00
cladmi
bcf0342cbd
static-test: add buildsystem sanity check 2018-11-19 16:00:46 +01:00
cladmi
143e393fcd
dist/tools: add build system sanity check script
Add a script to execute sanity checks on build system files.
It should prevent bad patterns to re-appear after being cleaned.

Currently adds a check for using the content of `FEATURES` instead of
`USEMODULE`.

Modules should not check the content of FEATURES_PROVIDED/_REQUIRED/OPTIONAL
Handling specific behaviors/dependencies should by checking the content of:
 * `USEMODULE`
 * maybe `FEATURES_USED` if it is not a module (== not a periph_)
2018-11-16 16:40:23 +01:00
Joakim Nohlgård
3deea7dfbf print_toolchain_versions.sh: Add make command version 2018-11-12 14:06:29 +01:00
cladmi
a7779e24c5
openocd.sh: handle 'newline' on osx
https://stackoverflow.com/a/24276470

    In replacement strings used with the s command, assume that NO
    control-character escape sequences are supported (ex '\n')

Replace with an escaped newline character. Current form works in 'bash'.
2018-10-30 19:44:37 +01:00
cladmi
6f02568c84
openocd.sh: split 'sed' commands on different lines
https://stackoverflow.com/a/24276470

    Labels and branching commands (e.g., b) must be followed by an actual
    newline or continuation via a separate -e option.
2018-10-30 19:44:37 +01:00
cladmi
291a80c664
openocd.sh: refactor splitting banks in a separate function
Prepare for other refactoring.
2018-10-30 19:44:37 +01:00
a3f2d20169 dist/testbed-support: add new iotlab archi
nrf52840dk and microbit
2018-10-28 18:57:17 +01:00
Gaëtan Harter
8179038a8c
makefile.iotlab.single.inc.mk: add new IoT-LAB supported nodes
Support for `nrf52dk` and `samr30-xpro` has been added on saclay site.
2018-10-24 15:43:59 +02:00
Gaëtan Harter
599bc2afd2
makefile.iotlab.single.inc.mk: sort IOTLAB_ARCH_ variables definition
Define them in alphabetical order instead on putting the 'iotlab'
specific nodes at first. Prepare for adding new architectures.
2018-10-24 15:12:00 +02:00
Kevin "Bear Puncher" Weiss
7187bbf8cf
Merge pull request #9426 from gschorcht/esp32
ESP32 port
2018-10-16 15:24:25 +02:00
Martine Lenders
a73c499b67
Merge pull request #10117 from miri64/tools/enh/pr-check-label-rename
tools/pr_check: adapt for label categorization
2018-10-12 20:17:57 +02:00
Kevin "Bear Puncher" Weiss
0719442ddc
Merge pull request #10072 from haukepetersen/fix_nrf52xxxdk_resetpin
boards/nrf52xxxdk: make reset pin work
2018-10-12 09:36:30 +02:00
Martine Lenders
6f8fd1d6df doccheck: exclude dist/tools directory from group check 2018-10-11 15:16:09 +02:00
Sebastian Meiling
239b3dfe86
Merge pull request #10132 from MrKevinWeiss/pr/adaptphil
dist/tests/if_lib: Update to riot_pal
2018-10-11 11:47:55 +02:00
Pekka Nikander
371134264a dist/tools/commit-msg/check.sh: Enhance reporting 2018-10-10 14:06:33 +03:00
MrKevinWeiss
5b83137fd1 dist/tests/if_lib: Update to riot_pal
This removes all non-application based driver/devices and replaces with riot_pal.
riot_pal (riot protocol abstraction layer) can be installed with pip install riot_pal.
The purpose is ti simplify and modularize the interfaces and tests.
All tests using the if_lib interface are updated too.
2018-10-09 21:21:17 +02:00
Schorcht
32e602680b cpu: add esp32 vendor files 2018-10-08 12:20:49 +02:00
Martine Lenders
055ec38fff tools/pr_check: adapt for label categorization
In [#10030][1] it was decided to rename all labels to reflect their
respective category. The labels "NEEDS SQUASHING" and "Waiting For Other
PR" are used in the `dist/tools/pr_check/pr_check.sh` script however, so
that script needs to be adapted.

[1]: https://github.com/RIOT-OS/RIOT/issues/10030
2018-10-05 19:07:32 +02:00
Francisco Acosta
cb8e78da13
Merge pull request #9916 from kYc0o/pr/tools/fix_kill_testrunner
dist/tools/jlink.sh: fix testrunner on stdio_rtt based devices
2018-10-04 17:31:58 +02:00
Hauke Petersen
0ca02de0a2 tools: add nrf52_resetpin_cfg tool
This new tool allows configuring the reset pin for nRF52-based
boards. As the reset pin configuration is persistent, it does not
make sense to include it into the board code...
2018-09-28 16:50:58 +02:00
Martine Lenders
442df8227b
Merge pull request #9839 from MrKevinWeiss/pr/doc/repoupdate
doc: Add deprecation warnings for new repos
2018-09-25 23:15:07 +02:00
Martine Lenders
5ac02f5134
Merge pull request #10010 from smlng/pr/fix/cppcheck-suppress
dist/cppcheck: fix missing cppcheck-suppression reasons
2018-09-25 13:52:28 +02:00
smlng
d7942cd974 dist/tools: fix tunslip6 strncat num param
Cppcheck was (correctly) warning here that concat to strings might
result in buffer overflow because the terminating `\0` was not considered.
This is fixed here, making the cppcheck suppression also obsolete.
2018-09-25 12:03:58 +02:00
smlng
3f811c44db cppcheck: extend cppcheck README example
Extend the cppcheck suppression example to show that each suppression
should have a reason describing the intentional suppression of a
cppcheck warning or error.
2018-09-25 12:03:58 +02:00
smlng
59e299635b cppcheck: add/correct reason for cppcheck-suppress
Adding and correcting description/rational on why certain cppcheck
warnings or errors are intentionally suppressed.
2018-09-25 12:03:58 +02:00
smlng
6d24033bd6 dist/tools: print OS and Kernel version
Add output to print_toolchain_version script to include info
on the operating system and its kernel version.
2018-09-25 09:22:42 +02:00
smlng
87505f0334 dist/tools: fix whitespace in print_toolchain_versions 2018-09-25 09:22:41 +02:00
smlng
c73ed667c1 dist/tools: print more tool versions
This adds openocd, python, python2, and python3 to the helper
script print_toolchain_versions.sh.
2018-09-25 09:22:41 +02:00
smlng
424830b06b dist/tools: parse version info from stderr
Currently version information of commands and tools is only parsed
from STDOUT, however some tools like openocd print version info
to STDERR only. This commits adds parsing of STDERR for version
infos if STDOUT does not contain such info.
2018-09-25 09:22:41 +02:00
Leandro Lanzieri
31fa4fd64d dist/tools: Add stm32loader flash utility 2018-09-18 18:07:42 +02:00
Francisco Acosta
89fa4da4c3 dist/tools/jlink: remove duplicated check 2018-09-11 17:29:12 +02:00
Francisco Acosta
ad87b2875e dist/tools/jlink: remove setsid for launching JLinkExe for term
When executing `make test` on devices using JLink, testrunner
launches `make term` which calls `jlink.sh term_rtt`. When finished
the father process is killed but `setsid` has launched JLinkExe
as another subprocess, which is not killed by `os.killpg` from
testrunner since it doesn't belong to the same group.
2018-09-11 00:46:18 +02:00
Francisco Acosta
dfd349a05b dist/tools/jlink: send output to /dev/null
While running `make term` JLinkExe is expecting commands and thus
can be disturbed by other JLink commands, e.g. `make reset`.
This enable `make test` (which runs those two commands at the same
time) on target using JLinkExe as a programmer/debugger.
2018-09-11 00:46:18 +02:00
0c1a207bf9
Merge pull request #9867 from kaspar030/pr/unify_app_folder_search
make: unify app folder search (examples/*, tests/*, ...)
2018-09-06 09:30:12 +02:00
de55265835 dist/tools/compile_test: make use of makefiles/app_dirs.inc.mk 2018-09-05 12:03:09 +02:00
Schorcht
e528fb8e2d cpu: add esp8266 vendor files 2018-09-05 02:39:50 +02:00
cladmi
bc7e53f3d4
openocd.sh: include base address in IMAGE_OFFSET for binfiles
Add the rom base address to the flash address when flashing binaries.
This allows flashing binaries with the default openocd configuration.

It is an API change to IMAGE_OFFSET with binary files as it should now
only be an offset to the base address.

Force openocd type to '.bin' in case we want to flash hex/elf objects or
files not automatically recognized as bin.
2018-09-04 13:53:38 +02:00
cladmi
36b51467dd
openocd.sh: add functions to access board flash address
This allows getting the ROM base address.

It may not be available in the build system directly so better extract it from
openocd. Also openocd is board specific and this address is cpu specific
so would have definition order issue in the build system.
2018-09-04 13:50:46 +02:00
cladmi
5748d6a75f
openocd.sh: add a _is_binfile function
Returns 0 if it is true.

The test is based on the file extension, but also use the IMAGE_TYPE variable
to force setting to binary.
2018-09-04 13:49:45 +02:00
cladmi
60aac4a75b
openocd.sh: fix verify_image with IMAGE_OFFSET
When flashing with an IMAGE_OFFSET, it should also be passed to
verify_image. It is handling the base address in the image too.

This works with both elf files and binaries with the base address added.
2018-09-04 13:48:16 +02:00
cladmi
09f0930f59
openocd.sh: add a debug message when flashing with an offset 2018-09-04 13:48:12 +02:00
cladmi
5bb9babfe0
openocd.sh: update to bash
Update to bash to have `local` variables and `=~` regex matching.
Will be used in upcoming commits.
2018-09-04 13:46:25 +02:00
75dba75fbb dist/tools/pyterm: handle ctrl+d nicely 2018-09-03 17:34:23 +02:00
a5714cc7c7 dist/tools/compile_test: fix flake8 issues 2018-08-31 08:50:52 +02:00
MrKevinWeiss
223ed1a26b doc: Add deprecation warnings for new repos
This PR add deprication warning to notify anyone using the if_lib files that it is being removed from RIOT repo and making it's own repo (RIOT-OS/lib_if).
This is intended to help wil modularization since it is not only being used within RIOT but in other areas as well.
README files are updated to indicate the change and if the if_lib is used it will throw a warning indicating the deprecation.
2018-08-25 10:34:32 +02:00
Semjon Kerner
a01eb37b6f dist/tools/pyterm: change deprecated warn to warning 2018-08-23 12:23:59 +02:00
Leandro Lanzieri
28b832ad1f dist/tools: Add option to set the value of RTS and DTR pins in pyterm 2018-08-22 11:13:45 +02:00
Leandro Lanzieri
9b0dd23ebf dist/tools: Add option to invert DTR and RTS logic values in pyterm 2018-08-22 09:00:06 +02:00
Gaëtan Harter
cc63d2d21c
genconfigheader: use lazysponge for file management
Remove file management from `genconfigheader` script and use `lazysponge` in
Makefile.include.

Use --verbose option when in non QUIET building mode.
2018-08-20 11:34:55 +02:00
Gaëtan Harter
0528e0903f
dist/tools: add lazysponge tool
Write stdin to <outfile> if it is different from the previous content.

If data provided in stdin is the same as the data that was in <outfile>, it is
not modified so `last modification date` is not changed.
2018-08-20 11:34:49 +02:00
Gaëtan Harter
31aba49a31
Merge pull request #9759 from smlng/pr/pythonlibs/testrunner
dist: move testrunner to pythonlibs as package
2018-08-16 11:54:02 +02:00
Gaëtan Harter
a3c7d26a7d
dist/tools/has_minimal_version: add tool to check minimal version
usage: has_minimal_version.sh <version> <minimal_version> [toolname]
      Checks that version >= minimal_version
      Version format MAJOR.MINOR.PATCH ex 3.1.4
2018-08-14 15:26:51 +02:00
smlng
dd9a43bdc9 dist: move testrunner to pythonlibs as package
As testrunner is moved to dist/pythonlibs which is exported
via PYTHONPATH, testrunner is found by all test scripts.
2018-08-13 14:11:22 +02:00
smlng
68a6ba8987 make: introduce common Python lib path
Introduce dist/pythonlibs directory to store RIOT python packages.
This directory is exported via PYTHONPATH by the build system to
make it commonly available.
2018-08-10 11:37:43 +02:00
Yegor Yefremov
ea7fa8bb63 dist/tests/if_lib: use '==' for string comparison
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2018-08-06 10:19:43 +02:00
Yegor Yefremov
87ecb78d2f dist/tests/if_lib: don't invoke super class __init__
Python invokes super class __init__ automatically
unless it is overridden.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2018-08-06 09:55:43 +02:00
Yegor Yefremov
ff525eb354 dist/tests/if_lib: move testing infrastructure files to a stand-alone package
Create if_lib package containing all the modules and adapt the *.py files
to import each other using the intra-package references.

The idea behind a package is to invoke test.py either by permanently
modifying PYTHONPATH in user profile via adding path to $RIOTBASE/dist/tests
or make temporary PYTHONPATH changes during the invocation:

PYTHONPATH=$PYTHONPATH:$RIOTBASE/dist/tests python3 test.py

Leave periph_i2c_if.py in the same folder as test.py as this file is
just a Python wrapper around periph specific main.c.

Update BPT memory map. Use definitions generated with the latest code
generator. Both routine names and mapping have changed.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2018-08-02 13:34:47 +02:00
Cenk Gündoğan
36529e3d61
Merge pull request #9586 from miri64/dist/fix/iotlab-term
iotlab-support: use iotlab command to check credentials
2018-08-02 09:26:07 +02:00
Gaëtan Harter
5284849621
Merge pull request #9063 from bergzand/pr/shellcheck/initial
shellcheck: Add CI check script
2018-07-30 13:52:58 +02:00
c5c3903617
shellcheck: Add CI check script 2018-07-29 15:28:13 +02:00
Martine Lenders
ad65aadb37 iotlab-support: use iotlab command to check credentials
Since the `iotlab-term` target uses `tmux` error messages are not really
printed, so it took me a while to find out why at some sites this target
wasn't working for me anymore.

If the IoT-LAB password was changed, just checking if `.iotlabrc`
exists isn't enough, so I use `iotlab-experiment` to check if I'm logged
in properly to prompt the password input in case I'm not.
2018-07-17 13:02:54 +02:00
Gaëtan Harter
3cb57b68c2
Merge pull request #9502 from dylad/pr/update_edbg
dist/tools: update EDBG version
2018-07-12 22:14:02 +02:00
dylad
edf0360103 dist/tools: update EDBG version
update to the current lastest version of EDBG to allow user to reflash a bricked board due to sleep mode or wrong clock assignment. this avoid the use of Atmel Studio to erase flash.
2018-07-10 15:10:40 +02:00
Martine Lenders
49036c7065 mosquitto_rsmb: add MQTT listener to config
This helped me a lot while testing #9464 to interact with the broker
using the mosquitto shell command clients.
2018-07-05 13:17:59 +02:00
Hauke Petersen
3ccb27d00d tools: add mosquitto.rsmb MQTT-SN broker 2018-07-04 11:36:57 +02:00
Juan Carrano
6cfafc8923 tools/mkconstfs: Add an improved tool.
The new tool (mkconstfs2) features:

* more robust filename handling: no need for mangling,
  and works on Windows.
* Better output generation: nothing is written in case
  of failures.
* Allows more control over the files that are included:
 - does not traverse directories, filenames must be explicitly
   given.
 - The "root" can be explicitly given (thus the tool can get
   the same result independently of the CWD).

Thanks to MichelRottleuthner for making it work with Windows paths.
2018-07-02 10:15:56 +02:00
Gaëtan Harter
1087e49379
dist/tools/usb-serial: use RIOTTOOLS variable 2018-06-28 14:05:33 +02:00
Gaëtan Harter
b0b2835503
dist/tools/jlink: use RIOTTOOLS variable 2018-06-28 14:05:33 +02:00
Gaëtan Harter
41105bb23f
pic32prog: add a documentation on how to update PICkit3
To use pic32prog, the PICkit3 must be updated with a scripting mode firmware.
This describes how to do it on Linux using a windows VM (free).
2018-06-18 10:21:37 +02:00
Gaëtan Harter
7e81f54205
makefile.iotlab.single: add 'info-iotlab-node' target
Add a target to show the value of IOTLAB_NODE. Can be used to get the result of
using IOTLAB_NODE=auto or IOTLAB_NODE=auto-ssh.
2018-06-15 15:37:33 +02:00
Gaëtan Harter
124f9ec9bb
makefile.iotlab.single: check iotlab-node/iotlab-ssh return value
Format the output to be '0' on success and check it with grep.

This makes command fail when they failed on IoT-LAB.
2018-06-15 15:37:29 +02:00
Gaëtan Harter
d900e0a548
makefile.iotlab.single: add auto and auto-ssh modes
Usage:

    make BOARD=iotlab-m3 IOTLAB_NODE=auto-ssh all flash term

Add support to select node number in auto mode
2018-06-15 15:37:25 +02:00
Gaëtan Harter
3bba0c5895
makefile.iotlab.single: add IoT-LAB testbed support for one node
Add support to do flash/reset/term on an IoT-LAB node.
It also allow running test using 'testrunner'.

Configuration variables are:

* `IOTLAB_NODE` which should be set to your node url
  * The full url including site to use from your computer `m3-1.grenoble.iot-lab.info`
  * The short url when used on the IoT-LAB frontend `m3-1`
* `IOTLAB_EXP_ID` for your experiment id for flash and reset.
  By default it tries to use your currently running experiment if you have only one
* `IOTLAB_USER`: is read from `${HOME}/.iotlabrc` as saved by `iotlab-auth`
  * It is expected to have run `iotlab-auth` beforehand.
2018-06-15 15:37:18 +02:00
Gaëtan Harter
ec2fe9a308
Merge pull request #9294 from smlng/pr/tools/cwd
tools: allow static checks to be run from any directory
2018-06-12 12:39:42 +02:00
Cenk Gündoğan
2706264908
Merge pull request #9292 from smlng/pr/tools/doccheck
tools/doccheck: adapt script to run on macOS
2018-06-12 10:28:43 +02:00
00828bb62d dist/tools/doccheck: enable group check in CI 2018-06-11 19:12:02 +02:00
Martine Lenders
5cb5717a1f
Merge pull request #9293 from smlng/pr/tools/flake8
tools/flake8: fix regex in check script
2018-06-11 11:17:08 +02:00
smlng
cba319079c tools/doccheck: adapt script to run on macOS 2018-06-11 09:50:32 +02:00
2f21e16915 dist/tools/doccheck: add check for undefined groups 2018-06-07 19:29:38 +02:00
smlng
1adb5852ec tools: allow static checks to be run from any directory 2018-06-06 14:03:31 +02:00
smlng
c5f2ea6320 tools/flake8: add files exclude pattern for imported scripts 2018-06-05 15:22:07 +02:00
smlng
1891d42bc8 tools/flake8: fix files regex for macOS 2018-06-05 15:21:26 +02:00
22cb41b874
Merge pull request #8966 from kenrabold/riotpr
RISC-V: New CPU (FE310) and Board (HiFive1)
2018-05-30 09:47:26 +02:00
kenrabold
a6ba0d85ee make: Ignore checking all vendor files
Ignore all files in any vendor directory, not just /include/vendor
2018-05-29 15:21:44 -07:00
Bas Stottelaar
1d78138816 dist: tools/licenses: add mit-short 2018-05-29 18:40:59 +02:00
Joakim Nohlgård
5816aa7419 dist: tools: git-cache: update to latest upstream
Upstream commit 04f04e5272f9fd68113a7f07ef034dd672630c79

04f04e5272
2018-05-17 20:42:23 +02:00
Gaëtan Harter
ef13d91bed
tools/check: use RIOTTOOLS variable
Follow up to #9067 and part of #8821
2018-05-14 15:47:53 +02:00
Gaëtan Harter
6027b9bca1
Merge pull request #9018 from aabadie/pr/dist/testbed-support-tools-name
dist/testbed-support: use new cli-tools command names
2018-05-11 19:05:56 +02:00
Gaëtan Harter
297ca898fe
dist/tools/desvirt: use RIOTTOOLS variable 2018-05-09 18:01:48 +02:00
1592de7bff
tools/flake8: fix shellcheck issues 2018-05-07 15:59:46 +02:00
6fc32e90dd dist/testbed-support: use new cli-tools command names 2018-04-26 16:13:02 +02:00
2172074598 dist/tools/openocd: make reset before halt option in debug 2018-04-18 17:33:30 +02:00
f2a73c26cf ci: print_toolchain_versions.sh: enlarge field width to 23 2018-04-13 12:04:08 +02:00
fa96289531 dist/tools/ci/print_toolchain_versions.sh: add riscv toolchain 2018-04-13 11:55:55 +02:00
89475e72f7 testrunner: spawnu 'make term' with 'codec_errors="replace"' 2018-04-11 22:42:12 +02:00
7c5d549d5d dist/tools/flake8: use "python -m flake8", handle missing flake8 2018-04-05 09:40:31 +02:00
Bas Stottelaar
c04d831754 dist/tools: jlink: use GDB as default for DBG 2018-03-29 19:54:48 +02:00
smlng
a777f6fab0 tools: add helper script for xcompile with cmake 2018-03-27 19:02:06 +02:00
Sebastian Meiling
780f6046d8
Merge pull request #8745 from aabadie/pr/tools/print_doxygen_version
dist/tools/ci: also print doxygen and flake8 versions
2018-03-09 09:21:00 +01:00
80b7094488 dist/tools/ci: also print doxygen and flake8 versions 2018-03-05 18:42:39 +01:00
smlng
32cacd1743 tools: show diff for headerguards check on failure
fixes #8737
2018-03-05 13:54:51 +01:00
smlng
9968889c13 tools/ci: enhance print_toolchain script
- add generic command version printer
    - add cmake version
    - enhance output structure
2018-03-02 20:03:43 +01:00
Emmanuel Baccelli
401234f5d4 tools: added CC0 license pattern 2018-03-01 16:18:47 +01:00
b33f8a1b8b dist/tools/edbg: fix typo in comment 2018-02-25 23:02:25 +01:00
Joakim Nohlgård
369267863c ethos: Avoid EOF loops on detached stdin
Add a specific case of EOF on stdin to avoid situations where the
message `error reading from stdio. res=0` is repeated forever if stdin
is not a terminal. When ethos is started as a background process with
stdin redirected to /dev/null, e.g. `ethos ... < /dev/null &`, then
reading stdin will always result in a 0 length read (EOF).
If stdin is a tty we close the program on EOF (CTRL+D in the terminal),
otherwise, we stop reading from stdin after EOF was reached, but
continue tunneling traffic as usual.
2018-01-24 08:54:40 +01:00
Loïc Dauphin
86dec1b762 dist/tools: make teensy-loader-cli work on MACOSX 2018-01-17 18:14:00 +01:00
Hauke Petersen
45e0468ea4 tools/jlink: add RTT terminal support (term_rtt) 2018-01-15 23:01:34 +01:00
eaee364a1b dist/tools/pyterm: fix flakes8 issues 2018-01-05 15:21:03 +01:00
c20948df09 dist/tools/pyterm: remove duplicate method in PubProtocol
probably a copy paste from
http://twistedmatrix.com/documents/13.0.0/core/howto/servers.html#auto1
'numProtocols' is not used anywhere else so we keep the second version
of the 'connectionLost' function.
2018-01-05 15:18:51 +01:00
9578d17e93 dist/tools/flake8: update changed files regexp
to explicitly include pyterm
2018-01-05 13:39:25 +01:00
fa3c033949
Merge pull request #8306 from aabadie/pr/flake8/fix_header_guards
dist/tools/headerguards: fix flake8 issues
2018-01-03 17:17:47 +01:00
Martine Lenders
0f8721dfdf
Merge pull request #8308 from aabadie/pr/flake8/fix_mkconstfs
dist/tools/mkconstfs: fix various flake8 issues
2017-12-27 11:51:29 +01:00
6f99a98205
Merge pull request #8290 from smlng/ci/toolchain/print_git_version
toolchains: print git version
2017-12-21 11:54:06 +01:00
cfe2885720 dist/tools/headerguards: fix flake8 issues 2017-12-21 09:21:34 +01:00
f124e38475 dist/tools/mkconstfs: fix various flake8 issues 2017-12-20 16:48:56 +01:00
58ab6dd3fe dist/tools/testrunner: fix flake8 remaining issues 2017-12-20 13:34:52 +01:00
2b5f185f40
Merge pull request #8293 from smlng/enh/tools/tapsetup
tools/tapsetup: try to retrieve user name if not set
2017-12-19 19:46:32 +01:00
Gaëtan Harter
a40e9bac5c
Merge pull request #8078 from aabadie/pr/python_style_check
dist/tools: add Python style check in static tests
2017-12-19 18:42:49 +01:00
smlng
24d79ca11b tools/tapsetup: try to retrieve user name if not set 2017-12-19 17:56:48 +01:00
smlng
e18aa35559 toolchains: print git version 2017-12-19 16:20:21 +01:00
Sebastian Meiling
631705d743
Merge pull request #8053 from cladmi/pr/testrunner/make_start_delay_configurable
dist/tools/testrunner: Make started wait time configurable
2017-12-18 11:09:49 +01:00
035bdf7dcb dist/tools: add PEP8 check to static tests 2017-12-15 15:07:50 +01:00
Martine Lenders
90d2060188
docheck: make doccheck executable from any directory
The doccheck script reports reports a false positive when executed from
any directory but `RIOTBASE`. With this fix, `make doc` changes into
the currently unused `RIOTBASE` variable.

This is an alternative approach to #7217, which removes this variable,
but keeps the false positive aspect of the script untouched.
2017-12-07 11:01:49 +01:00
Martine Lenders
83930a0625
dist: add commit message length checker 2017-12-06 12:04:34 +01:00
Gaëtan Harter
58f6df24cd dist/tools/testrunner: Make started wait time configurable
The wait before board is started is 3 by default but can be overwritten by
setting 'TESTRUNNER_START_WAIT' environment variable.
2017-12-04 15:10:30 +01:00
Gaëtan Harter
da24cdaf3f
Merge pull request #8058 from haukepetersen/opt_boards_usecommon
boards: move shared code to boards/common/xx
2017-11-30 10:54:16 +01:00
Hauke Petersen
2ead5ef3a0 tools/testrunner: minor code beautifications 2017-11-30 10:34:37 +01:00
Hauke Petersen
a7c1a3f689 tools/changed_files: adapt for common board dirs 2017-11-30 10:26:36 +01:00
b62ebf5e44
Merge pull request #8079 from smlng/enh/dist/develhelp
dist: adapt develhelp in Makefile
2017-11-30 09:19:10 +01:00
Lucas Jenss
33002325d5 tools/pyterm: Notify user if wrong serial package is installed
When installing the `serial` package (in contrast to `pyserial`)
the pyterm script will print a cryptic error message and fail.
This is because both packages, though unrelated, expose a `serial`
package (whereas pyserial should expose `pyserial`).

This change catches the error and might save some precious lifetime
of unsuspecting RIOT users, such as myself.
2017-11-28 20:00:37 +01:00
smlng
c93d1ca6c2 dist: adapt DEVELHELP switch 2017-11-28 10:51:50 +01:00
b109b9ff99 dist/tools/pyterm: exit without traceback on keyboard interrupt 2017-11-27 13:19:48 +01:00
Martine Lenders
16e2829258
Merge pull request #7959 from antmicro/feature/renode-integration
makefiles: tools/renode: add support for Renode
2017-11-24 18:43:31 +01:00
smlng
013f325569 tools: move sniffer to applications repo 2017-11-23 10:24:39 +01:00
Michael Gielda
512445a66f
Update README.md for release 1.1 + link to docs 2017-11-21 15:22:55 +01:00
Cenk Gündoğan
31293b63cd dist: make: iotlab: use target specific var assignment 2017-11-20 00:46:31 +01:00
Joakim Nohlgård
57de166ea1 makefiles: Refactor openocd tool handling
Attempt to decouple board configuration from debugger interface
configuration by specifying the DEBUG_IFACE variable for the debug
hardware interface to use.
2017-11-17 10:03:05 +01:00
bcd823cc70
Merge pull request #8042 from haukepetersen/rm_board_x86
boards/cpu: remove support for x86
2017-11-16 11:31:14 +01:00
ba62eb5f51 dist/testbed-support: fix iotlab makefile indentation 2017-11-16 10:55:39 +01:00
Hauke Petersen
d7e11cd216 tools: remove toolchain build script for x86 2017-11-16 10:42:09 +01:00
Hauke Petersen
acaa092d6f dist/tools/ci: do not call make for qemu-i386 2017-11-16 10:42:09 +01:00
Martine Lenders
410778303e
testrunner: make traceback extraction downwards-compatible
The object-like access to frame information in the traceback was only
introduced in Python 3.5. Before that version it was a 4-tuple [[1]].

The indexed way to access the frame seems to be upwards-compatible for
newer versions (tested with python 3.5, maybe some of the Arch crew can
test with even newer versions), so I used that one.

[1]: https://docs.python.org/3.4/library/traceback.html#traceback.extract_tb
2017-11-15 14:51:39 +01:00
dcc1ae393c dist/tools/pr_check: fix regex pattern to recognize any SHA 2017-11-13 16:43:12 +01:00
Cenk Gündoğan
e1422bb5e4 testrunner: handle EOF and ProcessLookupError 2017-11-12 13:13:50 +01:00
Cenk Gündoğan
d537dd609f testrunner: refactor exception printing 2017-11-12 13:13:50 +01:00
Martine Lenders
18fb51cf66 testrunner: show information about failed line (even without traceback) 2017-11-12 12:27:21 +01:00
Cenk Gündoğan
05c9267a49
Merge pull request #7996 from aabadie/pr/testrunner_pep8
dist/tools/testrunner: fix some pep8
2017-11-10 23:44:43 +01:00
Peter Kietzmann
40e2a5a5f1
Merge pull request #7997 from cgundogan/pr/vagrant_info
vagrant: add info to README.md for Windows quirks
2017-11-10 15:35:06 +01:00
Cenk Gündoğan
50443708aa vagrant: add info to README.md for Windows quirks 2017-11-10 15:21:03 +01:00
a8275ea637 dist/tools/testrunner: fix some pep8 2017-11-10 13:26:15 +01:00
Piotr Zierhoffer
b424274a72 makefiles: tools/renode: add support for Renode 2017-11-08 12:43:09 +01:00
Martine Lenders
7ea0ba1a7e
Merge pull request #7710 from tfar/sandbox/2017/10/fix-edbg-macos-build
dist/tools/edbg: clear INCLUDES and LINK env vars before building
2017-11-07 22:32:33 +01:00
Tobias Markmann
3d0a350ebc dist/tools/edbg: Clear environment before building edbg
This fixes compilation on macOS. Without this, autoconf
might pick up INCLUDES and LINKER variables causing compilation
and linking errors.
2017-11-07 21:26:42 +01:00
Cenk Gündoğan
ce8d880513 packer: add dfu-util and bluepill udev rules 2017-11-03 13:44:39 +01:00
9b32d18e92
Merge pull request #7904 from basilfx/bugfix/jlink
dist/tools: check DBG env var.
2017-11-01 17:39:22 +01:00
Adrian GHC
cf148528c0 dist: Update Vagrant packer files to include xstlproc and Ubuntu 16.04.3 2017-10-29 15:55:50 +01:00
Bas Stottelaar
7e7d5d30f0 dist/tools: check DBG env var. 2017-10-29 15:06:46 +01:00
Joakim Nohlgård
af9ab30234 Merge pull request #7750 from miri64/dist/enh/clean-up-after-buildtest
dist: compile_test: cleanup after buildtest
2017-10-27 14:51:09 +02:00
Martine Lenders
fe38901588 dist: compile_test: cleanup after buildtest
We are at a point were building all of RIOT takes massive amounts of
storage. Since my machine runs full after only compiling ~20
applications (I have ~170 GB free storage if the RIOT repo is clean).

Thus the easiest solution for the compile tests is to just clean-up the
mess they made ;-).
2017-10-26 12:19:58 +02:00
Hauke Petersen
1928d1c0e9 tools/testrunner: wait 3s after 'make term' 2017-10-25 12:28:45 +02:00
Joakim Nohlgård
dd95f593a0 openocd: Run verify after write without intermediate reset
Fixes problems with the watchdog interfering on Kinetis K devices
when USE_OLD_OPENOCD=0.
2017-10-18 14:34:20 +02:00
Joakim Nohlgård
7713bede99 openocd: Refactor openocd.sh script
- Merge flash and flash-elf commands since they were identical except
  for the file name of the image
- Split GDB command from DBG environment variable to allow more easily
  configure front-ends for GDB via environment variables.
- Remove verbose tests of empty variables and replace by `: ${VAR:=default}`
- Remove passed command line arguments to sub-functions, they were
  unused in the functions anyway.
- Remove TUI variable, use `export DBG_EXTRA_FLAGS=-tui` to get the same
  result.
2017-10-18 14:34:20 +02:00
Martine Lenders
b74ee8869b slip: port to be used with netdev 2017-10-10 23:14:12 +02:00
Lucas Jenss
556baf07a1 dist/tools/cppcheck: Allow individual files to be cppchecked 2017-10-10 10:59:02 -07:00
smlng
49a4dda7d2 tools: ignore vendor files on whitespace check 2017-09-20 15:26:10 +02:00
162478cd6d spelling: s/initialise/initialize/ 2017-09-05 11:04:25 +02:00
Joakim Nohlgård
503976c663 dist/tools/ethos: Build escaped packet in buffer before writing to UART
Significantly improves throughput and latency on FRDM-KW41Z.

Ping with a packet of size 100 yields a 30 ms roundtrip with this
patch, 177 ms without. Size 1000 ping before: 1160 ms, after: 188 ms
2017-08-18 08:12:44 +02:00
Sebastian Meiling
422b42ce65 Merge pull request #7338 from aabadie/edbg_remaining_boards
boards: use EDBG flasher with arduino-zero and saml21-xpro
2017-08-17 09:16:39 +02:00
kYc0o
b19fcba019 dist/tools/jlink: add flashing offset when set 2017-07-17 14:48:29 +02:00
b16118ab6e dist/tools/edbg: bump version to include support for SAML21J18A 2017-07-14 23:27:16 +02:00