mirror of
https://github.com/grumpycoders/pcsx-redux.git
synced 2026-10-12 02:15:13 +00:00
Bumping toolchains to latest binutils/gcc.
This commit is contained in:
@@ -8,17 +8,17 @@
|
||||
# dependencies to do so. The script expects to be run as root.
|
||||
#
|
||||
|
||||
wget https://ftp.gnu.org/gnu/binutils/binutils-2.37.tar.gz
|
||||
tar xvfz binutils-2.37.tar.gz
|
||||
cd binutils-2.37
|
||||
wget https://ftp.gnu.org/gnu/binutils/binutils-2.38.tar.gz
|
||||
tar xvfz binutils-2.38.tar.gz
|
||||
cd binutils-2.38
|
||||
./configure --target=mipsel-none-elf --disable-multilib --disable-nls --disable-werror
|
||||
make
|
||||
make install-strip
|
||||
cd ..
|
||||
|
||||
wget https://ftp.gnu.org/gnu/gcc/gcc-11.2.0/gcc-11.2.0.tar.gz
|
||||
tar xvfz gcc-11.2.0.tar.gz
|
||||
cd gcc-11.2.0
|
||||
wget https://ftp.gnu.org/gnu/gcc/gcc-11.3.0/gcc-11.3.0.tar.gz
|
||||
tar xvfz gcc-11.3.0.tar.gz
|
||||
cd gcc-11.3.0
|
||||
mkdir build
|
||||
cd build
|
||||
../configure --target=mipsel-none-elf --without-isl --disable-nls --disable-threads --disable-shared --disable-libssp --disable-libstdcxx-pch --disable-libgomp --disable-werror --without-headers --with-as=/usr/local/bin/mipsel-none-elf-as --with-ld=/usr/local/bin/mipsel-none-elf-ld --enable-languages=c,c++
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
class MipselNoneElfBinutils < Formula
|
||||
desc "FSF Binutils for mipsel cross development"
|
||||
homepage "https://www.gnu.org/software/binutils/"
|
||||
url "https://ftp.gnu.org/gnu/binutils/binutils-2.37.tar.gz"
|
||||
sha256 "c44968b97cd86499efbc4b4ab7d98471f673e5414c554ef54afa930062dbbfcb"
|
||||
url "https://ftp.gnu.org/gnu/binutils/binutils-2.38.tar.gz"
|
||||
sha256 "b3f1dc5b17e75328f19bd88250bee2ef9f91fc8cbb7bd48bdb31390338636052"
|
||||
|
||||
def install
|
||||
system "./configure", "--target=mipsel-none-elf",
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
class MipselNoneElfGcc < Formula
|
||||
desc "The GNU compiler collection for mipsel"
|
||||
homepage "https://gcc.gnu.org"
|
||||
url "https://ftp.gnu.org/gnu/gcc/gcc-11.2.0/gcc-11.2.0.tar.xz"
|
||||
sha256 "d08edc536b54c372a1010ff6619dd274c0f1603aa49212ba20f7aa2cda36fa8b"
|
||||
url "https://ftp.gnu.org/gnu/gcc/gcc-11.3.0/gcc-11.3.0.tar.xz"
|
||||
sha256 "b47cf2818691f5b1e21df2bb38c795fac2cfbd640ede2d0a5e1c89e338a3ac39"
|
||||
|
||||
depends_on "gmp"
|
||||
depends_on "mipsel-none-elf-binutils"
|
||||
|
||||
+19
-19
@@ -1,6 +1,6 @@
|
||||
# escape=`
|
||||
|
||||
# Dockerfile to generate the Windows g++-mipsel-none-elf-11.2.0.zip package.
|
||||
# Dockerfile to generate the Windows g++-mipsel-none-elf-11.3.0.zip package.
|
||||
|
||||
FROM mcr.microsoft.com/windows/servercore:ltsc2019
|
||||
WORKDIR C:\windows\temp
|
||||
@@ -45,40 +45,40 @@ RUN C:\msys64\usr\bin\bash.exe -l -c 'pacman -S --needed --noconfirm mingw-w64-x
|
||||
RUN C:\msys64\usr\bin\bash.exe -l -c 'pacman -S --needed --noconfirm mingw-w64-x86_64-python mingw-w64-x86_64-readline'
|
||||
RUN C:\msys64\usr\bin\bash.exe -l -c 'pacman -Scc --noconfirm'
|
||||
|
||||
ARG BINUTILS=https://ftp.gnu.org/gnu/binutils/binutils-2.37.tar.xz
|
||||
ARG GCC=https://ftp.gnu.org/gnu/gcc/gcc-11.2.0/gcc-11.2.0.tar.xz
|
||||
ARG BINUTILS=https://ftp.gnu.org/gnu/binutils/binutils-2.38.tar.xz
|
||||
ARG GCC=https://ftp.gnu.org/gnu/gcc/gcc-11.3.0/gcc-11.3.0.tar.xz
|
||||
|
||||
RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; `
|
||||
Invoke-WebRequest $env:BINUTILS -OutFile "C:\Windows\Temp\binutils-2.37.tar.xz"; `
|
||||
Start-Process -FilePath "C:\7-Zip\7z.exe" -ArgumentList e, "C:\Windows\Temp\binutils-2.37.tar.xz", `-y, `-oC:\Windows\Temp\ -NoNewWindow -PassThru -Wait; `
|
||||
Start-Process -FilePath "C:\7-Zip\7z.exe" -ArgumentList x, "C:\Windows\Temp\binutils-2.37.tar", `-y, `-oC:\ -NoNewWindow -PassThru -Wait; `
|
||||
Invoke-WebRequest $env:BINUTILS -OutFile "C:\Windows\Temp\binutils-2.38.tar.xz"; `
|
||||
Start-Process -FilePath "C:\7-Zip\7z.exe" -ArgumentList e, "C:\Windows\Temp\binutils-2.38.tar.xz", `-y, `-oC:\Windows\Temp\ -NoNewWindow -PassThru -Wait; `
|
||||
Start-Process -FilePath "C:\7-Zip\7z.exe" -ArgumentList x, "C:\Windows\Temp\binutils-2.38.tar", `-y, `-oC:\ -NoNewWindow -PassThru -Wait; `
|
||||
Remove-Item @('C:\Windows\Temp\*', 'C:\Users\*\Appdata\Local\Temp\*') -Force -Recurse;
|
||||
|
||||
RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; `
|
||||
Invoke-WebRequest $env:GCC -OutFile "C:\Windows\Temp\gcc-11.2.0.tar.xz"; `
|
||||
Start-Process -FilePath "C:\7-Zip\7z.exe" -ArgumentList e, "C:\Windows\Temp\gcc-11.2.0.tar.xz", `-y, `-oC:\Windows\Temp\ -NoNewWindow -PassThru -Wait; `
|
||||
Start-Process -FilePath "C:\7-Zip\7z.exe" -ArgumentList x, "C:\Windows\Temp\gcc-11.2.0.tar", `-y, `-oC:\ -NoNewWindow -PassThru -Wait; `
|
||||
Invoke-WebRequest $env:GCC -OutFile "C:\Windows\Temp\gcc-11.3.0.tar.xz"; `
|
||||
Start-Process -FilePath "C:\7-Zip\7z.exe" -ArgumentList e, "C:\Windows\Temp\gcc-11.3.0.tar.xz", `-y, `-oC:\Windows\Temp\ -NoNewWindow -PassThru -Wait; `
|
||||
Start-Process -FilePath "C:\7-Zip\7z.exe" -ArgumentList x, "C:\Windows\Temp\gcc-11.3.0.tar", `-y, `-oC:\ -NoNewWindow -PassThru -Wait; `
|
||||
Remove-Item @('C:\Windows\Temp\*', 'C:\Users\*\Appdata\Local\Temp\*') -Force -Recurse;
|
||||
|
||||
ENV MSYSTEM MINGW64
|
||||
|
||||
RUN C:\msys64\usr\bin\bash.exe -l -c 'cd /c/binutils-2.37 && /c/binutils-2.37/configure --target=mipsel-none-elf --disable-multilib --disable-nls --disable-werror --prefix=/DIST || (cat /BUILD/config.log && exit 1)'
|
||||
RUN C:\msys64\usr\bin\bash.exe -l -c 'cd /c/binutils-2.38 && /c/binutils-2.38/configure --target=mipsel-none-elf --disable-multilib --disable-nls --disable-werror --prefix=/DIST || (cat /BUILD/config.log && exit 1)'
|
||||
|
||||
RUN C:\msys64\usr\bin\bash.exe -l -c 'cd /c/binutils-2.37/libiberty && sed -i s/\\\\buint\\\\b/unsigned/ rust-demangle.c'
|
||||
RUN C:\msys64\usr\bin\bash.exe -l -c 'cd /c/binutils-2.38/libiberty && sed -i s/\\\\buint\\\\b/unsigned/ rust-demangle.c'
|
||||
|
||||
RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /c/binutils-2.37 all'
|
||||
RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /c/binutils-2.37 install-strip'
|
||||
RUN C:\msys64\usr\bin\bash.exe -l -c 'cp /c/binutils-2.37/COPYING* /DIST'
|
||||
RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /c/binutils-2.38 all'
|
||||
RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /c/binutils-2.38 install-strip'
|
||||
RUN C:\msys64\usr\bin\bash.exe -l -c 'cp /c/binutils-2.38/COPYING* /DIST'
|
||||
|
||||
RUN C:\msys64\usr\bin\bash.exe -l -c 'mkdir /c/gcc-11.2.0/build && cd /c/gcc-11.2.0/build && ../configure --target=mipsel-none-elf --without-isl --disable-nls --disable-threads --disable-shared --disable-libssp --disable-libstdcxx-pch --disable-libgomp --disable-werror --without-headers --with-as=/DIST/bin/mipsel-none-elf-as --with-ld=/DIST/bin/mipsel-none-elf-ld --enable-languages=c,c++ --prefix=/DIST || (cat /BUILD/config.log && exit 1)'
|
||||
RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /c/gcc-11.2.0/build all-gcc'
|
||||
RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /c/gcc-11.2.0/build all-target-libgcc'
|
||||
RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /c/gcc-11.2.0/build install-strip-gcc install-strip-target-libgcc'
|
||||
RUN C:\msys64\usr\bin\bash.exe -l -c 'mkdir /c/gcc-11.3.0/build && cd /c/gcc-11.3.0/build && ../configure --target=mipsel-none-elf --without-isl --disable-nls --disable-threads --disable-shared --disable-libssp --disable-libstdcxx-pch --disable-libgomp --disable-werror --without-headers --with-as=/DIST/bin/mipsel-none-elf-as --with-ld=/DIST/bin/mipsel-none-elf-ld --enable-languages=c,c++ --prefix=/DIST || (cat /BUILD/config.log && exit 1)'
|
||||
RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /c/gcc-11.3.0/build all-gcc'
|
||||
RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /c/gcc-11.3.0/build all-target-libgcc'
|
||||
RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /c/gcc-11.3.0/build install-strip-gcc install-strip-target-libgcc'
|
||||
|
||||
RUN C:\msys64\usr\bin\bash.exe -l -c 'for t in cat cp echo mkdir rm touch ; do cp /usr/bin/$t.exe /DIST/bin ; done'
|
||||
RUN C:\msys64\usr\bin\bash.exe -l -c 'cp /mingw64/bin/mingw32-make.exe /DIST/bin/make.exe'
|
||||
RUN C:\msys64\usr\bin\bash.exe -l -c 'cd /DIST && find . -name *.exe | while read bin ; do ldd $bin | cut -f2 -d\> | cut -f2 -d\ | grep -v /c/Windows/S | while read f ; do cp $f $(dirname $bin) ; done ; done'
|
||||
|
||||
RUN C:\msys64\usr\bin\bash.exe -l -c 'cd /DIST && zip /c/g++-mipsel-none-elf-11.2.0.zip . -r'
|
||||
RUN C:\msys64\usr\bin\bash.exe -l -c 'cd /DIST && zip /c/g++-mipsel-none-elf-11.3.0.zip . -r'
|
||||
|
||||
CMD C:\msys64\usr\bin\bash.exe -l
|
||||
|
||||
Reference in New Issue
Block a user