allow building multiple specific targets at same time

This commit is contained in:
liamcottle
2025-09-26 22:59:20 +12:00
parent 3fbdaf7ce6
commit e49eef5588

View File

@@ -143,8 +143,11 @@ mkdir -p out
# handle script args
if [[ $1 == "build-firmware" ]]; then
if [ "$2" ]; then
build_firmware $2
TARGETS=${@:2}
if [ "$TARGETS" ]; then
for env in $TARGETS; do
build_firmware $env
done
else
echo "usage: $0 build-firmware <target>"
exit 1