Skip to content

Commit 9e1e979

Browse files
committed
Add bootstrap and build files
1 parent 27a7f18 commit 9e1e979

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

extra/bootstrap.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
if [ ! -f platform.txt ]; then
4+
echo Launch this script from the root core folder as ./extras/bootstrap.sh
5+
exit 2
6+
fi
7+
8+
python3 -m venv venv
9+
source venv/bin/activate
10+
pip install west
11+
west init -l .
12+
west update
13+
# download slim toolchain from https://github.com/zephyrproject-rtos/sdk-ng/releases/tag/v0.16.8

extra/build.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export ZEPHYR_SDK_INSTALL_DIR=/ssd/zephyr-sdk-0.16.8/
2+
3+
set -e
4+
5+
board=$1
6+
variant=$2
7+
8+
if [[ $# -eq 0 ]]; then
9+
board=arduino_giga_r1//m7
10+
variant=arduino_giga_r1_m7
11+
fi
12+
13+
(west build loader -b $board -p && west build -t llext-edk)
14+
(tar xvfp build/zephyr/llext-edk.tar.xz --directory variants/$variant/)
15+
(cp build/zephyr/zephyr.elf firmwares/zephyr-$variant.elf)
16+
(cp build/zephyr/zephyr.bin firmwares/zephyr-$variant.bin)

0 commit comments

Comments
 (0)