mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
Add a container for cross-compiling xen to riscv64. This just includes the cross-compiler and necessary packages for building xen itself (packages for tools, stubdoms, etc., can be added later). Signed-off-by: Connor Davis <connojdavis@gmail.com> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
20 lines
432 B
Docker
20 lines
432 B
Docker
FROM 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
|
|
|
|
# Add compiler path
|
|
ENV CROSS_COMPILE=riscv64-linux-gnu-
|
|
|
|
RUN useradd --create-home user
|
|
USER user
|
|
WORKDIR /build
|