diff --git a/README.md b/README.md index 36868a1..c7d2fbd 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,8 @@ The values that are used to populate the templates are found in values.yaml. Rather than modifying the Dockerfiles directly, the `.j2` template should be changed and the Dockerfiles regenerated. ```sh -python3 -m pip install Jinja2 -python3 template.py +python3 -m pip install Jinja2 pyyaml +python3 template.py values.yaml ``` ## Notes: diff --git a/platforms/n64/egcs_1.1.2-4c/darwin/Dockerfile b/platforms/n64/egcs_1.1.2-4c/darwin/Dockerfile new file mode 100644 index 0000000..2684c58 --- /dev/null +++ b/platforms/n64/egcs_1.1.2-4c/darwin/Dockerfile @@ -0,0 +1,19 @@ +# NOTE: This file is generated automatically via template.py. Do not edit manually! + + +FROM alpine:3.18 as base + +RUN mkdir -p /compilers/n64/egcs_1.1.2-4c + +RUN wget -O mips-binutils-egcs-2.9.5-macos.tar.gz "https://github.com/decompals/mips-binutils-egcs-2.9.5/releases/download/0.6/mips-binutils-egcs-2.9.5-macos.tar.gz" +RUN tar xvzf mips-binutils-egcs-2.9.5-macos.tar.gz -C /compilers/n64/egcs_1.1.2-4c +RUN wget -O mips-gcc-egcs-2.91.66-macos.tar.gz "https://github.com/decompals/mips-gcc-egcs-2.91.66/releases/download/0.7/mips-gcc-egcs-2.91.66-macos.tar.gz" +RUN tar xvzf mips-gcc-egcs-2.91.66-macos.tar.gz -C /compilers/n64/egcs_1.1.2-4c + +RUN chown -R root:root /compilers/n64/egcs_1.1.2-4c/ +RUN chmod +x /compilers/n64/egcs_1.1.2-4c/* + + +FROM scratch as release + +COPY --from=base /compilers /compilers diff --git a/platforms/n64/egcs_1.1.2-4c/linux/Dockerfile b/platforms/n64/egcs_1.1.2-4c/linux/Dockerfile new file mode 100644 index 0000000..f49d081 --- /dev/null +++ b/platforms/n64/egcs_1.1.2-4c/linux/Dockerfile @@ -0,0 +1,19 @@ +# NOTE: This file is generated automatically via template.py. Do not edit manually! + + +FROM alpine:3.18 as base + +RUN mkdir -p /compilers/n64/egcs_1.1.2-4c + +RUN wget -O mips-binutils-egcs-2.9.5-linux.tar.gz "https://github.com/decompals/mips-binutils-egcs-2.9.5/releases/download/0.6/mips-binutils-egcs-2.9.5-linux.tar.gz" +RUN tar xvzf mips-binutils-egcs-2.9.5-linux.tar.gz -C /compilers/n64/egcs_1.1.2-4c +RUN wget -O mips-gcc-egcs-2.91.66-linux.tar.gz "https://github.com/decompals/mips-gcc-egcs-2.91.66/releases/download/0.7/mips-gcc-egcs-2.91.66-linux.tar.gz" +RUN tar xvzf mips-gcc-egcs-2.91.66-linux.tar.gz -C /compilers/n64/egcs_1.1.2-4c + +RUN chown -R root:root /compilers/n64/egcs_1.1.2-4c/ +RUN chmod +x /compilers/n64/egcs_1.1.2-4c/* + + +FROM scratch as release + +COPY --from=base /compilers /compilers diff --git a/values.yaml b/values.yaml index 30f4288..f56d1b7 100644 --- a/values.yaml +++ b/values.yaml @@ -101,6 +101,21 @@ compilers: template: common/default file: https://github.com/AngheloAlf/egcs_1.1.2-4/releases/download/latest/egcs_1.1.2-4.tar.gz + - id: egcs_1.1.2-4c + platform: n64 + template: common/default + arch: linux + files: + - https://github.com/decompals/mips-binutils-egcs-2.9.5/releases/download/0.6/mips-binutils-egcs-2.9.5-linux.tar.gz + - https://github.com/decompals/mips-gcc-egcs-2.91.66/releases/download/0.7/mips-gcc-egcs-2.91.66-linux.tar.gz + - id: egcs_1.1.2-4c + platform: n64 + template: common/default + arch: darwin + files: + - https://github.com/decompals/mips-binutils-egcs-2.9.5/releases/download/0.6/mips-binutils-egcs-2.9.5-macos.tar.gz + - https://github.com/decompals/mips-gcc-egcs-2.91.66/releases/download/0.7/mips-gcc-egcs-2.91.66-macos.tar.gz + - id: gcc4.4.0-mips64-elf platform: n64 template: common/default