Преглед на файлове

allow building multiple specific targets at same time

liamcottle преди 10 месеца
родител
ревизия
e49eef5588
променени са 1 файла, в които са добавени 5 реда и са изтрити 2 реда
  1. 5 2
      build.sh

+ 5 - 2
build.sh

@@ -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