3 mkdir /usr/local/mipsel-linux-musl
5 # Note that this originally came from:
6 # https://downloads.openwrt.org/snapshots/trunk/malta/generic/
7 # OpenWrt-Toolchain-malta-le_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2
8 URL="https://ci-mirrors.rust-lang.org/rustc"
9 FILE="OpenWrt-Toolchain-malta-le_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2"
10 curl -L "$URL/$FILE" | tar xjf - -C /usr/local/mipsel-linux-musl --strip-components=2
12 for file in /usr/local/mipsel-linux-musl/bin/mipsel-openwrt-linux-*; do
13 ln -s $file /usr/local/bin/`basename $file`