From 0d0dea1a8337595985c919d6329b01b38b0bd8d8 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sun, 13 Jul 2025 15:43:47 +0200 Subject: build: import jOS toolchain config --- Containerfile | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Containerfile (limited to 'Containerfile') diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..d988874 --- /dev/null +++ b/Containerfile @@ -0,0 +1,44 @@ +FROM docker.io/archlinux:latest AS build + +ARG BINUTILS_VERSION +ARG GCC_VERSION +ARG GDB_VERSION +ARG NEWLIB_VERSION +ARG TARGET + +RUN /scripts/0000-prepare-os.sh +RUN /scripts/0100-download.sh +RUN /scripts/0200-build-target-binutils.sh +RUN /scripts/0300-build-bootstrap-gcc.sh +RUN /scripts/0400-build-target-newlib.sh +RUN /scripts/0500-build-target-gcc.sh +RUN /scripts/0600-build-target-gdb.sh + +FROM docker.io/archlinux:latest + +ARG EMULATOR=x86 + +RUN pacman --noconfirm -Syu && \ + pacman --noconfirm --needed -S \ + cmake \ + flex \ + git \ + gmp \ + grub \ + guile \ + libelf \ + libisl \ + libisoburn \ + libmpc \ + mpfr \ + mtools \ + ninja \ + openssh \ + qemu-system-$EMULATOR \ + qemu-ui-curses \ + xxhash \ + zlib + +COPY --from=build /opt/toolchain /opt/toolchain + +ENV PATH=/opt/toolchain/bin:$PATH -- cgit v1.2.3