-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts: zephyr: separate from server dir
Move the zephyr start scripts from server dir to root directory. The scripts are used for testing and are not directly related to the server implementation. Signed-off-by: Jonas Remmert <jremmert@gmx.net>
- Loading branch information
Showing
5 changed files
with
24 additions
and
16 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,5 @@ | ||
#!/bin/bash | ||
|
||
## Build and run Zephyr | ||
west build -p=auto -b qemu_x86 fw_test/lwm2m_client -p -- -DCONF=overlay-lwm2m-1.1.conf | ||
west build -t run |
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,18 @@ | ||
#!/bin/bash | ||
|
||
# Function to stop networking | ||
cleanup() { | ||
../tools/net-tools/net-setup.sh stop | ||
} | ||
|
||
# Register the cleanup function to be called on the EXIT signal | ||
trap cleanup EXIT | ||
|
||
# Start networking via net-tools | ||
../tools/net-tools/net-setup.sh start | ||
|
||
## Build and run Zephyr | ||
west build -p=auto -b qemu_x86 ../zephyr/samples/net/lwm2m_client -- -DCONF=overlay-lwm2m-1.1.conf | ||
west build -t run | ||
|
||
cleanup |