]> git.lizzy.rs Git - rust.git/blob - src/ci/docker/cross/install-mips-musl.sh
ci: Upload/download from a new S3 bucket
[rust.git] / src / ci / docker / cross / install-mips-musl.sh
1 # Copyright 2017 The Rust Project Developers. See the COPYRIGHT
2 # file at the top-level directory of this distribution and at
3 # http://rust-lang.org/COPYRIGHT.
4 #
5 # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 # <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 # option. This file may not be copied, modified, or distributed
9 # except according to those terms.
10
11 set -ex
12
13 mkdir /usr/local/mips-linux-musl
14
15 # originally from
16 # https://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/
17 # OpenWrt-Toolchain-ar71xx-generic_gcc-5.3.0_musl-1.1.16.Linux-x86_64.tar.bz2
18 URL="https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror"
19 FILE="OpenWrt-Toolchain-ar71xx-generic_gcc-5.3.0_musl-1.1.16.Linux-x86_64.tar.bz2"
20 curl -L "$URL/$FILE" | tar xjf - -C /usr/local/mips-linux-musl --strip-components=2
21
22 for file in /usr/local/mips-linux-musl/bin/mips-openwrt-linux-*; do
23   ln -s $file /usr/local/bin/`basename $file`
24 done