Download the crosstool from GitHub instead of crosstool-ng.org

Temporary workaround since crosstool-ng.org was down. Consider mirroring
the release tarball as a more permanent solution.
This commit is contained in:
kennytm 2017-12-14 01:21:33 +08:00
parent 3dfbc88a62
commit bf0653ea8e
No known key found for this signature in database
GPG key ID: FEF6C8051D0E013C

View file

@ -10,11 +10,12 @@
set -ex
url="http://crosstool-ng.org/download/crosstool-ng/crosstool-ng-1.22.0.tar.bz2"
curl -f $url | tar xjf -
cd crosstool-ng
url="https://github.com/crosstool-ng/crosstool-ng/archive/crosstool-ng-1.22.0.tar.gz"
curl -Lf $url | tar xzf -
cd crosstool-ng-crosstool-ng-1.22.0
./bootstrap
./configure --prefix=/usr/local
make -j$(nproc)
make install
cd ..
rm -rf crosstool-ng
rm -rf crosstool-ng-crosstool-ng-1.22.0