This introduces a new Dockerfile.builder file that can be used by docker build to generate a container that can build OpenBIOS based upon Debian 11.2 and the crosstool compilers from kernel.org.
The installed cross-compilers allow the building of SPARC32, SPARC64 and PPC binaries.
Signed-off-by: Mark Cave-Ayland mark.cave-ayland@ilande.co.uk --- docker/Dockerfile.builder | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 docker/Dockerfile.builder
diff --git a/docker/Dockerfile.builder b/docker/Dockerfile.builder new file mode 100644 index 0000000..b4abf7f --- /dev/null +++ b/docker/Dockerfile.builder @@ -0,0 +1,19 @@ +FROM ghcr.io/openbios/fcode-utils:master AS cross + +RUN apt-get update && \ + apt-get install -y wget xz-utils tar && \ + wget https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/10.1.0/... && \ + tar Jxf x86_64-gcc-10.1.0-nolibc-sparc64-linux.tar.xz && \ + rm -f x86_64-gcc-10.1.0-nolibc-sparc64-linux.tar.xz && \ + wget https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/10.1.0/... && \ + tar Jxf x86_64-gcc-10.1.0-nolibc-powerpc-linux.tar.xz && \ + rm -f x86_64-gcc-10.1.0-nolibc-powerpc-linux.tar.xz + +FROM ghcr.io/openbios/fcode-utils:master AS builder + +COPY --from=cross /gcc-10.1.0-nolibc /gcc-10.1.0-nolibc + +RUN apt-get update && \ + apt-get install -y make xsltproc gcc gcc-multilib zip + +ENV PATH /gcc-10.1.0-nolibc/sparc64-linux/bin:/gcc-10.1.0-nolibc/powerpc-linux/bin:$PATH