From 2cb56cbddf13c82af27140b326343fc7ffc4e26e Mon Sep 17 00:00:00 2001 From: GuilhermeWerner <26710260+GuilhermeWerner@users.noreply.github.com> Date: Wed, 15 Sep 2021 14:29:23 -0300 Subject: [PATCH] Create Binutils.sh --- Binutils.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Binutils.sh diff --git a/Binutils.sh b/Binutils.sh new file mode 100644 index 0000000..048bcee --- /dev/null +++ b/Binutils.sh @@ -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 "${@}"