File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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)
You can’t perform that action at this time.
0 commit comments