Skip to contentSkip to conversation

grub-efi: Add xen_boot support when 'xen' is in DISTRO_FEATURES for aarch64

PATCH New Kamil Dziezyk 1 participant 1 message Jan 13, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 grub-efi: Add xen_boot support when 'xen' is in DISTRO_FEATURES for aarch64

'xen-boot' module is available only for aarch64.

---
 meta/recipes-bsp/grub/grub-efi_2.06.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-bsp/grub/grub-efi_2.06.bb +3 -0
index a8cc209a02..df5f23e22e 100644
@@ -73,6 +73,9 @@ do_install() {
 GRUB_BUILDIN ?= "boot linux ext2 fat serial part_msdos part_gpt normal \
                  efi_gop iso9660 configfile search loadenv test"
 
+# 'xen_boot' is a module valid only for aarch64
+GRUB_BUILDIN:append:aarch64 = "${@bb.utils.contains('DISTRO_FEATURES', 'xen', ' xen_boot', '', d)}"
+
 do_deploy() {
 	install -m 644 ${B}/${GRUB_IMAGE_PREFIX}${GRUB_IMAGE} ${DEPLOYDIR}
 }
Signature · 1 line
2.17.1