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

452 Commits

Author SHA1 Message Date
1ec3c0a57a Revert "dist: cppcheck: switch back to 8 jobs"
This reverts commit ec97a94626.

(The commit seems to cause trouble. Furthermore, there's no reference to
either the issue or how it was solved in the original commit message).
2017-04-25 19:31:02 +02:00
Oleg Hahm
ec97a94626 dist: cppcheck: switch back to 8 jobs 2017-04-14 14:36:17 +02:00
Oleg Hahm
76e884e346 dist: ci: removed obsolete TODO regarding cppcheck 2017-04-14 14:36:17 +02:00
Oleg Hahm
2cb16c5ff4 dist: tunslip: fix cppcheck warnings 2017-04-14 14:36:16 +02:00
Oleg Hahm
3a304f10ee dist: enable cppcheck warnings for all files 2017-04-14 14:36:13 +02:00
6ef21a8fd3 dist: tools: print_toolchain_versions.sh: add cppcheck version 2017-04-06 14:20:23 +02:00
Neil Jones
65911f3499 cppcheck: Don't Run cppcheck on ASM files.
cppcheck doesn't understand ASM style comments beginning with '#' and tries to
parse them:

I get this error:
 cpu/mips_pic32_common/reset_mod.S:84: error (syntaxError): syntax error
from this line:
 beqz s1, init_resources # Branch if this is NOT an NMI exception.

If I place the comment inside C-style comments cppcheck passes, ie

 beqz s1, init_resources # /*Branch if this is NOT an NMI exception.*/

Note current in-tree ASM files fail cppcheck (they must have been added before
this check) for example:

cpu/lpc2387/asmfunc.s
2017-03-29 15:14:43 +01:00
Emmanuel Baccelli
9de3484c12 Doc: improved README for new boards in Vagrant 2017-03-28 20:22:47 +02:00
Martine Lenders
29842bb5e4 netdev2: rename to netdev and remove gnrc_netdev
With some minor hand-edits I used the following chain of commands:

```sh
git rm sys/include/net/gnrc/netdev.h
git grep --name-only -i netdev2 | \
        xargs sed -i -e 's/^\(NETDEV\)2\(.*\)\( [("]\)/\1\2 \3/g' \
                     -e 's/\(netdev\)2\(.*\)\( \/\*\*<\)/\1\2 \3/I' \
                     -e 's/\(netdev\)2/\1/gI'
git add -p
git commit --amend
git ls-tree --full-tree -r HEAD --name-only | \
        grep "netdev2" | xargs -I'{}' dirname '{}' | uniq | \
        grep "netdev2" | while read dir; do
                new_dir="$(echo "$dir" | sed "s/netdev2/netdev/g")"
                git mv -f "$dir" "$new_dir"
        done
git commit --amend
git ls-tree --full-tree -r HEAD --name-only | \
        grep "netdev2" | while read file; do
                new_file="$(echo "$file" | sed "s/netdev2/netdev/g")"
                git mv -f "$file" "$new_file"
        done
git commit --amend
git grep --name-only "\<drivers_netdev_netdev\>" | \
        xargs sed -i "s/\<drivers_netdev_netdev\>/drivers_netdev_api/g"
git add -p
git commit --amend
```
2017-03-15 09:31:20 +01:00
Oleg Hahm
44604a9ed5 tools: make doccheck check all files 2017-03-10 14:56:48 +01:00
Joakim Nohlgård
dcc37329df sys/vfs: A virtual file system (VFS) layer for RIOT
The VFS layer provides file system abstractions to allow using a unified
interface to access files from mounted file systems.
2017-03-07 17:59:57 +01:00
Joakim Nohlgård
5638359960 tools/externc: Remove #endif in extern C pattern match
Enable adding more C++ specifics inside the same ifdef block (e.g. sys/include/vfs.h)
2017-03-07 10:21:52 +01:00
Hauke Petersen
19bf9f8d0f dist/externc: exclude all (CPU) vendor headers 2017-03-07 08:55:16 +01:00
Hauke Petersen
0fb3ee3b9b dist/cppcheck: exclude only vendor headers 2017-03-07 08:55:15 +01:00
Thomas Eichinger
4aaf8dd616 tools/tapsetup: change default bridge name on macOS
The default bridge name used by tapsetup `bridge0` is already used
by the macOS. This changes the default to `bridge42`.
2017-02-23 14:57:36 -08:00
Joakim Nohlgård
9ed393426e dist/tools/cppcheck: Add missing hpp file name pattern 2017-02-16 17:09:25 +01:00
Neil Jones
ceb0fa9205 dist: update toolchain info script for mips 2017-02-09 15:54:59 +00:00
Joakim Nohlgård
4bc120f54d dist/tools/licenses: Add BSD 1 clause style license from newlib sys/features.h
Used in msp430-common
2017-02-08 16:23:50 +01:00
Jason Tran
de8c3f0a85 dist/tools/jlink: remove jlink confirmation prompt 2017-01-24 19:42:06 -08:00
Martine Lenders
819987c58c dist/tools: add release stats script 2017-01-24 14:35:07 +01:00
Martine Lenders
a5bdf0a831 Merge pull request #6407 from OlegHahm/header_guards
*: remove trailing underscores from header guards
2017-01-20 01:51:20 +01:00
Oleg Hahm
7ee7801c10 *: remove trailing underscores from header guards 2017-01-19 18:30:53 +01:00
Joakim Nohlgård
78e207bc33 dist/tools/ci: Fix command output formatting of last line 2017-01-19 14:13:36 +01:00
Cenk Gündoğan
4b05722477 dist/tools/ci: toolchain versions: fix output to show avr-libc 2017-01-19 14:13:36 +01:00
Joakim Nohlgård
05769dddee dist/tools/ci: toolchain versions: Fix heading formatting 2017-01-19 14:13:36 +01:00
Joakim Nohlgård
001a30ef4f dist/tools/ci: Add script for printing installed toolchain versions to CI log 2017-01-19 09:12:26 +01:00
d340cce157 Merge pull request #6310 from OlegHahm/pyterm_show_prompt
tools: pyterm: display received prompt immediately
2017-01-19 00:05:14 +01:00
Cenk Gündoğan
90e85ca1de Merge pull request #6389 from gebart/pr/ci-output-whitespace
CI: fix whitespace handling in command output
2017-01-18 20:10:47 +01:00
Oleg Hahm
3fb2984d2a tools: pyterm: display received prompt immediately 2017-01-18 19:54:10 +01:00
Andreas "Paul" Pauli
e0b6f16ddc cc2538-bsl.py: add chip id for cc2538em 2017-01-18 16:18:05 +01:00
Joakim Nohlgård
39d02c9ccf dist/tools/ci: Fix whitespace handling in command output
All newlines were stripped before and leading whitespace was trimmed
which made the output very difficult to read.
2017-01-17 13:00:37 +01:00
Antonio Galea
2fa4ad3833 reconnecting a USB-serial dongle under Linux might give permission errors until udev scripts complete 2017-01-15 16:59:36 +01:00
17b35f6ece dist: tools: git-cache: bump version
adds OSX fixes for md5sum, flock
2017-01-12 17:31:57 +01:00
26ace09ca8 Merge pull request #6321 from kaspar030/bump_gitcache
dist: tools: git-cache: bump to latest upstream
2017-01-11 18:43:08 +01:00
eecf43cd53 dist: tools: git-cache: update README 2017-01-11 16:07:42 +01:00
Martine Lenders
fea78bad60 Merge pull request #6309 from OlegHahm/pyterm_format_arg
tools: pyterm: specify custom format prefix via command line
2017-01-11 10:30:08 +01:00
b0dad94ab5 dist: tools: git-cache: bump to latest upstream 2017-01-11 01:02:56 +01:00
Martine Lenders
600fdb8f2c Merge pull request #5865 from gebart/pr/compile-test-py3
dist/tools/compile_test: Add Python3 support
2017-01-10 22:11:28 +01:00
Oleg Hahm
3a779b92fa tools: pyterm: specify format prefix via argument 2017-01-10 18:55:49 +01:00
Joakim Nohlgård
06092aaca5 dist/tools/compile_test: Add Python3 support
Tested with Python 2.7.12 and Python 3.4.5
2017-01-10 13:36:53 +01:00
Oleg Hahm
486ca73308 tools: pyterm: properly handle custom output fmt 2017-01-10 11:44:24 +01:00
Francisco Acosta
1ae6998752 Merge pull request #5677 from gebart/pr/fugly-tunslip6
dist/tools/tunslip: Fix some ugly code
2017-01-06 15:12:39 +01:00
Joakim Nohlgård
9b8485f21e dist/tools/tunslip6: Do not accept null chars as printable 2017-01-05 15:00:00 +01:00
Joakim Nohlgård
1c5b26c038 dist/tools/tunslip6: Change len to size_t in is_sensible_string 2017-01-05 15:00:00 +01:00
Joakim Nohlgård
9dfd4ccf11 dist/tools/tunslip6: Fix off by one on index in is_sensible_string 2017-01-05 15:00:00 +01:00
Joakim Nohlgård
fd3ff61747 dist/tools/tunslip6: Workaround for IPv6 packets mistaken as strings 2017-01-05 14:59:59 +01:00
Joakim Nohlgård
e3a5e16ffb dist/tools/tunslip: Make tunslip and tapslip6 compile again 2017-01-05 14:59:59 +01:00
Joakim Nohlgård
437e38b672 dist/tools/tunslip: fix a bunch of uglies and compile with -std=c99 2017-01-05 14:59:58 +01:00
Joakim Nohlgård
51f5b774da dist/tools/tunslip: Add clean Makefile target 2017-01-05 14:59:58 +01:00
Joakim Nohlgård
bb19a75e61 dist/tools/tunslip6: Add -Wall -Wextra -pedantic to CFLAGS 2017-01-05 14:59:58 +01:00
Joakim Nohlgård
fd8645c86c dist/tools/tunslip6: Replace goto with while 2017-01-05 14:59:58 +01:00
BytesGalore
bc60be10d0 git-cache: consider if git_cache dir is present 2017-01-04 17:10:48 +01:00
Cenk Gündoğan
63bfbfabec git-cache: bump to commit 5de20d6 from kaspar030/git-cache 2016-12-28 17:03:15 +01:00
Cenk Gündoğan
d785989d04 tools: static_tests.sh: rm dependency to 'riot' remote 2016-12-20 20:59:10 +01:00
610b8cf368 Merge pull request #5855 from cgundogan/pr/remove_travis
travis: remove .travis.yml and build scripts
2016-12-18 23:09:38 +01:00
2c02520f73 Merge pull request #6223 from haukepetersen/opt_samxyz21_structure
cpu/sam0: structural clean-up for sam[dlr]21 CPUs
2016-12-16 08:14:04 +01:00
Hauke Petersen
fcb1e68732 cpu/sam0: renamed sam21_common to sam0_common 2016-12-15 11:47:03 +01:00
e65541817c dist: tools: bump git-cache version (#6217) 2016-12-15 10:59:47 +01:00
Cenk Gündoğan
62420fb927 travis: make build_and_test.sh unrelated to travis 2016-11-29 18:38:43 +01:00
Cenk Gündoğan
1990726605 travis: remove superfluous config and script 2016-11-29 18:36:12 +01:00
Oleg Hahm
00942927a2 pyterm: log to stdout per default 2016-11-17 16:59:36 +01:00
Gaëtan Harter
778d47c600 dist/tools/uhcpd: add an option to bind to device
Adds '--bind-to-device' option to binds uhcpd listening socket to a device.
It allows running multiple uhcpd and so multiple border router on the same
computer.

This is used for IoT-LAB.

This option requires 'root' permissions as I currently didn't find an
alternative.
2016-11-09 16:01:29 +01:00
Matthias Miehl
3203a4b6f5 dist/tools/cppcheck: suppress negatives (uninitvar) (#5807) 2016-10-31 22:49:17 +01:00
Lucas Jenss
f7c28ccecd Improve execution of static-tests
Allow execution of static tests with the `make static-tests`
command and improve its output for the human reader
2016-10-20 09:28:59 +02:00
47b233143c Merge pull request #5909 from aabadie/cc2538_bsl_py3
dist/tools/cc2538-bsl: fixing pep8 and python 2 & 3 compatibility in cc2538 bsl script
2016-10-19 16:06:34 +02:00
Joakim Nohlgård
bee918b361 Merge pull request #5821 from makomi/tunslip
dist/tools/tunslip: fix cppcheck warnings
2016-10-14 08:47:43 +02:00
PeterKietzmann
c742f07989 doc/packer: add initial README 2016-10-13 17:15:53 +02:00
Peter Kietzmann
b15115cb10 Merge pull request #5828 from cgundogan/pr/packer
packer: initial packer configuration to build virtualbox/vagrant boxes
2016-10-13 16:42:38 +02:00
PeterKietzmann
49c1ed1d03 doc/vagrant: add information about changing the vagrant box 2016-10-13 15:03:06 +02:00
PeterKietzmann
aa149d41f6 doc/vagrant: remove information about provisioning 2016-10-13 14:34:36 +02:00
Cenk Gündoğan
1b70b48bc5 packer: intial conf. to generate virtualbox based vagrant box 2016-10-13 14:29:19 +02:00
4e882054aa dist/tools/cc2538-bsl: fixing pep8 and python 3 compatibility 2016-10-05 13:10:58 +02:00
Jeff Bortolotti
6b086e7ae2 dist: tools: jlink.sh: use printf for JLINK_*_FLASH to allow use of backslas 2016-09-30 19:10:01 +02:00
Cenk Gündoğan
9074c4d376 Merge pull request #5837 from gebart/pr/drone-0.5
drone: Update YAML file to Drone 0.5 format
2016-09-27 19:19:43 +02:00
Kees Bakker
bd2fbf040b dist/tools: exclude sam21_common cmsis include files 2016-09-21 20:40:49 +02:00
Cenk Gündoğan
9457703607 vagrant: minimize Vagrantfile and make it loadable
By parameterizing certain paths with `RIOTBASE`, it is possible to load
this Vagrantfile from other Vagrantfiles. This feature will be used by the
Tutorials repository, so that this Vagrantfile has no knowledge about
the tutorials, hence the deletion of the `tutorials` definition at this
place.
2016-09-21 10:22:35 +02:00
smlng
f9432cef4b minor typos in README corrected 2016-09-19 12:09:46 +02:00
Joakim Nohlgård
c6f280a104 dist/tools/drone-scripts: Delete because Drone can now use the Travis script 2016-09-11 14:41:42 +02:00
Sebastian Meiling
b4b1bb597a Merge pull request #5822 from cgundogan/pr/vagrant/add_info_about_vboxusers_group
vagrant: update README and add info about vboxusers group
2016-09-07 09:28:25 +02:00
Cenk Gündoğan
63b7cf475a vagrant: restructure 'addit. info.' in README 2016-09-06 16:54:05 +02:00
Cenk Gündoğan
39e2ad12bf vagrant: change RIOT-OS to RIOT in readme 2016-09-06 14:53:40 +02:00
Cenk Gündoğan
c75c9194d8 vagrant: update ubuntu version in readme 2016-09-06 14:52:53 +02:00
Thomas Eichinger
59bc1b46b7 dist/tools: include uname check for FreeBSD in genconfigheader
Analog to Darwin set `MD5SUM` to `md5 -r`.
2016-09-06 14:45:58 +02:00
Cenk Gündoğan
6e8d4dc686 vagrant: info about vboxusers group for USB access 2016-09-06 07:12:43 +02:00
Matthias Kolja Miehl
5456d6e2d2 dist/tools/tunslip: tapslip6: fix unusedVariable 2016-09-05 02:32:10 +02:00
Matthias Kolja Miehl
8cb5624655 dist/tools/tunslip: tapslip6: fix variableScope 2016-09-05 02:32:10 +02:00
Matthias Kolja Miehl
eb39aec480 dist/tools/tunslip: tunslip6: fix invalidPrintfArgType_uint
Since the argument type is 'long', the printf
format string has to be '%li' instead of '%lu'.
2016-09-05 02:32:10 +02:00
Matthias Kolja Miehl
652f5ef8b9 dist/tools/tunslip: tunslip6: fix variableScope 2016-09-05 02:32:10 +02:00
Matthias Kolja Miehl
c458f9958e dist/tools/tunslip: fix variableScope 2016-09-05 02:32:09 +02:00
Matthias Kolja Miehl
c06bf1019d dist/tools/tunslip: add comment regarding missing break at the end of case 2016-09-05 02:32:09 +02:00
Cenk Gündoğan
924f27558c Merge pull request #5784 from PeterKietzmann/tools_update_cc2538-bsl
dist/tools: update serial boot loader script
2016-08-31 10:10:01 +02:00
PeterKietzmann
5eafb071a6 dist/tools/cc2538-bsl: enforce python2 2016-08-30 23:38:14 +02:00
PeterKietzmann
5b3d7fadcf dist/tools: update serial boot loader script 2016-08-30 18:41:59 +02:00
Martine Lenders
9d0881fae5 dist: testrunner: optionally print traceback 2016-08-30 16:50:36 +02:00
c9d725ac0c dist: tools: genconfigheader.sh: include LTOFLAGS as comment if set 2016-08-30 14:17:32 +02:00
Gaëtan Harter
a52c781339 dist: ethos: add tcp socket support
Add ethos support to use a tcp socket instead of a TTY.
Use 'tcp:host' as serial argument.
Port can be given in place of the baudrate argument.

Default port is 20000 which is used in on IoT-LAB.
2016-07-28 21:28:21 +02:00
8601285b13 openocd: return error if flashing went wrong 2016-07-27 17:42:06 +02:00
kYc0o
e443b90815 Merge pull request #5452 from locicontrols/find-tty
Adjust find-tty.sh to return all matches, then use it in boards/cc2538dk
2016-07-22 16:01:46 +02:00
abe5c19407 dist/tools: make ethos baudrate configurable 2016-07-14 17:01:02 +02:00
f048475bec dist: build_and_test.sh: don't hard-code base branch 2016-07-13 16:04:26 +02:00