setup_musl_cross.sh 257 B

1234567891011
  1. #!/bin/bash
  2. set -xeuo pipefail
  3. TARGET="$1"
  4. # Download musl-cross toolchain from musl.cc
  5. cd "$HOME"
  6. wget -q "https://musl.cc/${TARGET}-cross.tgz"
  7. mkdir -p musl-cross
  8. tar -xf "${TARGET}-cross.tgz" -C musl-cross --strip-components=1
  9. rm "${TARGET}-cross.tgz"