summary refs log tree commit diff
path: root/src/ci/docker/scripts/crosstool-ng-git.sh
blob: e86810ae6133ec394337b8656e9ea8868b5ee9a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
set -ex

URL=https://github.com/crosstool-ng/crosstool-ng
REV=ed12fa68402f58e171a6f79500f73f4781fdc9e5

mkdir crosstool-ng
cd crosstool-ng
git init
git fetch --depth=1 ${URL} ${REV}
git reset --hard FETCH_HEAD
./bootstrap
./configure --prefix=/usr/local
make -j$(nproc)
make install
cd ..
rm -rf crosstool-ng