1- FROM ubuntu:20 .04
1+ FROM ubuntu:22 .04
22
3- RUN apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
3+ ARG DEBIAN_FRONTEND=noninteractive
4+ RUN apt-get update -y && apt-get install -y --no-install-recommends \
45 bc \
56 bzip2 \
67 ca-certificates \
@@ -34,14 +35,14 @@ WORKDIR /build
3435# the kernel. This file was generated by running `make vexpress_defconfig`
3536# followed by `make menuconfig` and then enabling the IPv6 protocol page.
3637COPY host-x86_64/armhf-gnu/vexpress_config /build/.config
37- RUN curl https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.4.253 .tar.xz | \
38+ RUN curl https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.14.320 .tar.xz | \
3839 tar xJf - && \
39- cd /build/linux-4.4.253 && \
40+ cd /build/linux-4.14.320 && \
4041 cp /build/.config . && \
4142 make -j$(nproc) all && \
4243 cp arch/arm/boot/zImage /tmp && \
4344 cd /build && \
44- rm -rf linux-4.4.253
45+ rm -rf linux-4.14.320
4546
4647# Compile an instance of busybox as this provides a lightweight system and init
4748# binary which we will boot into. Only trick here is configuring busybox to
@@ -59,7 +60,7 @@ RUN curl https://www.busybox.net/downloads/busybox-1.32.1.tar.bz2 | tar xjf - &&
5960# Download the ubuntu rootfs, which we'll use as a chroot for all our tests.
6061WORKDIR /tmp
6162RUN mkdir rootfs/ubuntu
62- RUN curl https://cdimage.ubuntu.com/ubuntu-base/releases/20 .04/release/ubuntu-base-20 .04.1 -base-armhf.tar.gz | \
63+ RUN curl https://cdimage.ubuntu.com/ubuntu-base/releases/22 .04/release/ubuntu-base-22 .04.2 -base-armhf.tar.gz | \
6364 tar xzf - -C rootfs/ubuntu && \
6465 cd rootfs && mkdir proc sys dev etc etc/init.d
6566
@@ -76,9 +77,6 @@ RUN arm-linux-gnueabihf-gcc addentropy.c -o rootfs/addentropy -static
7677# Source of the file: https://github.com/vfdev-5/qemu-rpi2-vexpress/raw/master/vexpress-v2p-ca15-tc1.dtb
7778RUN curl -O https://ci-mirrors.rust-lang.org/rustc/vexpress-v2p-ca15-tc1.dtb
7879
79- COPY scripts/cmake.sh /scripts/
80- RUN /scripts/cmake.sh
81-
8280COPY scripts/sccache.sh /scripts/
8381RUN sh /scripts/sccache.sh
8482
0 commit comments