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
Sören Tempel
24468bead6
fuzzing: Initialize
...
This adds a new subdirectory called `fuzzing/` which will contain
applications for fuzzing various RIOT network modules in the future.
This subdirectory is heavily inspired by the `examples/` subdirectory.
The fuzzing applications use AFL as a fuzzer. Each application contains
Makefiles, source code, and an input corpus used by AFL to generate
input for fuzzing.
2020-04-17 17:11:15 +02:00
Benjamin Valentin
0943f867db
dist/tools: add sliptty to host-tools
2020-04-16 23:59:31 +02:00
benpicco
ecd266f3d3
Merge pull request #13801 from miri64/tools/fix/start_network-interface-init
...
dist/tools/*/start_network.sh: ensure TUN/TAP interface
2020-04-08 12:51:03 +02:00
1aa6ce901e
dist/tools: add bossa version for nrf52
2020-04-08 09:58:21 +02:00
Benjamin Valentin
079aea8775
sliptty/start_network.sh: fix with DHCPv6
...
The `start_network.sh` script creates a `${TUN}` interface, so
the `${TAP}` variable will always be empty.
This means start_dhcpd() will always fail as the DHCPv6 script is lacking
an interface.
2020-04-07 21:15:07 +02:00
Benjamin Valentin
0e4fa19bda
sliptty/start_network.sh: don't default to DHCPv6
...
DHCPv6 is enabled by the `-d` option.
It should not be enabled in absence of this option.
2020-04-07 20:12:53 +02:00
Leandro Lanzieri
d60295db3c
Merge pull request #13720 from aabadie/pr/native_no_export
...
native: only export NATIVEINCLUDES in vars.inc.mk
2020-04-07 12:55:45 +02:00
010aca2638
Merge pull request #13719 from aabadie/pr/boards/flash_export_remove
...
boards*: remove remaining uses of export with some openocd related variables
2020-04-07 11:58:28 +02:00
benpicco
f6eacda9f8
Merge pull request #13609 from miri64/dhcpv6-pd_ia/feat/initial
...
dhcpv6-pd_ia: initial import of a DHCPv6 server bootstrapper
2020-04-03 20:40:38 +02:00
Martine S. Lenders
0c51285b9b
dist/tools: provide DHCPv6 server support for network setup scripts
2020-04-03 17:47:39 +02:00
Martine S. Lenders
e6510cb89e
dhcpv6-pd_ia: initial import of a DHCPv6 server bootstrapper
2020-04-03 17:32:51 +02:00
Leandro Lanzieri
98fd746656
dist/testrunner: Capture number of unittests that passed
2020-04-03 14:52:48 +02:00
Martine S. Lenders
d726af2cac
dist/tools/*/start_network.sh: ensure TUN/TAP interface
...
Previously, when the creation of the TUN/TAP interface failed in one of
the `start_network.sh` scripts, the script will fail with a cryptic
error like
> dist/tools/ethos/start_network.sh: 68: [: -eq: unexpected operator
This fix ensures, that the value of this variable checked is always set
such that in the error case, `ethos`/`sliptty` won't start.
2020-04-03 13:39:09 +02:00
Martine S. Lenders
e731397bae
dist/tools/tapsetup: fix deletion when UPLINK unset
2020-03-31 18:58:55 +02:00
Jose Alamos
e451570219
gnrc_netif: remove GNRC_NETIF_NUMOF macro
2020-03-26 11:12:23 +01:00
27811518a0
ci/buildsystem: ensure NATIVEINCLUDES is only exported in vars
2020-03-26 10:26:14 +01:00
405c0cfef5
makefiles/openocd: export OPENOCD_CMD_RESET_RUN only when required
2020-03-26 10:00:37 +01:00
0e86aae445
ci/buildsystem: ensure PRE_FLASH_CHECK_SCRIPT is not exported
2020-03-26 09:37:41 +01:00
08adbb283c
ci/buildsystem: ensure OPENOCD_PRE_FLASH_CMDS is not exported
2020-03-26 09:31:22 +01:00
4aa351c746
ci/buildsystem: ensure OPENOCD_PRE_VERIFY_CMDS is not exported
2020-03-26 09:31:21 +01:00
39ea73d48d
dist/testbed-support: use BINFILE for flashing on iotlab
...
This is a new feature in cli-tools v3 and is supported by all boards except wsn430 and firefly
2020-03-24 13:25:25 +01:00
Martine Lenders
522de7df5a
Merge pull request #13689 from benpicco/ethos_fix
...
dist/tools/ethos: fix typo for compiling baud rate 230400
2020-03-23 16:40:03 +01:00
Thomas Stilwell
41ffaed583
dist/tools/ethos: fix typo for compiling baud rate 230400
2020-03-23 16:01:00 +01:00
d18b77f6e5
dist/testbed-support: fix firefly board mapping
2020-03-23 10:21:54 +01:00
7d0c475113
Merge pull request #13486 from bergzand/pr/suit/ietf_v3
...
SUIT: Update to draft-ietf-v3
2020-03-20 14:44:29 +01:00
Benjamin Valentin
ac3e996252
tapsetup: provide --uplink option
...
Add an --uplink option to tapsetup to bridge the tap-network with an
IPv6 enabled uplink interface, providing IPv6-WAN connectivity to native.
2020-03-20 14:12:43 +01:00
829f5920f0
flake8: move exception from SUITv4 to SUITv3
...
Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
2020-03-19 22:56:01 +01:00
fb643b348b
dist/testrunner: add common function to check unittests
2020-03-19 10:39:33 +01:00
009a317b14
dist/tools/suit_v3: Add ietf-v3 manifest generator
...
Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
2020-03-18 14:13:12 +01:00
Francisco
efb113696d
Merge pull request #12304 from aabadie/pr/boards/arduino-mkr_stdio
...
boards/arduino-mkr: feather-m0: sodaq-*: provide stdio over USB and setup automatic flash with bossa
2020-03-18 11:24:17 +01:00
8814e60fd4
Merge pull request #10482 from miri64/pyterm/enh/try-reconnect-on-error
...
pyterm: try to reconnect on SerialException during connect
2020-03-18 11:23:22 +01:00
a91c4bf7e6
dist/testrunner: add optional delay before opening serial
...
This option is null by default but is useful when used with boards exposing their stdio over USB
2020-03-18 10:53:17 +01:00
Francisco Molina
a31003a23c
tests: add interactive_sync adapted to shell
2020-03-17 17:23:27 +01:00
Martine Lenders
34788abedf
Merge pull request #13618 from janosbrodbeck/pr/sliptty_shift_fix
...
sliptty/start_network.sh: fix if no argument is given
2020-03-11 19:07:27 +01:00
János Brodbeck
4cf4ac124f
sliptty/start_network.sh: fix if no argument is given
...
fix for 'shift: can't shift that many'
2020-03-11 16:47:00 +01:00
1e8037670b
Merge pull request #10420 from gschorcht/drivers_apds99xx
...
drivers: add driver for APDS99XX ambient light and proximity sensors
2020-03-11 16:27:53 +01:00
Martine Lenders
1aeae204c3
pyterm: return errno on OSError
2020-03-11 14:55:05 +01:00
Martine Lenders
7a9010fefa
pyterm: try to reconnect on SerialException during connect
...
This is what the user would do anyway.
2020-03-11 14:55:04 +01:00
Gunar Schorcht
bd3ccc4697
tools/codespell: ignore ALS (Ambient Light Sensing)
2020-03-11 14:21:47 +01:00
benpicco
d294e1d01c
Merge pull request #9572 from maribu/atmega-debug
...
On-Chip Debugging for AVR/ATmega based boards
2020-03-11 11:40:40 +01:00
Marian Buschsieweke
fa189c4c1d
dist/tools/avarice: Detect GDB automatically
...
While some users likely still use avr-gdb, more and more systems are starting
to use gdb-multiarch. In order to work in both cases, the script now just
checks which version is installed. (If both are installed, gdb-multiarch is
preferred.)
2020-03-11 10:51:40 +01:00
ad5b9d7faf
ci/buildsystem_check: force no export of JLINK_PRE_FLASH
2020-03-10 16:31:50 +01:00
5e85994abf
ci/buildsystem_check: force no export of JLINK_RESET_FILE
2020-03-10 16:30:57 +01:00
c586db5ae2
ci/buildsystem_check: ensure JLINK_IF is not exported
2020-03-10 16:29:20 +01:00
9c2e5c9b7c
ci/buildsystem_check: ensure JLINK_DEVICE is not exported
2020-03-10 16:28:26 +01:00
Marian Buschsieweke
edd93411fe
dist: De-duplicated AVR debug config & scripts
...
Use common debug.sh, debug_srv.sh and gdb.conf for all AVR boards.
2020-03-10 12:54:51 +01:00
980e06bcd6
ci/buildssytem: ensure PYOCD_ADAPTER_INIT is not exported
2020-03-08 15:12:44 +01:00
c27870face
ci/buildssytem: ensure FLASH_TARGET_TYPE is not exported
2020-03-08 15:12:44 +01:00
benpicco
2cc3d386fd
Merge pull request #13572 from miri64/sliptty/enh/global-addr
...
sliptty/start_network.sh: configure global address for SLIP interface
2020-03-08 15:04:45 +01:00
Martine S. Lenders
d43ff6df12
sliptty/start_network.sh: configure global address for SLIP interface
...
This way hosts without pre-configured IPv6 addresses can also reach
global addresses within a downstream network.
2020-03-06 11:45:05 +01:00
Martine S. Lenders
45ef9f9fe7
sliptty/start_network.sh: do not provide sliptty with -e argument
2020-03-06 11:44:42 +01:00
Martine S. Lenders
20ce69c361
sliptty/start_network.sh: add missing argument to usage
2020-03-06 11:39:37 +01:00
Benjamin Valentin
ed4d871835
dist/tools/cc2538-bsl: use upstream version
...
Automatically fetch the upstream version of cc2538-bsl.py instead
of maintaining our own fork of the tool.
fixes #13566
2020-03-06 11:13:21 +01:00
benpicco
0b1dce36ac
Merge pull request #10477 from miri64/sliptty/feat/initial
...
sliptty: introduce a new SLIP to TUN tool
2020-03-05 18:08:40 +01:00
Martine Lenders
917ba19b35
sliptty: introduce a new SLIP to TUN tool
2020-03-05 15:55:10 +01:00
af3cc3b476
dist/testbed-support: fix iotlab-term target
2020-03-05 09:00:09 +01:00
5d84dd9061
testbed-support: add compatibility with cli-tools v3
2020-03-05 09:00:08 +01:00
Karl Fessel
563f4f6d9d
tools/backport_pr: Add Token Scope check
2020-03-04 14:30:12 +01:00
Kevin "Tristate Tom" Weiss
21395f0396
Merge pull request #13514 from benpicco/cc2538-bsl-fix
...
cc2538-bsl.py: fix ERROR: string argument without an encoding
2020-03-04 09:53:13 +01:00
ca3c256e49
Merge pull request #13430 from kaspar030/split_static_tests
...
dist: factor out static tests from build_and_test.sh
2020-03-03 18:41:25 +01:00
Martine Lenders
47eeafc553
Merge pull request #13178 from miri64/dist/fix/iotlab-improvements
...
dist/testbed-support: several improvements
2020-03-03 18:39:26 +01:00
95d607b54d
Merge pull request #13480 from aabadie/pr/tools/openocd_export_variables
...
tools/openocd: export configuration variables only to required targets
2020-03-03 18:16:05 +01:00
Martine S. Lenders
d455662a02
dist/testbed-support: Make tmux optional with iotlab-term
2020-03-03 15:24:02 +01:00
Martine S. Lenders
59ecc48eb6
dist/testbed-support: Wait for flash to be done when provided with term
...
Compare https://github.com/RIOT-OS/RIOT/pull/12468
2020-03-03 15:24:01 +01:00
Martine S. Lenders
2fec1f7adc
dist/testbed-support: Use IOTLAB_EXP_ID when trying to login at site
2020-03-03 15:24:00 +01:00
Martine S. Lenders
d169a6ac9f
dist/testbed-support: Fix IOTLAB_SITE determination
2020-03-03 15:24:00 +01:00
f7bb189d3e
dist/tools/ci/static_tests.sh: tag base branch for Murdock
2020-03-03 14:38:13 +01:00
294b999d34
dist/tools/ci/static_tests.sh: fix shellcheck errors
2020-03-03 14:38:13 +01:00
a9768151dd
ci/buildssytem: ensure APPDEPS not exported
2020-03-03 14:19:55 +01:00
b27ae335af
ci/buildsystem_check: ensure OPENOCD_ADAPTER_INIT is not exported
2020-03-03 11:42:20 +01:00
39733a5c30
ci/buildsystem_check: ensure OPENOCD_RESET... is not exported
2020-03-03 11:42:19 +01:00
Benjamin Valentin
ffc28c4b0f
cc2538-bsl.py: fix python3 error
...
Fix the
ERROR: string argument without an encoding
error that would appear without `python3-magic` library installed.
2020-02-29 02:24:43 +01:00
Francisco
5af4c5a9c5
Merge pull request #13470 from kfessel/fix13179
...
boards/nucleo-f767zi: Fix13179 make nucleo-f767zi debuggable again
2020-02-28 17:42:10 +01:00
Karl Fessel
f00f1254ec
tools/openocd: Fix Flash probing for nucleo-f747zi
2020-02-28 13:53:20 +01:00
Karl Fessel
979b4d5cf7
Revert "boards/nucleo-f767zi: add correct flash bank openocd config"
...
This reverts commits:
- 1dec5ba61b
- 53f60db66f
2020-02-28 13:51:58 +01:00
Benjamin Valentin
541265ee79
cc2538-bsl.py: use python3
...
support for python2 has ended and the script works just as well
with python3.
2020-02-27 14:17:37 +01:00
ef8daaf7be
suit: remove moran-v4 version of the parser
...
Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
2020-02-26 14:54:16 +01:00
Martine S. Lenders
21807d40a5
start_networking.sh: add capability to not start uhcpd
...
As we now also support DHCPv6 we might want to use the setup-routine of
start_networking.sh but not start the UHCP server.
2020-02-26 12:40:03 +01:00
09538c5a75
dist: split out static tests from build_and_test.sh
2020-02-26 12:36:50 +01:00
f451eb692c
Merge pull request #13452 from aabadie/pr/tools/openocd_config_export
...
tools/openocd: only export OPENOCD_CONFIG to required targets
2020-02-25 15:11:38 +01:00
785052e410
Merge pull request #13468 from aabadie/pr/tools/bossa_rework
...
tools/bossa: split between 1.8 and 1.9 versions
2020-02-25 13:32:38 +01:00
d5e13fe4fa
dist/tools/bossa-1.9: add version 1.9.1
2020-02-25 11:49:10 +01:00
e16a9753d9
dist/tools/bossa: move to bossa-1.8 directory
2020-02-25 11:47:32 +01:00
e119bf6681
Merge pull request #13080 from aabadie/pr/make/remove_useless_exports_all
...
make: even more useless exports removed
2020-02-25 11:30:03 +01:00
fadd361a67
Merge pull request #12574 from aabadie/pr/tools/codespell_ignore_list
...
tools/codespell: improve ignored words list + enable colored output
2020-02-25 11:09:41 +01:00
dca7d96148
ci/buildsystem_sanity: ensure TARGET_ARCH no export
2020-02-25 09:42:12 +01:00
2e7202ef2e
ci/buildsystem_sanity: ensure UNDEF not exported
2020-02-25 09:40:34 +01:00
benpicco
4671fd2fe4
Merge pull request #10475 from chrysn-pull-requests/openocd-for-stk3700
...
boards/any silabs: Allow selecting OpenOCD
2020-02-24 19:12:43 +01:00
99d1404d2f
ci/buildsystem_check: ensure OPENOCD_CONFIG is not exported
2020-02-24 10:04:12 +01:00
bd081cd980
tools/openocd: remove default OPENOCD_CONFIG value
...
The default value is already set in openocd.inc.mk
2020-02-24 10:04:11 +01:00
Gunar Schorcht
b132698cd5
cpu/esp*: move parition table tool to dist/tools/esptool
...
The same tool 'gen_esp32part.py' is used for the generation of partition tables on ESP8266 as well as n ESP32. The tool is therefore added to 'dist/tools/esptool'
2020-02-21 09:09:08 +01:00
562cc9007c
tools/packer: adapt for Ubuntu 18.04
...
This change is also a complete refactoring of the generation of the vagrant image
2020-02-19 19:23:07 +01:00
Jose Alamos
eaf2fecd20
vera++: remove non-zero exit code
2020-02-18 19:53:08 +01:00
Sebastian Meiling
2aaf811d84
Merge pull request #9778 from jia200x/pr/vera++
...
style-check/vera++: add style validator and scripts
2020-02-18 10:04:38 +01:00
Jose Alamos
d0b13281d8
ci: invoke vera++ from CI
2020-02-14 14:17:17 +01:00
Jose Alamos
c455efba36
vera++: add README file
2020-02-14 14:17:17 +01:00
Jose Alamos
6057d1fba9
vera++: add check.sh script
2020-02-14 14:17:17 +01:00
Jose Alamos
6352c3cf48
style-check/vera++: add RIOT vera++ files
2020-02-14 14:17:16 +01:00
chrysn
1dbf07f926
openocd: Add instructions for overriding OPENOCD
2020-02-14 09:42:20 +01:00
chrysn
ac8ed1eb13
openocd: Allow using OpenOCD-shipped configs
...
OpenOCD already ships config files for the EFM32 and EFR32 family, no
need to duplicate them in RIOT; this removes the "file exists" check for
files that are clearly OpenOCD-shipped board configurations, as the
script can't (and shouldn't) know OpenOCD's include paths.
2020-02-14 09:24:25 +01:00
077bf8aa73
tools/toolchain_version: remove extra underlying -
2020-02-13 10:54:42 +01:00
acf3ea0636
tools/codespell: enable colored output
2020-02-12 11:22:22 +01:00
19fb4bbcb7
tools/codespell: use file for setting ignored words
2020-02-12 11:22:22 +01:00
ab9c67e621
Merge pull request #13257 from fjmolinas/pr_creating_boards_md
...
doc/doxygen: add creating boards doc
2020-02-12 08:40:53 +01:00
f1799b9910
dist/tools/codespell: add interactive mode
2020-02-11 13:23:47 +01:00
Francisco Molina
e86a5d43ed
dist/tools/buildsystem_sanity_check: exclude .md files
...
Exclude .md files from check_cpu_cpu_model_defined_in_makefile_features
2020-02-05 14:25:40 +01:00
5d5cee0fa5
ci/buildsystem_sanity: ensure not export USEMODULE_INCLUDES
2020-02-05 10:27:58 +01:00
ad234d1f38
ci/buildsystem_sanity_check: ensure USEMODULE is not exported
2020-02-05 10:27:58 +01:00
Benjamin Valentin
baea542532
tools/edbg: update to latest upstream version
...
This version has changed the target names, so add a edbg-devices.inc.mk
to automatically select the right target.
2020-01-31 09:35:27 +01:00
98995f685b
Merge pull request #13179 from fjmolinas/pr_openocd_stm32f7_probe
...
boards/nucleo-f767zi: add correct flash bank openocd config
2020-01-28 10:48:23 +01:00
Francisco Molina
53f60db66f
dist/tools/openocd/openocd.sh: add FLASH_BANK
...
Allow specifying index of `flash bank` to read configuration from
in cases where the configuration provided in openocd is incorrect.
This is the case for the majority of stm32 boards where it relies
on `flash probe` to get the correct value.
2020-01-27 22:32:00 +01:00
8509e1e213
Merge pull request #13119 from nmeum/pr/ssp_random_canary
...
sys/spp: randomize canary value on each build
2020-01-20 20:56:16 +01:00
Sören Tempel
1e52ac21e4
tools: add tool for generating random hexadecimal values
...
This tool generates a random hexadecimal value of a given maximum size.
This is useful for generating random canary values during compile-time
for the ssp module which currently uses a constant value.
2020-01-20 14:51:26 +01:00
benpicco
8a99824e66
Merge pull request #11095 from benpicco/pyterm_sleep
...
pyterm: add /sleep function
2020-01-15 18:25:29 +01:00
Leandro Lanzieri
50f1b1423a
Merge pull request #12999 from fjmolinas/pr_native_makefile_include_explicit_path
...
boards: use explicit paths for file inclusion
2020-01-13 16:00:48 +01:00
Francisco Molina
6a0eaec82f
dist/tools/buildsystem_sanity_check: check \ not in boards/
2020-01-13 12:43:36 +01:00
9de6047097
dist/tools: add support for flatc compiler
2020-01-13 09:41:22 +01:00
8416974b3c
Merge pull request #13074 from fjmolinas/pr_riotboot_gen_hdr_type
...
dist/tools/riotboot_gen_hdr/genhdr: use unsigned long
2020-01-10 13:38:37 +01:00
Francisco Molina
d2c99989dc
dist/tools/riotboot_gen_hdr/genhdr: use unsigned long
2020-01-10 12:56:07 +01:00
c6a2b39a0b
testrunner: allow setting custom delay before reset
...
On some boards, such as hifive1b, resetting right after flashing could crash the running firmware
2020-01-10 08:34:17 +01:00
Gaëtan Harter
f08116f3ce
dist/tools/*: adapt to new state file targets
...
Prepare for handling pkg state with files. So it requires having the
path defined before declaring targets. In addition, it cleans up the
old git-download target.
2020-01-08 20:55:19 +01:00
ff285cb3e0
Merge pull request #13042 from fjmolinas/pr_compile_and_test_args
...
dist/tools/compile_and_test_for_board: pass parser as main arg
2020-01-08 09:01:14 +01:00
Francisco Molina
413f401b97
dist/tools/compile_and_test_for_board: pass parser as main arg
2020-01-08 08:32:42 +01:00
Juan Carrano
02b72ab385
print_toolchain_versions: print system and make's default shell.
...
Some systems use dash as system shell, others use bash. The shell used
by make can also be different, and unrelated to the system shell.
Differences in this variable can cause problems when testing PRs and
reporting bugs.
The default shell is important system information that should be reported.
2020-01-07 09:28:46 +01:00
Francisco
2729580cf1
Merge pull request #13027 from gschorcht/dist/tools/esp8266_version_check
...
dist/tools/ci: print toolchain version update for esp8266
2020-01-06 17:31:00 +01:00
Gunar Schorcht
0252af6572
dist/tools/ci: print toolchain version update for esp8266
...
The new ESP8266 port in PR #11108 requires a different tool chain than the previous implementation. The version check must be updated accordingly.
2020-01-04 17:23:28 +01:00
Francisco
f6f4469542
Merge pull request #11889 from miri64/tapsetup/enh/sudo
...
tapsetup: require to be executed with sudo
2020-01-04 10:43:06 +01:00
Martine S. Lenders
08b11d424d
tapsetup: require to be executed with sudo
2020-01-03 21:00:54 +01:00
970008a74c
ci/build_system_sanity_check: check LINKFLAGS not exported
2020-01-03 16:07:15 +01:00
ac33697af7
tools/compile_test_board: allow use of wildcards for applications
2019-12-19 15:58:47 +01:00
70e6e0aedf
Merge pull request #12862 from fjmolinas/pr_dont_reset_sync
...
dist/pythonlibs/testrunner: reset before term
2019-12-19 14:42:46 +01:00
Francisco Molina
a77594a348
dist/pythonlibs/testrunner: reset before term
...
For some boards `make reset` is only possible if a serial connection
is not already open or its execution might disrupt it. This
causes some tests to fail since before running a test the board
is reset.
`make reset` is currently used as a synchronization mechanism between
the application and the test script. With `test_utils_interactive_sync`
this is no longer needed so call `make reset` before `cleanterm` instead
of after when `test_utils_interactive_sync` is used.
Allow setting TESTRUNNER_RESET_AFTER_TERM=1 to keep the previous
behaviour for `examples/%/tests`.
2019-12-19 09:32:37 +01:00
Dylan Laduranty
bd7f105428
Merge pull request #12978 from smlng/pr_freebsd_osprint
...
tools: correctly detect and print FreeBSD OS
2019-12-18 14:56:57 +01:00
Sebastian Meiling
c185307025
tools: correctly detect and print FreeBSD OS
...
Currently the `print_toolchain_versions` script only supports Linux
and Apple macOS when printing OS name and version. This adds support
for FreeBSD.
2019-12-18 10:25:29 +01:00
Sebastian Meiling
5eee821f6e
makefiles: move exports to vars.inc.mk
2019-12-18 10:07:50 +01:00
211cec8b3e
tools/buildsystem_check: exclude tests/external_board_native path
...
This test application must act as a regular application to showcase how to provide a board support from an external directory
2019-12-16 15:35:06 +01:00
Gaëtan Harter
41a891f284
tools: use 'BOARDSDIR' for the boards directory
...
Replace uses of 'RIOTBOARD' by 'BOARDSDIR' for tools.
2019-12-16 15:35:04 +01:00
55ef046728
dist/testrunner: make interactive test retries/delay configurable
2019-12-12 09:44:16 +01:00
Sebastian Meiling
80d86b42ee
tools/kconfig: replace GNU cp -t with UNIX cp
...
UNIX `cp` command does not have the `-t` option like its GNU variant.
Hence, it usage breaks building RIOT e.g. on FreeBSD.
2019-12-05 09:12:33 +01:00
benpicco
61353e04eb
Merge pull request #12860 from aabadie/pr/tools/ethos_fix_warning
...
tools/ethos: fix compilation warning in strncpy
2019-12-03 15:08:36 +01:00
Francisco
372ae95d28
Merge pull request #12628 from aabadie/pr/make/develhelp_cleanup
...
make/develhelp: make usage consistent + add ci check
2019-11-28 09:26:52 +01:00
Gaëtan Harter
eb9cb198a0
testrunner: auto sync with test_utils_interactive_sync if present
...
Automatically call the test_utils_interactive_sync synchronization if it
is used.
2019-11-27 15:07:42 +01:00
abc99024df
tools/ethos: fix compilation warning in strncpy
2019-11-26 16:26:35 +01:00
Martine S. Lenders
ccc10432be
dist/tools/ci/print_toolchain_versions.sh: add ccache
2019-11-26 09:28:28 +01:00
Martine Lenders
95c6a785de
Merge pull request #12695 from leandrolanzieri/pr/dist/tools/add_kconfiglib
...
dist/tools: Add Kconfiglib
2019-11-25 11:51:02 +01:00
31fe89e4a2
dist/tools/uhcpd: fix typos
2019-11-23 22:39:37 +01:00
5c92411b3e
dist/tools/pic32prog: fix typos
2019-11-23 22:39:37 +01:00
801c5e3dd5
dist/tools/packer: fix typos
2019-11-23 22:39:37 +01:00
f012f88c2b
dist/tools/lazysponge: fix typos
2019-11-23 22:39:37 +01:00
f3538a2248
dist/tools/buildsystem_sanity_check: fix typos
2019-11-23 22:39:37 +01:00
09e8e1f612
dist/tools/backport_pr: fix typos
2019-11-23 22:39:37 +01:00
Francois Berder
4a31f94cfc
many typo fixes
...
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
2019-11-23 22:39:07 +01:00
8a76acf060
Merge pull request #12706 from fjmolinas/pr_fix_flake8
...
RIOT: fix PEP8 errors
2019-11-23 06:47:34 +01:00
Francisco Molina
2e8968fa17
dist/tools/pyterm/pyterm: fix PEP8 F841, unused variable
2019-11-22 11:47:49 +01:00
Francisco Molina
d2e90b2370
dist/tools/ethos/ethos.c: remove unusued var 'escaped'
2019-11-21 11:58:07 +01:00
Francisco Molina
2202b71f99
flake8: fix PEP8 overidentation E127
2019-11-21 10:11:56 +01:00
Leandro Lanzieri
b642f2ea23
dist/tools: Add kconfiglib
...
Kconfiglib is a Kconfig implementation in Python 2/3.
See https://github.com/ulfalizer/Kconfiglib
2019-11-19 17:46:38 +01:00
588766ab27
Merge pull request #12733 from fjmolinas/pr_jlink_serial
...
makefiles/tools/jlink.inc.mk: DEBUG_ADAPTER_ID as JLINK_SERIAL
2019-11-18 13:47:26 +01:00
Francisco Molina
f9ebc8658f
dist/tools/jlink: cleanup doc
2019-11-18 13:04:42 +01:00
Kevin "Tristate Tom" Weiss
be39169bd4
Merge pull request #11108 from gschorcht/cpu/esp8266/esp-idf/pr
...
cpu/esp8266: complete reimplementation based on ESP8266 RTOS SDK
2019-11-18 09:34:49 +01:00
Gunar Schorcht
555a7040db
cpu/esp8266: reset tool to allow automatic tests
2019-11-14 13:58:48 +01:00
Gunar Schorcht
fe028455e5
cpu/esp8266: esptool.py is provided as tool
...
The modified version esptool.py from RTOS SDK that is required for flashing an image, is now placed in `dist/tools/esptool.py` and used directly from there. The advantage is that `esptool.py` hasn't to be installed explicitly anymore. Having RIOT is enough. The documentation is adapted accordingly. The oly prerequisite is that python and the pyserial module are installed.
2019-11-14 13:58:48 +01:00
Benjamin Valentin
bff06a4d64
tools: add add_insufficient_memory_board.sh script
...
This adds a script that automatically compiles all examples & tests for a given
board and updates Makefile.ci if necessary.
2019-11-12 13:52:15 +01:00
86bd4d98a5
tools/build_system_sanity_check: add check for DEVELHELP
...
This variable should be set directly as it's hanbled after in Makefile.include, and not directly via CFLAGS
2019-11-06 16:32:47 +01:00
d69254b9df
tools/buildsystem_sanity_check: add check for APPLICATION in tests
...
This check verifies the APPLICATION variable is not set by tests application Makefiles. These applications should include the common test Makefile, where this variable is automatically set
2019-11-05 07:59:57 +01:00
Marian Buschsieweke
809d74bca6
dist/tools: Added script for C11 atomics compat
...
Added a script to determine the sizes of the default C11 atomic types and
generate an C++ header with preprocessor defines to access the sizes of the
types and an integer type of the same size (and therefore alignment
requirements).
2019-10-24 23:08:35 +02:00
050c077be7
dist/tools/codespell: update ignore list
...
changed wan -> WAN, codespell help says:
"Words are case sensitive based on how they are written in the dictionary file"
Thus WAN doesn't match but "wan" does.
Also added "dout" (short form of digital out).
2019-10-24 16:47:00 +02:00
62c244608d
tools/pr_check: add REMOVEME in keyword filtered
2019-10-22 08:07:40 +02:00
Francisco Molina
fb0f64630b
dist/buildsystem_sanity_check: add check for CPU_FAM/ARCH definition
...
- Check that CPU_FAM/ARCH is only exported in vars.inc.mk
2019-10-18 08:55:33 +02:00
Francisco
01779508d6
Merge pull request #12394 from aabadie/pr/make/iotlab_support_fix
...
make/testbed-support: fix error with FLASHFILE not defined
2019-10-17 23:21:12 +02:00
Marian Buschsieweke
b6d23b56ae
dist/tools: Check BOARD_INSUFFICIENT_MEMORY usage
...
- Enforce that all applications do not manage BOARD_INSUFFICIENT_MEMORY in the
Makefile
- Match also "BOARD_INSUFFICIENT_MEMORY +=", not only
"BOARD_INSUFFICIENT_MEMORY :=" or "BOARD_INSUFFICIENT_MEMORY =".
2019-10-17 15:30:21 +02:00
Sebastian Meiling
e00f7a4198
Merge pull request #11767 from MrKevinWeiss/pr/remove/philip
...
dist/tests/philip: Removed old code and tests
2019-10-17 08:45:40 +02:00
Francisco
02ae803acc
Merge pull request #12395 from aabadie/pr/dist/testbed-support-add-nrf52840-mdk
...
dist/testbed-support: add nrf52{840,832}mdk in IOTLAB_NODE targets
2019-10-16 15:59:31 +02:00
MrKevinWeiss
7a0e7e378d
dist/tests/if_lib: Remove if_lib since we use philip_pal
...
All if_lib tests are no longer in use so the if_lib is obsolete.
It is replace by robot framework tests, riot_pal, and philip_pal.
Check the RF_Tests repo for more information
2019-10-16 15:57:23 +02:00
bdd3fed598
dist/testbed-support: add nrf52832mdk in IOTLAB_NODE targets
2019-10-16 11:57:21 +02:00
ffc4c84faa
dist/testbed-support: boards: remove useless IOTLAB_FLASHFILE
2019-10-16 11:44:59 +02:00
benpicco
c9b76a9585
Merge pull request #12406 from maribu/pain_in_the_ass
...
examples: Moved CI infos to Makefile.ci
2019-10-15 14:40:40 +02:00
benpicco
10824e1cd0
Merge pull request #12251 from maz3max/bmp-tool
...
Add helper script for Black Magic Probe
2019-10-15 13:39:08 +02:00
Maximilian Deubel
30f12c9058
Add helper script for Black Magic Probe
...
This script can detect [Black Magic Probes](https://github.com/blacksphere/blackmagic/wiki ) and act as a flashloader (and more).
It is compatible with Linux and macOS.
All important options that can be set via the monitor command are available as arguments.
Makefiles for using `make flash`, `make erase`, `make debug` and `make term` with the script are included.
2019-10-15 12:58:24 +02:00
Marian Buschsieweke
2c996057c4
dist/tools: Check BOARD_INSUFFICIENT_MEMORY usage
...
Enforce BOARD_INSUFFICIENT_MEMORY is not managed in the Makefile in the examples
2019-10-15 09:55:07 +02:00
3e3768140c
tools/ci: fix typo in build_and_test.sh script
2019-10-10 15:48:18 +02:00
5d408d68c4
ci: add codespell check to track typos
2019-10-10 15:48:18 +02:00
Francisco
315e455643
Merge pull request #12413 from cladmi/pr/compile_and_test_for_board/flash_targets
...
tools/compile_and_test_for_board: allow setting the flash targets
2019-10-10 12:46:41 +02:00
Gaëtan Harter
7f2f0b6616
tools/compile_and_test_for_board: allow setting the flash targets
...
This allow configuring the flash targets in the same way as the
compilation and test targets.
This is part of trying to flash with docker using a different flash target.
2019-10-10 11:39:00 +02:00
5ab8d92702
Merge pull request #11818 from kaspar030/suit-pr
...
sys/suit: initial support for SUIT firmware updates
2019-10-10 10:38:01 +02:00
Gaëtan Harter
7ac30e471c
boards/slwstk6000b-*: move CPU_MODEL definition to Makefile.features
...
This is still currently a hack to hardcode it as the value can be deduced
from the `BOARD_MODULE` daughter board name.
But it requires more cleanup and could come in a separate step.
Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-10-09 18:51:57 +02:00
b899a9f362
examples/suit_update: add SUIT draft v4 example & test
...
This commit adds an example application showcasing SUIT draft v4
firmware updates.
It includes a test script suitable for local or CI testing.
Co-authored-by: Alexandre Abadie <alexandre.abadie@inria.fr>
Co-authored-by: Koen Zandberg <koen@bergzand.net>
Co-authored-by: Francisco Molina <femolina@uc.cl>
2019-10-09 13:51:29 +02:00
b389b881cf
dist/testbed-support: add nrf52840mdk in IOTLAB_NODE targets
2019-10-08 20:10:08 +02:00
Francisco
1c5c027ee7
Merge pull request #12004 from cladmi/pr/make/dependencies/debug_targets
...
make: add targets to debug dependencies variables
2019-10-08 17:41:34 +02:00
Gaëtan Harter
ddf3874995
boards/slwstk6000b: migrate to use a common/slwstk6000b
...
Migrate the board to be implemented with a common/slwstk6000b.
It is a pre step for splitting the board for each "BOARD_MODULE".
2019-10-08 15:36:09 +02:00
Gaëtan Harter
7d0b922e98
buildsystem_sanity_check: script to save deps resolution variables
...
Add a script saving all applications and boards dependency resolution
variables and also aggregated files to compare between both dependencies
handling.
It is slow but should dump everything.
2019-10-07 14:47:34 +02:00
db96f31a54
tools/flake8: exclude suit_manifest_encoder_04 script
...
This script is copied as is from an external repository:
https://github.com/ARMmbed/suit-manifest-generator/blob/ex-gen-moran-suit-manifest-04/example-generator-moran-suit-manifest-04/make-examples.py
2019-10-04 15:45:22 +02:00
7f6862c2d3
suit: add SUIT draft v4 manifest tools
...
This commit adds support tools used by the SUIT firmware upgrade module.
Co-authored-by: Alexandre Abadie <alexandre.abadie@inria.fr>
Co-authored-by: Koen Zandberg <koen@bergzand.net>
Co-authored-by: Francisco Molina <femolina@uc.cl>
2019-10-04 15:45:22 +02:00
0935a5ff20
dist/tools: use external setsid tool for OSX
2019-10-03 12:43:41 +02:00
benpicco
29de470281
Merge pull request #12337 from cladmi/pr/make/cpu/makefile_features/static_test
...
dist/buildsystem_sanity_check: add check for CPU/CPU_MODEL migration
2019-10-01 20:00:32 +02:00
Gaëtan Harter
cbfab679d3
dist/buildsystem_sanity_check: add check for CPU/CPU_MODEL definition
...
CPU and CPU_MODEL variables must now be defined by
`boards/**/Makefile.features` or 'cpu/CPU/Makefile.features' files
instead of `**/Makefile.include.
Currently blacklist the slwstk6000b that still define
'CPU_MODEL' in a file that is not a 'Makefile.features.
This allows getting this sanity check script in master
This allow using the variables when parsing dependencies.
2019-10-01 16:02:03 +02:00
Gaëtan Harter
7064f7e0ab
dist/buildsystem_sanity_check: add check for included CPU Makefiles
...
CPU Makefile.include/Makefile.features/Makefile.dep must not be
included by the board directly anymore.
2019-10-01 15:57:42 +02:00
Gaëtan Harter
c75d5120b4
testrunner: use 'cleanterm' for testing
...
Use a clean terminal without added decoration on the output for testing.
2019-10-01 14:13:02 +02:00
Gaëtan Harter
a514c9bc12
jlink.sh: use PYTERMFLAGS
...
Use PYTERMFLAGS for configuring the terminal.
2019-10-01 14:13:02 +02:00
6acb523d35
list-ttys: Add punctuation between name and serial
2019-09-30 18:28:32 +02:00
68aae9c848
Merge pull request #12262 from cladmi/pr/cflags/fix_spaces_and_rebuild
...
makefiles: do not remove defines from CFLAGS
2019-09-28 09:42:56 +02:00
cladmi
e42b4cc75f
dist/tools/cmake: handle strings with \"
...
CMake quoted strings do not accept having \ or " inside. So use the
"bracket argument" format.
I migrated all variables to use this format.
Migrate to 'printf' to not rely on having \" inside the string everywhere.
This prepares for having macros defined in the CFLAGS again.
2019-09-27 19:28:32 +02:00
Benjamin Valentin
6a08a78d77
dist/tools/pyterm: drop loglevel from putput
...
The loglevel on pyterm is always INFO.
Drop it to remove clutter from the output.
2019-09-27 15:16:06 +02:00
Gaëtan Harter
d852ca2b21
pic32prog: add pic32prog programming tool
...
pic32prog is a program for flashing pic32 boards from command line on Linux.
It works with:
* Microchip PICkit2
* Microchip PICkit3 with script firmware.
* Other ones: https://github.com/sergev/pic32prog/wiki
2019-09-24 17:43:12 +02:00
2e9f443a5b
tools/buildsystem_check: add deprecated pattern for board ci whitelist
2019-09-16 19:02:54 +02:00
0ae86d7775
Merge pull request #12242 from smlng/tools_shebang
...
tools: fix shebang in scripts
2019-09-16 17:23:50 +02:00
Sebastian Meiling
9e870460fd
tools: fix shebang in packer/setup.sh
...
Change shebang in script from `/bin/bash` to `/usr/bin/env bash`,
which fixed problems when `bash` is not available in standard location,
e.g., on non-Linux OSes such as FreeBSD.
2019-09-16 11:27:36 +02:00
Sebastian Meiling
364c831bf3
tools: fix shebang in openocd.sh
...
Change shebang in script from `/bin/bash` to `/usr/bin/env bash`,
which fixed problems when `bash` is not available in standard location,
e.g., on non-Linux OSes such as FreeBSD.
2019-09-16 11:27:33 +02:00
Sebastian Meiling
277fbd8386
tools: fix shebang in has_minimal_version.sh
...
Change shebang in script from `/bin/bash` to `/usr/bin/env bash`,
which fixed problems when `bash` is not available in standard location,
e.g., on non-Linux OSes such as FreeBSD.
2019-09-16 11:27:15 +02:00
Sebastian Meiling
079b2246bd
tools: fix shebang for static-test.sh
...
Change shebang in static-test.sh from `/bin/bash` to `/usr/bin/env bash`
This fixes problems when `bash` is not available in standard location,
but e.g. in `/usr/local/bin/` as on FreeBSD.
2019-09-16 10:23:11 +02:00
Gaëtan Harter
23d743926c
dist/tools/buildsystem_sanity_check: check no PORT exports
...
Add sanity check for removed exports.
2019-09-12 14:44:00 +02:00
Francisco
2d890db6af
Merge pull request #10440 from jcarrano/no-export-ports
...
makefiles: remove exports so that PORT is not evaluated if it's not needed.
2019-09-12 13:50:24 +02:00
Francisco Molina
f718cc581a
dist/tools/pyocd: add PYOCD_ADAPTER_INIT
...
- Pass parameters before flash, debug, reset
2019-09-12 08:13:28 +02:00
abd1cd51b7
Merge pull request #12120 from cladmi/pr/pyterm/configurable_repeat_command_on_empty_line
...
pyterm: configuring repeating command on empty line
2019-09-10 09:41:05 +02:00
9ea3b2e04f
dist/tools/pyterm: fix handling of reset ANSI escape code
2019-09-09 20:27:16 +02:00
9065f8358c
tools/openocd: correctly check reset_config variable value
...
This avoids the following warning message when running OpenOCD: 'openocd.sh: line 124: [: : integer expression expected'
2019-09-03 12:44:09 +02:00
Francisco Molina
900875c603
dist/tools/openocd: add OPENOCD_EXTRA_INIT_RESET
...
- Add a variable to add extra openocd commands before resetting
a board. These will not be called when `debug`, in contrast
to OPENOCD_CONFIG, OPENOCD_EXTRA_INIT and OPENOCD_ADAPTER_INIT.
- Add connect_assert_srst to reset config if
OPENOCD_RESET_USE_CONNECT_ASSERT_SRST=1
2019-09-02 14:53:51 +02:00
Gaëtan Harter
0fc38c58e8
pyterm: configuring repeating command on empty line
...
Allow configuring that it sends an empty newline when it receives a newline.
2019-08-29 15:15:57 +02:00
Gaëtan Harter
34f69245c3
makefiles: do not locally export compilation variables
...
These are already exported by `makefiles/vars.inc.mk`.
It is a prerequisite to allow handling compilation without global exports.
2019-08-29 10:35:36 +02:00
Sebastian Meiling
8e08748c60
Merge pull request #7654 from cladmi/pr/arduino_sketches.cpp
...
arduino/sketches: build sketches as a module
2019-08-21 15:22:45 +02:00
Gaëtan Harter
be30f072e2
sys/arduino/sketches: build sketches as a module
...
Generate a module for arduino sketches in a subfolder of BINDIR.
This prevents issues when doing concurrent builds or out of tree build with
readonly sources.
Declare all generated files as `BUILDDEPS` to be re-created after
`clean` on parrallel `clean all`.
2019-08-21 11:57:41 +02:00
Juan I Carrano
d2970332fc
Merge pull request #12009 from cladmi/pr/application/board_equal/bug
...
dist/tools/build_system_sanity_check: check BOARD set as ?=
2019-08-20 16:52:21 +02:00
Gaëtan Harter
e5e9d81cce
testrunner/utils: add helper for test_utils_interactive_sync
...
Add helper to do the synchronisation.
2019-08-15 12:26:28 +02:00
Gaëtan Harter
74fbf41517
dist/tools/build_system_sanity_check: check BOARD set as ?=
...
Applications Makefile must not set 'BOARD =' unconditionally but
'BOARD ?='
2019-08-14 17:23:18 +02:00
Sebastian Meiling
950b83e63e
Merge pull request #10252 from jcarrano/flake8-report-existence
...
tools/ci: correcly report flake8 version.
2019-08-14 11:11:50 +02:00
Martine Lenders
2f8234acb1
Merge pull request #11813 from aabadie/pr/tools/doccheck_detect_duplicate_defgroup
...
tools/doccheck: extend script to also check for Doxygen groups defined multiple times
2019-08-08 19:57:27 +02:00
Kees Bakker
c1d3128be3
dist/tools: add Coccinelle check for ARRAYSIZE
...
This Coccinelle script will warn when new code has the potential to use
the macro ARRAYSIZE instead of something like this
sizeof(some_array) / sizeof(some_array[0])
2019-08-07 21:55:41 +02:00
5837075150
tools/doccheck: optimize display of undefined groups
...
The printed variable is not computed if no undefined group is found
2019-08-07 10:33:03 +02:00
1876619bf9
tools/doccheck: add check for multiple group definition
2019-08-07 10:33:03 +02:00
Gaëtan Harter
25890c814a
compile_and_test_for_board: add --with-test-only
...
Add an option to only compile applications that have available test.
The target usage is when running hardware tests to save time by only
compiling what will be tested.
2019-08-02 14:35:05 +02:00
Gaëtan Harter
821c42f5b2
compile_and_test_for_board: add logger info for 'has_test'
...
Add a logger info printing if the application has a test.
2019-08-02 13:24:52 +02:00
Kevin "Bear Puncher" Weiss
f932999df4
Merge pull request #11853 from sanjuprakashk/testrunner-timeout
...
dist/pythonlibs/testrunner: dynamic changing of test timeout
2019-07-18 11:57:31 +02:00