Create Binutils.sh

This commit is contained in:
GuilhermeWerner
2021-09-15 14:29:23 -03:00
parent 1f184967aa
commit 2cb56cbddf

22
Binutils.sh Normal file
View File

@ -0,0 +1,22 @@
#!/usr/bin/env sh
set -x
main() {
mkdir -p /tmp/ps2/binutils /tmp/ps2/build
curl --retry 3 -sSfL "https://ftp.gnu.org/gnu/binutils/binutils-2.36.tar.gz" -O
tar -C /tmp/ps2/binutils --strip-components=1 -xf "binutils-2.36.tar.gz"
cd /tmp/ps2
cd build
../binutils/configure --target=mips64el-none-elf
make "-j$(nproc)"
make install
cd ..
rm -rf /tmp/ps2
}
main "${@}"