Skip to content

Commit e49eef5

Browse files
committed
allow building multiple specific targets at same time
1 parent 3fbdaf7 commit e49eef5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

build.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,11 @@ mkdir -p out
143143

144144
# handle script args
145145
if [[ $1 == "build-firmware" ]]; then
146-
if [ "$2" ]; then
147-
build_firmware $2
146+
TARGETS=${@:2}
147+
if [ "$TARGETS" ]; then
148+
for env in $TARGETS; do
149+
build_firmware $env
150+
done
148151
else
149152
echo "usage: $0 build-firmware <target>"
150153
exit 1

0 commit comments

Comments
 (0)