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

1897 Commits

Author SHA1 Message Date
Pham Huu Dang Nhat
bb85671ea7 CI: replaced head with cat and filtered out tools for extern "C" check. 2014-11-25 22:00:09 +07:00
Ludwig Ortmann
d716f2d4a5 dist/licenses: add and use --error-exitcode 2014-11-24 18:54:56 +01:00
Ludwig Ortmann
1574c2bb76 dist/licenses: add and use diff-filter 2014-11-24 18:54:56 +01:00
Thomas Eichinger
57470eb77e Merge pull request #2065 from LudwigOrtmann/issue-392
license header + pattern cleanup
2014-11-24 10:36:16 +01:00
Ludwig Ortmann
e343f114f4 dist/cppcheck: handle unhandled condition
When no arguments are given at all, the script would shift when there
is nothing to shift. This results in a failure on debian stable:
```
./dist/tools/cppcheck/check.sh: 20: shift: can't shift that many
```
2014-11-21 18:43:26 +01:00
Ludwig Ortmann
5819baea9f tools/licenses: add 1c-BSD-stanford pattern 2014-11-21 15:28:07 +01:00
Ludwig Ortmann
372e2e05f0 tools/licenses: remove unused 3c-BSD-clark 2014-11-21 15:12:52 +01:00
Ludwig Ortmann
a220fc82db tools/licenses: add 3c-BSD-nordic pattern 2014-11-21 15:08:21 +01:00
Ludwig Ortmann
64351603e8 tools/licenses: add 3c-BSD-atmel3 pattern 2014-11-21 15:03:15 +01:00
Hinnerk van Bruinehsen
edd948c176 dist: default cppcheck to ignore unusedStructMember 2014-11-19 11:22:42 +01:00
Oleg Hahm
30b166c177 pyterm: make mostly pep8 compliant 2014-11-07 01:02:55 +01:00
Oleg Hahm
cbe49912be pyterm: enable TCP connection to remote host 2014-11-05 22:42:36 +01:00
Hinnerk van Bruinehsen
72115d629d lint: fix uninitstring in sixlowdriver 2014-10-31 01:24:32 +01:00
Hinnerk van Bruinehsen
75c02c937a lint: suppress unusedStructMember in vendor files 2014-10-31 01:24:32 +01:00
Ludwig Ortmann
ac150e9a3b Merge pull request #1840 from LudwigOrtmann/cppcheck-selecta
Travis + cppcheck: let cppcheck fail for new files
2014-10-24 05:40:40 -07:00
Ludwig Ortmann
6424ba0665 cppcheck: handle --diff-filter option
Add the possibility to the cppcheck script to pass git's
`--diff-filter` option.
Also improve comments a bit.
2014-10-24 11:40:18 +02:00
Oleg Hahm
b0a65e870b make: doc: clean up dist Makefile 2014-10-22 20:00:26 +02:00
6f6fb8a621 dist: add Dockerfile for docker builder container 2014-10-22 18:11:21 +02:00
Ludwig Ortmann
302b9b775c dist/tools: add check for extern "C" declaration 2014-10-18 07:29:14 +02:00
Thomas Eichinger
bf256f63a3 samr21-xpro: initial import for the samr21-xpro board 2014-09-25 14:37:47 +02:00
Oleg Hahm
9b4d22aaa0 pyterm: make pin toggling optional
For the MSB-A2 the DTR and RTS pins have to be pulled down over the
serial interface in the beginning. (This is required because the Linux
usbserial driver pulls them up when initializing the device which set
the node into reset mode.) Since this is not necessary on most other
platforms and might even cause problems, it's better to make this an
optional behavior of pyterm.
2014-09-24 17:05:36 +02:00
Hinnerk van Bruinehsen
567ebf987f lint: limit maximum length of input via scanf 2014-09-19 23:31:26 +02:00
Philipp Rosenkranz
973fff7097 Merge pull request #1610 from phiros/feature_pytermcontroller
dist/pyterm: control server incl. support for multiple testbeds
2014-09-19 15:18:48 +02:00
Philipp Rosenkranz
2a67363be3 dist: pyterm control server (incl. support for multiple testbeds) 2014-09-19 14:42:15 +02:00
Hinnerk van Bruinehsen
136a6b0d35 dist: linux-border_router: reduce scope 2014-09-13 19:47:58 +02:00
Ludwig Ortmann
8503267ead Merge pull request #1604 from LudwigOrtmann/cppcheck-script
dist/tools: add cppcheck script
2014-09-06 08:37:16 -07:00
Ludwig Ortmann
95a3d48367 SQUASHME: tool -> tools path typo 2014-09-06 16:32:48 +02:00
Ludwig Ortmann
ba854a5423 SQUASHME: add documentation 2014-09-06 11:27:16 +02:00
Fabian Nack
c4bb61ce4e licenses: added stm specific 3 clause BSD license pattern 2014-09-02 15:45:50 +02:00
Ludwig Ortmann
500d6bfa8b SQUASHME: file(line) -> file:line
Addresses https://github.com/RIOT-OS/RIOT/pull/1604#discussion_r16936195
2014-09-01 07:23:25 +02:00
Hinnerk van Bruinehsen
a6b77b4745 cpu: atmega_common: Initial import 2014-08-27 16:22:48 +02:00
Ludwig Ortmann
e0712ccc84 dist/tools: add cppcheck script
enables easy linting of the whole tree or just one branches changes against
another
2014-08-25 14:53:31 +02:00
Ludwig Ortmann
26d2781624 tests: let license checker check cpp files, too 2014-08-23 16:16:26 +02:00
Ludwig Ortmann
b7992922ce fix license headers in non-.c files 2014-08-23 16:16:26 +02:00
Thomas Eichinger
f11af5f9a1 goodfet: hardcode python version to 2.7 2014-08-22 00:00:30 +02:00
René Kijewski
591c76902e Merge pull request #1531 from LudwigOrtmann/header_license_headers
tests: let license checker check headers, too
2014-08-21 22:46:59 +02:00
Hinnerk van Bruinehsen
1b5836571b pyterm: fix exit behavior if twisted is not available 2014-08-16 00:49:43 +02:00
Oleg Hahm
dce96763b5 pyterm: adds timer function
/timer <interval> <command> now allows to schedule arbitrary commands to
be send to the node after the specified interval (in seconds).
2014-08-13 11:46:36 -04:00
Martine Lenders
5fa5c568ff pyterm: Use only printf-style String Formatting
Needed for backwards compatibility to python 2.6. Refers to
46c38230eb (commitcomment-7363298)
2014-08-13 00:16:41 +02:00
René Kijewski
9879e4aaa7 buildtest: retry failed builds once
On Travis CI often builds fail spuriously.

This PR lets `make buildtest` retry the build once.
2014-08-05 17:42:32 +02:00
Ludwig Ortmann
d1226b2a78 tests: let license checker check headers, too 2014-08-02 11:42:34 +02:00
Oleg Hahm
cb85a901f2 pyterm: renamed pyterm.py to pyterm 2014-08-01 17:09:45 +02:00
Oleg Hahm
af24a947f6 pyterm: make Guido happy 2014-08-01 17:09:45 +02:00
Oleg Hahm
73f6a0c518 pyterm: split connect and set_baudrate
Apparently, opening and setting the baudrate at the same time creates
problem for certain platforms (Arduino-Due).
2014-08-01 17:09:45 +02:00
Oleg Hahm
af5291b7d7 pyterm: handle TCP connection errors 2014-08-01 17:09:45 +02:00
Oleg Hahm
8b9c54efae pyterm: make formatting string configurable 2014-08-01 17:09:45 +02:00
Oleg Hahm
a0f43ba736 pyterm: outsource serial connect to a separate function 2014-08-01 17:09:45 +02:00
Oleg Hahm
8c84df391e pyterm: added license 2014-08-01 17:09:45 +02:00
Oleg Hahm
9a09cba325 pyterm: added some documentation 2014-08-01 17:09:45 +02:00
Oleg Hahm
aaccb81794 pyterm: print warning if twisted is not available 2014-08-01 17:09:45 +02:00
Oleg Hahm
a6b276b734 pyterm: ugly hack to make twisted optional 2014-08-01 17:09:44 +02:00
Oleg Hahm
79844660a6 pyterm: enable interoperability with native TCP uart 2014-08-01 17:09:44 +02:00
Oleg Hahm
f76ae40861 pyterm: use the rest of line for alias and trigger
Allows nested aliases and triggers
2014-08-01 17:09:44 +02:00
Oleg Hahm
02f7b610a5 pyterm: increase verbosity for alias command 2014-08-01 17:09:44 +02:00
Oleg Hahm
b1323bf0c3 pyterm: use logger instead of print 2014-08-01 17:09:44 +02:00
Oleg Hahm
431655a3f0 pyterm: introduced trigger actions 2014-08-01 17:09:44 +02:00
Oleg Hahm
cec44e3aed pyterm: fixed usage line for /alias 2014-08-01 17:09:44 +02:00
Oleg Hahm
9a2c1d3c87 pyterm: split up input processing into separate functions 2014-08-01 17:09:44 +02:00
Oleg Hahm
a0796ae6e5 pyterm: always perform input preprocessing 2014-08-01 17:09:44 +02:00
Oleg Hahm
f335cf07c3 pyterm: set default verbosity to info 2014-08-01 17:09:44 +02:00
Oleg Hahm
fbd2c345ce pyterm: cosmetics
* replaced tab with white spaces
* removed trailing white spaces
2014-08-01 17:09:44 +02:00
Oleg Hahm
e661b386a0 pyterm: handle serial disconnect
* will reconnect automatically if possible after a disconnect
* resolves #910
2014-08-01 17:09:44 +02:00
Oleg Hahm
32716fea6c pyterm: enable saving and setting of init commands at runtime 2014-08-01 17:09:44 +02:00
Oleg Hahm
e38fd42fef pyterm: integrated changes from @mehlis' testbed-controller branch 2014-08-01 17:09:44 +02:00
Oleg Hahm
1899fffb4f pyterm: use writeSomeData to send data immediately 2014-08-01 17:09:44 +02:00
Oleg Hahm
534ca4633e pyterm: distinguish between int and string in JSON sending 2014-08-01 17:09:44 +02:00
Oleg Hahm
211dfeca6c pyterm: allow spaces in JSON regex 2014-08-01 17:09:44 +02:00
Oleg Hahm
07e4e4372e pyterm: remove unnecessary debug output 2014-08-01 17:09:44 +02:00
Oleg Hahm
508e8770c7 pyterm: fix program exit procedure, disable SIGINT 2014-08-01 17:09:44 +02:00
Oleg Hahm
cffa4e73d5 pyterm: added twisted based JSON sending 2014-08-01 17:09:44 +02:00
Oleg Hahm
64b1250f3b pyterm: configure baudrate 2014-08-01 17:09:44 +02:00
Oleg Hahm
f816d74824 pyterm: prefix pyterm commands with / 2014-08-01 17:09:44 +02:00
Oleg Hahm
dd469b1f7b pyterm: ignore lines based on regex 2014-08-01 17:09:44 +02:00
Oleg Hahm
fd95200ae4 pyterm: filter for specific output (via regex) 2014-08-01 17:09:43 +02:00
Oleg Hahm
6c31adeaee pyterm: introduce command line arguments 2014-08-01 17:09:43 +02:00
Oleg Hahm
e1f8992642 pyterm: make config file name a variable 2014-08-01 17:09:43 +02:00
Oleg Hahm
5769269cda pyterm: set default serial port to /dev/ttyUSB0 2014-08-01 17:09:43 +02:00
Oleg Hahm
50f9b25a9a pyterm: do a proper cleanup at SIGINT 2014-08-01 17:09:43 +02:00
Ludwig Ortmann
d55da67fb6 Merge pull request #1329 from LudwigOrtmann/riot_license
RIOT default license header change
2014-07-31 23:12:47 +02:00
Oleg Hahm
9f0d8d48fd Merge pull request #1515 from cgundogan/remove_tabs_dist
converting tabs to spaces in dist (#1439)
2014-07-31 23:05:35 +02:00
Ludwig Ortmann
5fdce06b3b doc: use lgplv2.1-short license header instead of lgplv2-short-v1 2014-07-31 22:57:20 +02:00
Ludwig Ortmann
73aa3739d2 doc: use lgplv2.1-short license header instead of lgplv2-short-v2 2014-07-31 22:57:20 +02:00
Ludwig Ortmann
c40b281873 doc: use lgplv2.1-short license header instead of lgplv2-short-v3 2014-07-31 22:57:20 +02:00
Ludwig Ortmann
3ca4f18479 doc: use lgplv2.1-short license header instead of lgpl-short-riot 2014-07-31 22:57:20 +02:00
Cenk Gündoğan
2b0b81b921 converting tabs to spaces in dist (#1439)
This PR converts tabs to white spaces.
The statement I used for the conversion:
```find . -name "*.[ch]" -exec zsh -c 'expand -t 4 "$0" > /tmp/e && mv /tmp/e "$0"' {} \;```
Afterwards, I had a quick overview of the converted files to prevent odd indentation.
2014-07-31 20:48:19 +02:00
Ludwig Ortmann
cee59dae23 lpc2k: unify Paul Stoffregen license headers 2014-07-31 18:58:06 +02:00
Ludwig Ortmann
b6846e31fc doc: fix most occurences of FU as an author
.. but only if there are other authors as well
2014-07-29 17:23:11 +02:00
Ludwig Ortmann
be5798d7b6 dist/pyterm: enable unicode decoding
use unicode streamreader on serial interface
fixes #1371
2014-07-14 12:54:18 +02:00
Ludwig Ortmann
fe2d2e06ca tests: add pattern for short lgplv2.1 header
Add the license checker pattern which is advertised in our wiki.
2014-07-09 16:17:50 +02:00
Cenk Gündoğan
0c40ccebc8 pyterm: made python compatible with python2 and python3
In python 3 there is no implicit converion of bytes to str or character.
2014-06-27 16:32:41 +02:00
René Kijewski
2f66319a3a make: OSX: don't fail for empty .a archives
Fixes issue #1333.
2014-06-24 20:29:32 +02:00
Martin Lenders
46c38230eb pyterm: Make pyterm available in python2 and python3 2014-06-23 09:15:17 +02:00
Ludwig Ortmann
4b98570a34 doc: improve APPDEPS example
Addresses https://github.com/RIOT-OS/RIOT/pull/1339#discussion_r14050325
2014-06-21 18:28:34 +02:00
Ludwig Ortmann
de4677eb60 make: s/PROJDEPS/APPDEPS/
fixes https://github.com/RIOT-OS/RIOT/issues/1284
2014-06-21 18:28:34 +02:00
Ludwig Ortmann
7888222a97 tests: add branch option to license checker 2014-06-20 17:57:56 +02:00
Oleg Hahm
0d6e991e52 Merge pull request #1254 from Kijewski/x86-newlib-nicer-patches
x86: slightly better debuggable bincode
2014-06-19 00:14:43 +02:00
Ludwig Ortmann
289b63c06f dist/tools: add license checker
Creates file structure that maps files to licenses by grepping for
license patterns (patterns for licenses found in RIOT included).
Sets exit code to 1 if an unknown license header is detected.
2014-06-17 10:17:20 +02:00
René Kijewski
3d3ada9a26 x86: slightly better debuggable bincode
While tracking down an error in #1253 I ameded newlib a bit to be
slightly better debuggable. Some lengthy macros were removed in favor of
proper functions.

The parameter passing was wrong before (because of a bug in newlib),
because the user provided CFLAGS were overwritten in the subfolders.
It is kinda strange that this did not cause errors.

The standalone version of the toolchain script was deleted, because it
is not reasonable to maintain two scripts.
2014-06-06 15:38:19 +02:00
Sebastian Sontberg
06433426cf wireshark: fix dissector plugin and expand documentation
The wireshark dissector plugin currently fails with a "Lua Error" when
trying to parse nativenet packets. This patch restores working behaviour
by commenting the offending line introduced in 1258675, which intention
was to account for padding in small packets. It further adds a comment
on how to edit the plugin for the case padding information is required.

The README.md now contains a usage note for configuration on fedora
which might also be helpful for users of other distributions.
2014-06-04 20:36:18 +02:00
Martin Lenders
2362623490 Fix trailing whitespaces
Fixes #1138
2014-05-26 14:54:23 +02:00
Thomas Eichinger
1e983c9670 s/PROJECT/APPLICATION/g
fixes #548
2014-05-26 13:21:09 +02:00
René Kijewski
4e4f908379 Initial import of the x86 port
Currently this works only in qemu.
2014-05-25 13:40:29 +02:00
René Kijewski
bd1630adca buildtest: ignore empty folders
`compile_test.py` fails if there are empty folders in `/examples` or
`tests`. This is not a problem for Travis, because it always has a clean
repo.

For the average users there is a problem if they work on multiple
branches and one branch has new examples or tests. If they don't delete
the residual `bin` folders, then `compile_test.py` will print out these
applications as having failed.

This change checks for the existence of a `Makefile` in the application
folder. Also I added a progress indicator, because I like it. :)
2014-05-16 20:18:52 +02:00
René Kijewski
28ff8cebae Merge pull request #1085 from Kijewski/compile_test-process-indicator
Add process indicator to compile_test.py
2014-05-16 00:49:21 +02:00
René Kijewski
8038e96d09 Merge pull request #1119 from Kijewski/error_old-style-definition
Exterminate old-style function definitions
2014-05-14 13:31:30 +02:00
Martin Lenders
fe174fefdd Fix some coding conventions in border router driver 2014-05-14 09:56:06 +02:00
Martin Lenders
920e48beff License border router driver under LGPL. 2014-05-14 09:55:16 +02:00
René Kijewski
d16b819069 Add process indicator to compile_test.py 2014-05-12 22:09:29 +02:00
René Kijewski
628419eb11 Exterminate old-style function declaration/prototypes 2014-05-12 21:57:09 +02:00
René Kijewski
2c9bfcf5c7 Add "compile everything" tool
Having many tests is quite futile if they aren't executed once in a
while<sup>[citation needed]</sup>.

Alas, this is not the purpose of this PR. This PR adds the tool
"compile_test.py", which executes `make buildtest` for all applications
in `examples` and `tests`, and prints a comprehensive list of the
results.
2014-04-24 11:21:22 +02:00
Ludwig Ortmann
ac21f3c54c make: couple include path and -I
This is necessary if includes have to be filtered, such as in native
to throw out RIOTs posix includes which interfere with system
includes.
2014-02-27 08:14:33 +01:00
Martin Lenders
1258675171 Account for padding in small packages in wireshark 2014-02-18 13:39:44 +01:00
Christian Mehlis
cb9c5d00de repace project by application in documentation 2014-02-18 12:28:32 +01:00
Christian Mehlis
4a3d8cddaa Merge pull request #665 from authmillenon/wireshark-dissector
Add wireshark dissector for native packets
2014-02-16 10:49:55 +01:00
Martin Lenders
8336c8ed14 Add wireshark dissector for native packets 2014-02-12 18:28:22 +01:00
Ludwig Ortmann
336c5159b2 use pkg-config to add valgrind include path
makes knowledge of VALGRIND_VALGRIND_H vs. VALGRIND_H optional
2014-02-11 19:22:39 +01:00
Ludwig Ortmann
2525920426 remove trailing whitespace and newlines 2014-02-11 18:45:06 +01:00
Oleg Hahm
e12aceb1d5 updated INCLUDES part for the dist Makefile 2014-01-21 15:28:00 +01:00
Ludwig Ortmann
4cd1c5d673 document PROJDEPS usage in dist Makefile 2014-01-15 20:37:09 +01:00
Ludwig Ortmann
498cc027b1 dist/example Makefiles: not BOARD -> no BOARD, ## Modules -> # Modules 2014-01-13 11:12:14 +01:00
Christian Mehlis
c26a3c0e41 Merge pull request #483 from mehlis/master
fix some findings by the static analyser
2014-01-09 13:30:45 -08:00
Ludwig Ortmann
ffad76624a Improve text and stop overriding useful variables 2014-01-09 15:07:42 +01:00
Ludwig Ortmann
b4b1ce66f2 merge over options from projects/default/Makefile
add scheduler statistics option
add valgrind option
add develhelp option
2014-01-09 15:07:12 +01:00
Christian Mehlis
8bcb099384 fix some findings by the static analyser 2014-01-08 17:01:22 +01:00
Oleg Hahm
1a6ee4da25 cosmetics in dist Makefile 2014-01-08 16:46:46 +01:00
Oleg Hahm
cb7de2432e moved muting "logic" away from application Makefile 2014-01-05 16:11:08 +01:00
Oleg Hahm
1a2968222a fixed typo 2014-01-05 16:11:08 +01:00
Oleg Hahm
9df07f9238 muting compiler and binutils optionally
Instead of muting all compiler and other binutils output by default,
introduce a variable to make this behaviour configurable.
2014-01-05 16:11:08 +01:00
Ludwig Ortmann
754881f5f0 handle sigterm, inform about exit
resolves #445
2013-12-19 12:52:32 +01:00
Oleg Hahm
63eb4acf55 adopted exemplary project Makefile to new structure 2013-11-08 15:49:03 -08:00
Oleg Hahm
ced43c7235 added goodfet bootloader (necessary for TelosB) 2013-08-19 19:01:12 +02:00
668bb8a879 fix minor typo in status output 2013-08-13 17:38:23 +02:00
Christian Mehlis
f29e610460 change python shebang to python2 -> python is mostly python3 2013-08-13 11:42:59 +02:00
Ludwig Ortmann
5efa2eea8a fix python shebang 2013-07-15 21:17:09 +02:00
Oliver Hahm
c8bee9e554 fixed coding style (space after most keywords) 2013-06-24 22:37:35 +02:00
Oliver Hahm
201f593641 more coding convention fixes 2013-06-21 04:00:45 +02:00
Oliver Hahm
666c90ffe8 * made msb-a2 default for distribution Makefile 2013-04-18 02:21:22 +02:00
Oliver Hahm
e6177e811a * moved cpu and board specific parts to corresponding Makefiles
* introduced variable for cpu folder
2013-03-23 18:38:12 +01:00
Oliver Hahm
3a69aa8ebc * added arm_common to include path for lpc2387 in Makefile.modules
* cleaned dist/Makefile up
2013-03-19 17:56:26 +01:00
Oliver Hahm
0d06e1bc18 Merge branch 'master' of github.com:RIOT-OS/RIOT 2013-03-10 16:46:46 +01:00
Oliver Hahm
7a4dec1830 * replaced new Makefile name in Makefiles 2013-03-09 23:47:21 +01:00
Oliver Hahm
5ffe5a9c27 * renamed makefiles to Makefile 2013-03-09 23:45:56 +01:00
Oleg Hahm
2277b366b2 * removed outdated occurrences of (u|µ)kleos and FeuerWare 2013-03-07 20:51:26 +01:00
Oleg Hahm
5aa00a4f8b * fixed typo in readme
* fixed documentation in irq.h
* moved tools folder to dist
* added check for disk space in build_gnuarm script
* fixed gcc check in this script, too
2013-02-27 20:22:19 +01:00
Oleg Hahm
f6e129959e * created a target to build the documentation 2013-02-08 19:34:07 +01:00
Oleg Hahm
5df0bd0cc4 * updated and integrated makefiles
* added some auto dependencies
2013-02-08 17:37:02 +01:00
Oleg Hahm
ab007ae3b6 * added dist directory with a generic project makefile 2013-02-06 13:21:36 +01:00