Files
xen/automation/build/archlinux/current-riscv64.dockerfile
T
Roger Pau Monne 3b2ba63994 automation: set architecture in docker files
Pass the desired architecture of the image in the FROM instruction if the
image is possibly multi-platform.

This allows using the x86 Dockerfiles on OS X on arm64 hardware.

No functional change intended.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
2023-11-22 13:37:17 +00:00

22 lines
500 B
Docker

FROM --platform=linux/amd64 archlinux
LABEL maintainer.name="The Xen Project" \
maintainer.email="xen-devel@lists.xenproject.org"
# Packages needed for the build
RUN pacman --noconfirm --needed -Syu \
base-devel \
git \
inetutils \
riscv64-linux-gnu-binutils \
riscv64-linux-gnu-gcc \
riscv64-linux-gnu-glibc \
# For test phase
qemu-system-riscv
# Add compiler path
ENV CROSS_COMPILE=riscv64-linux-gnu-
RUN useradd --create-home user
USER user
WORKDIR /build