Files
xen/automation/tests-artifacts/kernel/6.1.19.dockerfile
T
Marek Marczykowski-Górecki c51a823946 automation: update x86-64 tests to Linux 6.1.19
It will be used in tests added in subsequent patches.
Enable config options needed for those tests.
While at it, migrate all the x86 tests to the newer kernel, and
introduce x86-64-test-needs to allow deduplication later (for now it's
used only once).

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
2023-03-27 15:15:06 -07:00

41 lines
1.1 KiB
Docker

FROM debian:unstable
LABEL maintainer.name="The Xen Project" \
maintainer.email="xen-devel@lists.xenproject.org"
ENV DEBIAN_FRONTEND=noninteractive
ENV LINUX_VERSION=6.1.19
ENV USER root
RUN mkdir /build
WORKDIR /build
# build depends
RUN apt-get update && \
apt-get --quiet --yes install \
build-essential \
libssl-dev \
bc \
curl \
flex \
bison \
libelf-dev \
&& \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists* /tmp/* /var/tmp/*
# Build the kernel
RUN curl -fsSLO https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-"$LINUX_VERSION".tar.xz && \
tar xvJf linux-"$LINUX_VERSION".tar.xz && \
cd linux-"$LINUX_VERSION" && \
make defconfig && \
make xen.config && \
scripts/config --enable BRIDGE && \
scripts/config --enable IGC && \
cp .config .config.orig && \
cat .config.orig | grep XEN | grep =m |sed 's/=m/=y/g' >> .config && \
make -j$(nproc) bzImage && \
cp arch/x86/boot/bzImage / && \
cd /build && \
rm -rf linux-"$LINUX_VERSION"*