Browse Source

Teach mkroot/mkroot.sh CROSS= to accept multiple comma separated targets.

Rob Landley 5 months ago
parent
commit
5ab6c0d5e2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      mkroot/mkroot.sh

+ 1 - 0
mkroot/mkroot.sh

@@ -32,6 +32,7 @@ elif [ -n "$CROSS" ]; then # CROSS=all/allnonstop/$ARCH else list known $ARCHes
   [ ! -d "$CCC" ] && die "No ccc symlink to compiler directory."
   TARGETS="$(ls "$CCC" | sed -n 's/-.*//p' | sort -u)"
 
+  [ "${CROSS/,/}" == "$CROSS" ] || { TARGETS="${CROSS//,/ }"; CROSS=all; }
   if [ "${CROSS::3}" == all ]; then # loop calling ourselves for each target
     for i in $TARGETS; do
       "$0" "$@" CROSS=$i || [ "$CROSS" == allnonstop ] || exit 1