]> code.ossystems Code Review - openembedded-core.git/commitdiff
grub-efi.bbclass: also write startup.nsh for non-iso
authorChristopher Larson <chris_larson@mentor.com>
Wed, 25 May 2016 20:31:50 +0000 (13:31 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 30 May 2016 08:30:31 +0000 (09:30 +0100)
wic will be needing this for its bootimg-efi plugin.

[YOCTO #9556]

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/grub-efi.bbclass

index d0ae6c90f85cb798ace4a8247fdcb4bb625895dc..b8c20dd8a69e39335c1d9ae79a055ce69736d33b 100644 (file)
@@ -45,6 +45,8 @@ efi_populate() {
                GRUB_IMAGE="bootx64.efi"
        fi
        install -m 0644 ${DEPLOY_DIR_IMAGE}/${GRUB_IMAGE} ${DEST}${EFIDIR}
+       EFIPATH=$(echo "${EFIDIR}" | sed 's/\//\\/g')
+       printf 'fs0:%s\%s\n' "$EFIPATH" "$GRUB_IMAGE" >${DEST}/startup.nsh
 
        install -m 0644 ${GRUB_CFG} ${DEST}${EFIDIR}/grub.cfg
 }