mirror of
https://codeberg.org/landley/toybox.git
synced 2026-01-26 06:07:55 +00:00
Teach mkroot/mkroot.sh CROSS= to accept multiple comma separated targets.
This commit is contained in:
parent
1ed82ade2f
commit
5ab6c0d5e2
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user