cross/fetch

20 lines
383 B
Bash
Executable File

#!/bin/sh
set -eux
REPO="$(realpath "$(dirname "$(realpath "$0")")")"
cd "$REPO"
SRC="$REPO/src"
wget -nc -i 'wget.txt' -P "$SRC"
sha256sum -c 'sha256sums.txt'
tar -xf "$SRC/binutils-2.37.tar.xz" -C "$SRC"
tar -xf "$SRC/gcc-11.2.0.tar.xz" -C "$SRC"
tar -xf "$SRC/linux-5.4.199.tar.xz" -C "$SRC"
cd "$SRC/gcc-11.2.0"
./contrib/download_prerequisites