Skip to content

Commit

Permalink
added iot-lab_M3 and temporarily dropped telosb support; split patch.txt
Browse files Browse the repository at this point in the history
into separate patch files
  • Loading branch information
thomaseichinger committed May 14, 2014
1 parent e94912f commit ba3088c
Show file tree
Hide file tree
Showing 157 changed files with 19,231 additions and 38,442 deletions.
5 changes: 3 additions & 2 deletions pkg/openwsn/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ endif
.PHONY: all clean

all: $(CURDIR)/$(PKG_NAME)-$(PKG_VERSION)/
$(info *INFO* Building OpenWSN pkg)
make -C $(CURDIR)/$(PKG_NAME)-$(PKG_VERSION)

$(CURDIR)/$(PKG_NAME)-$(PKG_VERSION)/: $(CURDIR)/$(PKG_NAME)-$(PKG_VERSION).$(PKG_EXT)
$(AD)rm -rf $(CURDIR)/$(PKG_NAME)-$(PKG_VERSION)
$(AD)$(UNPACK) $< -d $(PKG_NAME)-$(PKG_VERSION)
$(AD)$(UNPACK) -q $< -d $(PKG_NAME)-$(PKG_VERSION)
$(AD)cd $@ && sh ../structure_changes.sh
$(AD)cd $@ && patch -p0 -N -i ../patch.txt
$(AD)cd $@ && sh ../apply_patches.sh

$(CURDIR)/$(PKG_NAME)-$(PKG_VERSION).$(PKG_EXT):
# Get PKG_VERSION of package from PKG_URL
Expand Down
1 change: 1 addition & 0 deletions pkg/openwsn/Makefile.include
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export INCLUDES += -I${RIOTBASE}/drivers/include/
28 changes: 26 additions & 2 deletions pkg/openwsn/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,32 @@
# 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 TelosB board only for now.
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](https://github.com/RIOT-OS/projects/)
named ```test_openwsn_pkg``` with an example ```Makefile```.
named ```test_openwsn_pkg``` with an example ```Makefile```.

Build using
```Bash
$> 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
```Makefile
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.
14 changes: 14 additions & 0 deletions pkg/openwsn/apply_patches.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env sh

set -o nounset # Treat unset variables as an error

if [[ $QUIET == "1" ]]; then
for i in `ls ../patches`; do
patch -p1 -N -i ../patches/$i > /dev/null
done
else
for i in `ls ../patches`; do
patch -p1 -N -i ../patches/$i
done
fi
exit 0
Loading

0 comments on commit ba3088c

Please sign in to comment.