Skip to content

Commit 059e7fb

Browse files
committed
scripts: add build_all
1 parent f77d3d3 commit 059e7fb

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

extra/build.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if [ $ZEPHYR_SDK_INSTALL_DIR == "" ]; then
1+
if [ x$ZEPHYR_SDK_INSTALL_DIR == x"" ]; then
22
export ZEPHYR_SDK_INSTALL_DIR=/ssd/zephyr-sdk-0.16.8/
33
fi
44

@@ -16,5 +16,11 @@ source venv/bin/activate
1616

1717
(west build loader -b $board -p && west build -t llext-edk)
1818
(tar xvfp build/zephyr/llext-edk.tar.xz --directory variants/$variant/)
19+
1920
(cp build/zephyr/zephyr.elf firmwares/zephyr-$variant.elf)
20-
(cp build/zephyr/zephyr.bin firmwares/zephyr-$variant.bin)
21+
if [ -f build/zephyr/zephyr.bin ]; then
22+
cp build/zephyr/zephyr.bin firmwares/zephyr-$variant.bin
23+
elif [ -f build/zephyr/zephyr.hex ]; then
24+
cp build/zephyr/zephyr.hex firmwares/zephyr-$variant.hex
25+
fi
26+

extra/build_all.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Update this file if a new board gets supported
2+
3+
set -e
4+
5+
./extra/build.sh arduino_giga_r1//m7 arduino_giga_r1_m7
6+
./extra/build.sh arduino_nano_33_ble_sense arduino_nano_33_ble_sense
7+
./extra/build.sh arduino_portenta_h7//m7 arduino_portenta_h7
8+
./extra/build.sh ek_ra8d1 ek_ra8d1
9+
./extra/build.sh frdm_mcxn947/mcxn947/cpu0 frdm_mcxn947_mcxn947_cpu0

0 commit comments

Comments
 (0)