From 9b93856d2d0f58cdbfe1256f691ec9848f755261 Mon Sep 17 00:00:00 2001 From: dowan gullient Date: Fri, 17 Apr 2026 10:59:17 +0200 Subject: [PATCH] support/testing: test_grub: Kernel update bump to last LTS (6.18) BR2_LINUX_KERNEL_NEEDS_HOST_LIBELF=y : While building the kernel tools, libelf header is missing because objtools was not compiled by default on older kernel versions. This results in the following error: [...]tools/objtool/include/objtool/elf.h:10:10: fatal error: gelf.h: No such file or directory 10 | #include That is why BR2_LINUX_KERNEL_NEEDS_HOST_LIBELF was selected to build host-libelf. Signed-off-by: Dowan Gullient [Julien: updated kernel to 6.18.21] Signed-off-by: Julien Olivain --- support/testing/tests/boot/test_grub.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/support/testing/tests/boot/test_grub.py b/support/testing/tests/boot/test_grub.py index 061bfc9a2f..e873683b5a 100644 --- a/support/testing/tests/boot/test_grub.py +++ b/support/testing/tests/boot/test_grub.py @@ -14,7 +14,7 @@ class TestGrubi386BIOS(infra.basetest.BRTest): BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/pc/genimage-bios.cfg" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y - BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.19.204" + BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.18.21" BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/pc/linux.config" BR2_LINUX_KERNEL_INSTALL_TARGET=y @@ -43,11 +43,12 @@ class TestGrubX8664EFI(infra.basetest.BRTest): BR2_ROOTFS_POST_IMAGE_SCRIPT="board/pc/post-image-efi.sh" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y - BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.19.204" + BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.18.21" BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/pc/linux.config" BR2_LINUX_KERNEL_INSTALL_TARGET=y BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y + BR2_LINUX_KERNEL_NEEDS_HOST_LIBELF=y BR2_PACKAGE_EFIVAR=y BR2_TARGET_ROOTFS_EXT2=y BR2_TARGET_EDK2=y @@ -91,7 +92,7 @@ class TestGrubAArch64EFI(infra.basetest.BRTest): BR2_ROOTFS_POST_IMAGE_SCRIPT="{post_image}" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y - BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.18" + BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.18.21" BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/aarch64-virt/linux.config" BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="{linux_fragment}" @@ -139,7 +140,7 @@ class TestGrubRiscV64EFI(infra.basetest.BRTest): BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/qemu/riscv64-virt-efi/genimage.cfg" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y - BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.6.59" + BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.18.21" BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y BR2_PACKAGE_EFIVAR=y BR2_TARGET_ROOTFS_EXT2=y