Skip to content

Commit

Permalink
Add gcc 2.8.1-psx
Browse files Browse the repository at this point in the history
  • Loading branch information
mkst committed Aug 8, 2024
1 parent 2ff07e6 commit 510674d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
27 changes: 27 additions & 0 deletions platforms/ps1/gcc2.8.1-psx/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# NOTE: This file is generated automatically via template.py. Do not edit manually!


FROM alpine:3.18 as base

RUN mkdir -p /compilers/ps1/gcc2.8.1-psx

RUN wget -O gcc-2.8.1-psx.tar.gz "https://github.com/decompals/old-gcc/releases/download/0.9/gcc-2.8.1-psx.tar.gz"
RUN tar xvzf gcc-2.8.1-psx.tar.gz -C /compilers/ps1/gcc2.8.1-psx

ARG MASPSX_HASH=8808c7383f819d69ddff9550d8bc1af3fade7427

RUN wget -O maspsx.zip https://github.com/mkst/maspsx/archive/${MASPSX_HASH}.zip
RUN unzip maspsx.zip
RUN cp -r maspsx-${MASPSX_HASH} /compilers/ps1/gcc2.8.1-psx/maspsx

RUN echo '#!/bin/bash' >> as
RUN echo 'python3 $(dirname -- $0)/maspsx/maspsx.py --run-assembler -I${COMPILER_DIR} $@' >> as
RUN cp as /compilers/ps1/gcc2.8.1-psx/

RUN chown -R root:root /compilers/ps1/gcc2.8.1-psx/
RUN chmod +x /compilers/ps1/gcc2.8.1-psx/*


FROM scratch as release

COPY --from=base /compilers /compilers
4 changes: 4 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@ compilers:
platform: ps1
template: ps1/maspsx
file: https://github.com/decompals/old-gcc/releases/download/0.7/gcc-2.8.1.tar.gz
- id: gcc2.8.1-psx
platform: ps1
template: ps1/maspsx
file: https://github.com/decompals/old-gcc/releases/download/0.9/gcc-2.8.1-psx.tar.gz
- id: gcc2.91.66-mipsel
platform: ps1
template: ps1/maspsx
Expand Down

0 comments on commit 510674d

Please sign in to comment.