summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/grub-efi.bbclass10
1 files changed, 6 insertions, 4 deletions
diff --git a/meta/classes/grub-efi.bbclass b/meta/classes/grub-efi.bbclass
index 3dc9146d90..8adda098c4 100644
--- a/meta/classes/grub-efi.bbclass
+++ b/meta/classes/grub-efi.bbclass
@@ -40,13 +40,15 @@ efi_populate() {
40 40
41 install -d ${DEST}${EFIDIR} 41 install -d ${DEST}${EFIDIR}
42 42
43 GRUB_IMAGE="bootia32.efi" 43 GRUB_IMAGE="grub-efi-bootia32.efi"
44 DEST_IMAGE="bootia32.efi"
44 if [ "${TARGET_ARCH}" = "x86_64" ]; then 45 if [ "${TARGET_ARCH}" = "x86_64" ]; then
45 GRUB_IMAGE="bootx64.efi" 46 GRUB_IMAGE="grub-efi-bootx64.efi"
47 DEST_IMAGE="bootx64.efi"
46 fi 48 fi
47 install -m 0644 ${DEPLOY_DIR_IMAGE}/${GRUB_IMAGE} ${DEST}${EFIDIR} 49 install -m 0644 ${DEPLOY_DIR_IMAGE}/${GRUB_IMAGE} ${DEST}${EFIDIR}/${DEST_IMAGE}
48 EFIPATH=$(echo "${EFIDIR}" | sed 's/\//\\/g') 50 EFIPATH=$(echo "${EFIDIR}" | sed 's/\//\\/g')
49 printf 'fs0:%s\%s\n' "$EFIPATH" "$GRUB_IMAGE" >${DEST}/startup.nsh 51 printf 'fs0:%s\%s\n' "$EFIPATH" "$DEST_IMAGE" >${DEST}/startup.nsh
50 52
51 install -m 0644 ${GRUB_CFG} ${DEST}${EFIDIR}/grub.cfg 53 install -m 0644 ${GRUB_CFG} ${DEST}${EFIDIR}/grub.cfg
52} 54}