Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openwsn pkg support #508

Merged
merged 8 commits into from
Jan 20, 2014
Merged

Conversation

thomaseichinger
Copy link
Member

As mentioned in Monday's meeting this PR adds support to build the openwsn stack as an external module.
Test is in PR des-testbed/RIOT-projects#91

@mehlis
Copy link
Contributor

mehlis commented Jan 15, 2014

does this only work with telosb? (telosb is set as default)

did not compile:

main.c:1:10: fatal error: 'openwsn.h' file not found
#include "openwsn.h"
         ^
1 error generated.

full log:
http://pastebin.com/pnt59SF2

@thomaseichinger
Copy link
Member Author

Yes, the openwsn port is TelosB only for now.
The above error is because the test project needs to be build with make build. This fetches the needed sources first since they are needed by the project.
I will put this into a README.

@LudwigKnuepfer
Copy link
Member

that's what project dependencies are for.

@LudwigKnuepfer
Copy link
Member

See /tests/test_bloom/Makefile

@thomaseichinger
Copy link
Member Author

updated with changes addressing @LudwigOrtmann comment in PR des-testbed/RIOT-projects#91
and added a README with compatibility informations.

@OlegHahm
Copy link
Member

Does not build here because of re-applied patches:

# Here you apply your patch.
cd /home/oleg/git/RIOT/pkg/openwsn/RB-1.4/ && sh ../structure_changes.sh
Moving openwsn stack ...mv: cannot stat ‘openwsn-fw-RB-1.4/firmware/openos/openwsn/’: No such file or directory
mv: cannot stat ‘openwsn-fw-RB-1.4/firmware/openos/bsp/boards/telosb/spi.c’: No such file or directory
mv: cannot stat ‘openwsn-fw-RB-1.4/firmware/openos/bsp/boards/telosb/uart.c’: No such file or directory
mv: cannot stat ‘openwsn-fw-RB-1.4/firmware/openos/bsp/boards/telosb/leds.c’: No such file or directory
mv: cannot stat ‘openwsn-fw-RB-1.4/firmware/openos/bsp/boards/telosb/board.c’: No such file or directory
mv: cannot stat ‘openwsn-fw-RB-1.4/firmware/openos/bsp/boards/telosb/board_info.h’: No such file or directory
mv: cannot stat ‘openwsn-fw-RB-1.4/firmware/openos/bsp/boards/telosb/radiotimer.c’: No such file or directory
mv: cannot stat ‘openwsn-fw-RB-1.4/firmware/openos/bsp/boards/telosb/eui64.c’: No such file or directory
mv: cannot stat ‘openwsn-fw-RB-1.4/firmware/openos/bsp/boards/telosb/debugpins.c’: No such file or directory
mv: cannot stat ‘openwsn-fw-RB-1.4/firmware/openos/bsp/boards/board.h’: No such file or directory
mv: cannot stat ‘openwsn-fw-RB-1.4/firmware/openos/bsp/boards/debugpins.h’: No such file or directory
mv: cannot stat ‘openwsn-fw-RB-1.4/firmware/openos/bsp/boards/eui64.h’: No such file or directory
mv: cannot stat ‘openwsn-fw-RB-1.4/firmware/openos/bsp/boards/leds.h’: No such file or directory
mv: cannot stat ‘openwsn-fw-RB-1.4/firmware/openos/bsp/boards/radio.h’: No such file or directory
mv: cannot stat ‘openwsn-fw-RB-1.4/firmware/openos/bsp/boards/radiotimer.h’: No such file or directory
mv: cannot stat ‘openwsn-fw-RB-1.4/firmware/openos/bsp/boards/uart.h’: No such file or directory
mv: cannot stat ‘openwsn-fw-RB-1.4/firmware/openos/bsp/chips/spi.h’: No such file or directory
mv: cannot stat ‘openwsn-fw-RB-1.4/firmware/openos/bsp/chips/cc2420/radio.c’: No such file or directory
mv: cannot stat ‘openwsn-fw-RB-1.4/firmware/openos/bsp/chips/cc2420/cc2420.h’: No such file or directory
mv: cannot stat ‘openwsn-fw-RB-1.4/firmware/openos/drivers/common/openhdlc.*’: No such file or directory
mv: cannot stat ‘openwsn-fw-RB-1.4/firmware/openos/drivers/common/opentimers.*’: No such file or directory
mv: cannot stat ‘openwsn-fw-RB-1.4/firmware/openos/drivers/common/openserial.c’: No such file or directory
mv: cannot stat ‘openwsn-fw-RB-1.4/firmware/openos/drivers/common/openserial.h’: No such file or directory
mv: cannot stat ‘openwsn-fw-RB-1.4/firmware/openos/kernel/openos/scheduler.c’: No such file or directory
mv: cannot stat ‘openwsn-fw-RB-1.4/firmware/openos/kernel/openos/scheduler.h’: No such file or directory
[OK]
Removing files not needed ... [OK]
Initialize Makefile structure ...[OK]
mkdir: cannot create directory ‘openwsn/07-App/r6tus’: File exists
Clean up ...[OK]
Remove CRLF line endings ... [OK]
cd /home/oleg/git/RIOT/pkg/openwsn/RB-1.4/ && patch -p0 -i ../patch.txt
patching file openwsn/02a-MAClow/IEEE802154.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
...

@thomaseichinger
Copy link
Member Author

updated addressing @OlegHahm 's comment

There still is an issue when building with the -B flag. Archive gets downloaded a second time.

@LudwigKnuepfer
Copy link
Member

wget has options to resume partial downloads and to not download files that are already there. I don't know if curl has those.

@OlegHahm
Copy link
Member

Still don't get it compiled. The "no such file or directory" messages remain. Patches are ignored, but make process ends with

make[1]: *** [/home/oleg/git/RIOT/pkg/openwsn/RB-1.4/Makefile] Error 1
make[1]: Leaving directory '/home/oleg/git/RIOT/pkg/openwsn'
/home/oleg/git/projects/test_openwsn_pkg/../../RIOT/Makefile.include:61: recipe for target 'all' failed
make: *** [all] Error 2

@thomaseichinger
Copy link
Member Author

updated addressing comments of @LudwigOrtmann #508 (comment) and @OlegHahm #508 (comment)

@OlegHahm
Copy link
Member

ACK

thomaseichinger added a commit that referenced this pull request Jan 20, 2014
@thomaseichinger thomaseichinger merged commit 41fca84 into RIOT-OS:master Jan 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants