Skip to content

Commit 4e82aa9

Browse files
authored
Merge pull request #321 from nicolasnoble/mips-compilers
Some more tweaks to the toolchains.
2 parents d2f0e2e + 6f2dabd commit 4e82aa9

File tree

3 files changed

+7
-46
lines changed

3 files changed

+7
-46
lines changed

tools/win32-gdb/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ RUN C:\msys64\usr\bin\bash.exe -l -c 'exit 0'; `
3737
Get-Process @('bash', 'dirmngr', 'gpg-agent', 'pacman') -ErrorAction SilentlyContinue | Stop-Process -Force -PassThru | Wait-Process; `
3838
Write-Host 'Eating error.';
3939

40-
RUN C:\msys64\usr\bin\bash.exe -l -c 'pacman -S --needed --noconfirm mingw-w64-x86_64-toolchain'
40+
RUN C:\msys64\usr\bin\bash.exe -l -c 'pacman -S --needed --noconfirm mingw-w64-x86_64-toolchain'
4141
RUN C:\msys64\usr\bin\bash.exe -l -c 'pacman -S --needed --noconfirm automake autoconf make intltool libtool zip unzip'
4242
RUN C:\msys64\usr\bin\bash.exe -l -c 'pacman -S --needed --noconfirm bison diffutils texinfo'
4343
RUN C:\msys64\usr\bin\bash.exe -l -c 'pacman -S --needed --noconfirm mingw-w64-x86_64-expat mingw-w64-x86_64-ncurses'

tools/win32-mips/Dockerfile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,18 @@ ENV MSYSTEM MINGW64
6464

6565
RUN C:\msys64\usr\bin\bash.exe -l -c 'cd /c/binutils-2.35.1 && /c/binutils-2.35.1/configure --target=mipsel-none-elf --disable-multilib --disable-nls --disable-werror --prefix=/DIST || (cat /BUILD/config.log && exit 1)'
6666

67-
RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /c/binutils-2.35.1 all -j12'
67+
RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /c/binutils-2.35.1 all'
6868
RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /c/binutils-2.35.1 install-strip'
6969
RUN C:\msys64\usr\bin\bash.exe -l -c 'cp /c/binutils-2.35.1/COPYING* /DIST'
7070

7171
RUN C:\msys64\usr\bin\bash.exe -l -c 'mkdir /c/gcc-10.2.0/build && cd /c/gcc-10.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)'
72-
RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /c/gcc-10.2.0/build all-gcc -j12'
73-
RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /c/gcc-10.2.0/build all-target-libgcc -j12'
72+
RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /c/gcc-10.2.0/build all-gcc'
73+
RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /c/gcc-10.2.0/build all-target-libgcc'
7474
RUN C:\msys64\usr\bin\bash.exe -l -c 'make -C /c/gcc-10.2.0/build install-strip-gcc install-strip-target-libgcc'
75-
COPY ./touch.c C:\
76-
RUN C:\msys64\usr\bin\bash.exe -l -c 'gcc -O2 /c/touch.c -o /DIST/bin/touch.exe'
77-
RUN C:\msys64\usr\bin\bash.exe -l -c 'strip /DIST/bin/touch.exe'
75+
76+
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'
7877
RUN C:\msys64\usr\bin\bash.exe -l -c 'cp /mingw64/bin/mingw32-make.exe /DIST/bin/make.exe'
79-
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 mingw64 | while read f ; do cp $f $(dirname $bin) ; done ; done'
78+
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'
8079

8180
RUN C:\msys64\usr\bin\bash.exe -l -c 'cd /DIST && zip /c/g++-mipsel-none-elf-10.2.0.zip . -r'
8281

tools/win32-mips/touch.c

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)