Skip to contentSkip to conversation

grub-efi: add extra parameters to grub-mkimage

PATCH Aleksey Smirnov 1 participant 1 message Jan 24, 2025 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hi, any updates?

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Aleksey Smirnov
Sent: Wednesday, November 6, 2024 6:17 PM
To: [email protected]
Cc: Aleksey Smirnov <[email protected]>
Subject: [OE-core] [PATCH] grub-efi: add extra parameters to grub-mkimage

Sometimes it is reasonable to add extra params to grub-mkimage, for example: "--disable-shim-lock --pubkey <pubkey>". For that purposes variable GRUB_MKIMAGE_EXTRA is implemented.

---
 meta/recipes-bsp/grub/grub-efi_2.12.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-bsp/grub/grub-efi_2.12.bb +2 -2
index 7df77deca3..4a73ec5034 100644
@@ -58,7 +58,7 @@ do_mkimage() {
 
 	# Search for the grub.cfg on the local boot media by using the
 	# built in cfg file provided via this recipe
-	grub-mkimage -v -c ${UNPACKDIR}/cfg -p ${EFIDIR} -d ./grub-core/ \
+	grub-mkimage -v -c ${UNPACKDIR}/cfg -p ${EFIDIR} -d ./grub-core/ 
+${GRUB_MKIMAGE_EXTRA} \
 	               -O ${GRUB_TARGET}-efi -o ./${GRUB_IMAGE_PREFIX}${GRUB_IMAGE} \
 	               ${GRUB_MKIMAGE_MODULES}  }
--

2.30.2