Skip to content

Commit 7a448c2

Browse files
Add support for 64k pages with ARM64 (#141)
RHEL 9 and RHCOS for 4.15 are adding support for installing a 64k pages size ARM kernel at runtime, with the `kernelType: '64k-pages'` attribute in the MachineConfig specification. When applied, the kernel is switched to the `+64k` version, e.g. `5.14.0-284.41.1.el9_2.aarch64` becomes `5.14.0-284.41.1.el9_2.aarch64+64k`. From a Driver Toolkit perspective, the user should be able to use a kernel version suffixed by `+64k` at build time. This is provided by the `kernel-64k` packages. This change adds the relevant packages to the driver toolkit image when the architecture is `aarch64`. Signed-off-by: Fabien Dupont <fdupont@redhat.com> Co-authored-by: Fabien Dupont <fdupont@redhat.com>
1 parent bbe9ffc commit 7a448c2

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ RUN if [ $(arch) = x86_64 ]; then \
2020
kernel-rt-modules-extra${RT_KERNEL_VERSION:+-}${RT_KERNEL_VERSION}; \
2121
fi
2222

23+
# 64k-pages kernel packages for aarch64
24+
# Headers are not compiled, so there is no kernel-64k-headers packages,
25+
# and compilation will use the headers from kernel-headers
26+
RUN if [ $(arch) = aarch64 ]; then \
27+
dnf -y install \
28+
kernel-64k-devel${KERNEL_VERSION:+-}${KERNEL_VERSION} \
29+
kernel-64k-modules${KERNEL_VERSION:+-}${KERNEL_VERSION} \
30+
kernel-64k-modules-extra${KERNEL_VERSION:+-}${KERNEL_VERSION}; \
31+
fi
32+
2333
RUN dnf -y install kernel-rpm-macros
2434

2535
# Additional packages that are mandatory for driver-containers

0 commit comments

Comments
 (0)