-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #292 from MrKevinWeiss/pr/automate0803
Automate spec08 task03 contiki interop tests
- Loading branch information
Showing
4 changed files
with
195 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
cd /tmp | ||
|
||
# Clone Contiki-NG | ||
git clone https://github.com/contiki-ng/contiki-ng.git; cd contiki-ng || \ | ||
cd contiki-ng; git pull | ||
git submodule update --init --recursive | ||
|
||
# Pull the Contiki-NG Docker image | ||
docker pull contiker/contiki-ng | ||
|
||
# Add the `shell` service to the `examples/hello-world` application. | ||
if ! grep -q "MODULES += os/services/shell" examples/hello-world/Makefile; then | ||
sed -i '/all: $(CONTIKI_PROJECT)/a\\nMODULES += os/services/shell\n' examples/hello-world/Makefile | ||
fi | ||
|
||
|
||
# Compile the `examples/hello-world` application for the nRF52840 platform. | ||
export CNG_PATH=/tmp/contiki-ng | ||
docker run \ | ||
--sysctl net.ipv6.conf.all.disable_ipv6=0 \ | ||
--mount type=bind,source=$CNG_PATH,destination=/home/user/contiki-ng \ | ||
contiker/contiki-ng \ | ||
make -C examples/hello-world TARGET=nrf52840 hello-world |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters