Skip to contentSkip to conversation

grub-efi: allow default config to be customized by the distro

PATCH New Ricardo Salveti 1 participant 1 message Feb 5, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 grub-efi: allow default config to be customized by the distro

The default grub config produced by grub-efi can't be easily customized by the distro (without replacing the standard cfg file), so create an extra variable GRUB_CFG to allow customizing the config file that is consumed by grub-mkimage.

---
 meta/recipes-bsp/grub/grub-efi_2.02.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-bsp/grub/grub-efi_2.02.bb +2 -1
index a72b189..6530d92 100644
@@ -53,13 +53,14 @@ do_install_class-target() {
         {} +
 }
 
+GRUB_CFG ?= "cfg"
 GRUB_BUILDIN ?= "boot linux ext2 fat serial part_msdos part_gpt normal \
                  efi_gop iso9660 search loadenv test"
 
 do_deploy() {
 	# Search for the grub.cfg on the local boot media by using the
 	# built in cfg file provided via this recipe
-	grub-mkimage -c ../cfg -p /EFI/BOOT -d ./grub-core/ \
+	grub-mkimage -c ../${GRUB_CFG} -p /EFI/BOOT -d ./grub-core/ \
 	               -O ${GRUB_TARGET}-efi -o ./${GRUB_IMAGE} \
 	               ${GRUB_BUILDIN}
 	install -m 644 ${B}/${GRUB_IMAGE} ${DEPLOYDIR}
Signature · 1 line
2.7.4