1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/pkg/openwsn
René Kijewski a70ee0f022 make: centralize wget/curl & unzip/7z feature test
With many open PRs that could benefit from loading SDKs when needed,
instead adding vast amounts of code to RIOTs master, this PR provides
the "functions" `$(DOWNLOAD_TO_STDOUT)`, `$(DOWNLOAD_TO_FILE)`, and
`$(UNZIP_HERE)`.

The first "function" takes one argument, the URL from where to download
the content. It is then piped to stdout. To be used e.g. with `tar xz`.

The second "function" taken two arguments, the destination file name,
and the source URL. If the previous invocation was interrupted, then the
download gets continued, if possible.

The last "function" takes one argument, the source ZIP file. The file
gets extracted into the cwd, so best use this "function" with
`cd $(SOME_WHERE) &&`.

The clumsy name `$(UNZIP_HERE)` is taken because the program "unzip"
takes the environment variable `UNZIP` as the source file, even if
another file name was given on the command line. The rationale for that
is that the hackers of "unzip" hate their users. Also they sacrifice
hamsters to Satan.
2014-08-21 19:07:52 +02:00
..
patches core: removed duplicated hwtimer_arch.h 2014-07-09 21:08:13 +02:00
.gitignore add .gitignore for openwsn pkg 2014-01-29 10:33:02 +01:00
apply_patches.sh added iot-lab_M3 and temporarily dropped telosb support; split patch.txt 2014-05-14 15:06:50 +02:00
Makefile make: centralize wget/curl & unzip/7z feature test 2014-08-21 19:07:52 +02:00
Makefile.in make: don't ignore failures in for loops 2014-03-12 11:09:04 +01:00
Makefile.include added iot-lab_M3 and temporarily dropped telosb support; split patch.txt 2014-05-14 15:06:50 +02:00
README.md added iot-lab_M3 and temporarily dropped telosb support; split patch.txt 2014-05-14 15:06:50 +02:00
structure_changes.sh added iot-lab_M3 and temporarily dropped telosb support; split patch.txt 2014-05-14 15:06:50 +02:00

OpenWSN on RIOT

This port of OpenWSN to RIOT is based on release RB-1.4 with backported support for the iot-lab_M3 board from the develop branch.

Compatibility

This port of the openwsn stack is compatible with the iot-lab_M3 board only for now. The TelosB board support was temporarily dropped but will return soon again. The hardware dependency will be reduced in the future and thous running on more hardware platforms.

Usage

A test can be found in the projects repository named test_openwsn_pkg with an example Makefile.

Build using

$> export BOARD=iot-lab_M3
$> export PORT=/dev/ttyTHEPORTOFYOURIOTLAB
$> make -B clean flash

To use OpenWSN with RIOT it has to be added to the used packages variable

USEPKG += openwsn

On the first build the archive will be fetched, patched and built. WARNING A call of make clean also cleans the OpenWSN tree right now so changes to the source code will be lost in the next build.