mirror of
https://github.com/guilhermewerner/rust-ps2
synced 2025-06-15 21:34:19 +00:00
Create Binutils.sh
This commit is contained in:
22
Binutils.sh
Normal file
22
Binutils.sh
Normal 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 "${@}"
|
Reference in New Issue
Block a user