summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Larson <chris_larson@mentor.com>2016-05-25 13:31:50 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-30 09:30:31 +0100
commitec8dc34f974ddda420bddbd195fb344e3db46cab (patch)
tree178449691f873606731e64e5cc07ff0d5a067605
parentdcbd86b2ff76457fd4b49b0107067275bb0ded8c (diff)
downloadopenembedded-core-ec8dc34f974ddda420bddbd195fb344e3db46cab.tar.gz
openembedded-core-ec8dc34f974ddda420bddbd195fb344e3db46cab.tar.bz2
openembedded-core-ec8dc34f974ddda420bddbd195fb344e3db46cab.zip
grub-efi.bbclass: also write startup.nsh for non-iso
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>
-rw-r--r--meta/classes/grub-efi.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/grub-efi.bbclass b/meta/classes/grub-efi.bbclass
index d0ae6c90f8..b8c20dd8a6 100644
--- a/meta/classes/grub-efi.bbclass
+++ b/meta/classes/grub-efi.bbclass
@@ -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
}