summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikko Rapeli <mikko.rapeli@linaro.org>2025-05-30 14:37:45 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-06-02 22:17:24 +0100
commitfa5cf8a8082d6c3383fab50d7abe34e8671b6e9d (patch)
tree50c35cde7853be8a16b36d0512ad2ba02c709c3e
parenta2bd18fb3649be6e22994b4641f5ad4d394fdead (diff)
downloadpoky-fa5cf8a8082d6c3383fab50d7abe34e8671b6e9d.tar.gz
image_types_wic.bbclass: add "grub-efi" back to WKS_FILE_DEPENDS_BOOTLOADERS on x86-64
This was removed by me without good reasons in commit 2f0ef8cd0e61c34e67ad9c7508094da3c23f5fce "wic bootimg-efi.py: change UKI support from wic plugin to uki.bbclass" and results in grub-efi binaries missing from genereted ESP partition on qemux86-64. Fixes oeqa selftest overlayfs.OverlayFSEtcRunTimeTests.test_image_feature_is_missing after wic detects missing EFI loader files on ESP partition. Test case was passing due qemu syslinux boot using kernel directly from /boot and not using UEFI firmware to boot. Fixes: 2f0ef8cd0e61 ("wic bootimg-efi.py: change UKI support from wic plugin to uki.bbclass") WKS_FILE_DEPENDS_BOOTLOADERS needs to list all EFI loaders because it's used in DEPENDS and thus can't use conditional python macros to select which loader is actually needed in sysroot when wic builds the images and ESP partition. (From OE-Core rev: c6eb09f45900367df01958ee7012e9de974b401f) Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes-recipe/image_types_wic.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/image_types_wic.bbclass b/meta/classes-recipe/image_types_wic.bbclass
index 7c6a6f2e23..740ed946f8 100644
--- a/meta/classes-recipe/image_types_wic.bbclass
+++ b/meta/classes-recipe/image_types_wic.bbclass
@@ -114,7 +114,7 @@ WKS_FILE_DEPENDS_BOOTLOADERS = ""
114WKS_FILE_DEPENDS_BOOTLOADERS:aarch64 = "grub-efi systemd-boot" 114WKS_FILE_DEPENDS_BOOTLOADERS:aarch64 = "grub-efi systemd-boot"
115WKS_FILE_DEPENDS_BOOTLOADERS:arm = "systemd-boot" 115WKS_FILE_DEPENDS_BOOTLOADERS:arm = "systemd-boot"
116WKS_FILE_DEPENDS_BOOTLOADERS:x86 = "syslinux grub-efi systemd-boot" 116WKS_FILE_DEPENDS_BOOTLOADERS:x86 = "syslinux grub-efi systemd-boot"
117WKS_FILE_DEPENDS_BOOTLOADERS:x86-64 = "syslinux systemd-boot" 117WKS_FILE_DEPENDS_BOOTLOADERS:x86-64 = "syslinux grub-efi systemd-boot"
118WKS_FILE_DEPENDS_BOOTLOADERS:x86-x32 = "syslinux grub-efi" 118WKS_FILE_DEPENDS_BOOTLOADERS:x86-x32 = "syslinux grub-efi"
119 119
120WKS_FILE_DEPENDS ??= "${WKS_FILE_DEPENDS_DEFAULT} ${WKS_FILE_DEPENDS_BOOTLOADERS}" 120WKS_FILE_DEPENDS ??= "${WKS_FILE_DEPENDS_DEFAULT} ${WKS_FILE_DEPENDS_BOOTLOADERS}"