File tree 4 files changed +28
-13
lines changed
4 files changed +28
-13
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,7 @@ source venv/bin/activate
24
24
ZEPHYR_BASE=$( west topdir) /zephyr
25
25
26
26
# Get the variant name (NORMALIZED_BOARD_TARGET in Zephyr)
27
- tmpdir=$( mktemp -d)
28
- variant=$( cmake -DBOARD=$board -P extra/get_variant_name.cmake | grep ' VARIANT=' | cut -d ' =' -f 2)
29
- rm -rf ${tmpdir}
27
+ variant=$( extra/get_variant_name.sh $board )
30
28
31
29
if [ -z " ${variant} " ] ; then
32
30
echo " Failed to get variant name from '$board '"
Original file line number Diff line number Diff line change 1
- # Update this file if a new board gets supported
2
-
1
+ #! /bin/bash
2
+ #
3
3
set -e
4
4
5
- ./extra/build.sh arduino_giga_r1//m7 --shield giga_display_shield
6
- ./extra/build.sh arduino_nano_33_ble//sense
7
- ./extra/build.sh arduino_nicla_sense_me
8
- ./extra/build.sh arduino_portenta_c33
9
- ./extra/build.sh
[email protected] //m7
10
- ./extra/build.sh ek_ra8d1
11
- ./extra/build.sh frdm_mcxn947/mcxn947/cpu0
12
- ./extra/build.sh frdm_rw612
5
+ jq -cr ' .[]' < ./extra/targets.json | while read -r item; do
6
+ board=$( jq -cr ' .board' <<< " $item" )
7
+ args=$( jq -cr ' .args' <<< " $item" )
8
+ ./extra/build.sh " $board " $args
9
+ done
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ set -e
3
+
4
+ # Get the variant name (NORMALIZED_BOARD_TARGET in Zephyr)
5
+ tmpdir=$( mktemp -d)
6
+ variant=$( cmake -DBOARD=$1 -P extra/get_variant_name.cmake | grep ' VARIANT=' | cut -d ' =' -f 2)
7
+ rm -rf ${tmpdir}
8
+
9
+ echo $variant
Original file line number Diff line number Diff line change
1
+ [
2
+ { "board" : " arduino_giga_r1//m7" , "args" : " --shield giga_display_shield" },
3
+ { "board" : " arduino_nano_33_ble//sense" },
4
+ { "board" : " arduino_nicla_sense_me" },
5
+ { "board" : " arduino_portenta_c33" },
6
+ {
"board" :
" [email protected] //m7" },
7
+ { "board" : " ek_ra8d1" },
8
+ { "board" : " frdm_mcxn947/mcxn947/cpu0" },
9
+ { "board" : " frdm_rw612" },
10
+ {}
11
+ ]
You can’t perform that action at this time.
0 commit comments