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.

Signed-off-by: Ricardo Salveti <[email protected]>
---
 meta/recipes-bsp/grub/grub-efi_2.02.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-bsp/grub/grub-efi_2.02.bb 
b/meta/recipes-bsp/grub/grub-efi_2.02.bb
index a72b189..6530d92 100644
--- a/meta/recipes-bsp/grub/grub-efi_2.02.bb
+++ b/meta/recipes-bsp/grub/grub-efi_2.02.bb
@@ -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}
-- 
2.7.4

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to