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

642 Commits

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