1
- FROM ubuntu:20 .04
1
+ FROM ubuntu:22 .04
2
2
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 \
4
5
bc \
5
6
bzip2 \
6
7
ca-certificates \
@@ -34,14 +35,14 @@ WORKDIR /build
34
35
# the kernel. This file was generated by running `make vexpress_defconfig`
35
36
# followed by `make menuconfig` and then enabling the IPv6 protocol page.
36
37
COPY 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 | \
38
39
tar xJf - && \
39
- cd /build/linux-4.4.253 && \
40
+ cd /build/linux-4.14.320 && \
40
41
cp /build/.config . && \
41
42
make -j$(nproc) all && \
42
43
cp arch/arm/boot/zImage /tmp && \
43
44
cd /build && \
44
- rm -rf linux-4.4.253
45
+ rm -rf linux-4.14.320
45
46
46
47
# Compile an instance of busybox as this provides a lightweight system and init
47
48
# 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 - &&
59
60
# Download the ubuntu rootfs, which we'll use as a chroot for all our tests.
60
61
WORKDIR /tmp
61
62
RUN 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 | \
63
64
tar xzf - -C rootfs/ubuntu && \
64
65
cd rootfs && mkdir proc sys dev etc etc/init.d
65
66
@@ -76,9 +77,6 @@ RUN arm-linux-gnueabihf-gcc addentropy.c -o rootfs/addentropy -static
76
77
# Source of the file: https://github.com/vfdev-5/qemu-rpi2-vexpress/raw/master/vexpress-v2p-ca15-tc1.dtb
77
78
RUN curl -O https://ci-mirrors.rust-lang.org/rustc/vexpress-v2p-ca15-tc1.dtb
78
79
79
- COPY scripts/cmake.sh /scripts/
80
- RUN /scripts/cmake.sh
81
-
82
80
COPY scripts/sccache.sh /scripts/
83
81
RUN sh /scripts/sccache.sh
84
82
0 commit comments