mirror of
https://git.yoctoproject.org/poky
synced 2026-04-30 21:32:13 +02:00
In recipe grub-efi, the deploy task installed grub-efi image to deploy dir.
In image-live.bbclass, the do_bootimg task called build_iso -> efi_iso_populate
-> efi_populate.
In image-live.bbclass, the do_bootimg task called build_hddimg -> efi_hddimg_populate
-> efi_populate.
In grub-efi.bbclass, efi_populate called efi_populate_common for grub-efi to
installed grub-efi image from deploy dir to ISO/HDDDIR.
Explicitly make do_bootimg depend on grub-efi:deploy otherwise a racing issue
on grub-efi image in deploy dir
...
|DEBUG: Executing shell function build_iso
|NOTE: Trying to install tmp/deploy/images/qemux86-64/bzImage as tmp/work/qemux86_64-wrs-linux/
wrlinux-image-installer/1.0/sources/wrlinux-image-installer-1.0/iso/bzImage
|install: cannot stat 'tmp/deploy/images/qemux86-64/grub-efi-bootx64.efi': No such file or directory
|WARNING: tmp/work/qemux86_64-wrs-linux/wrlinux-image-installer/1.0/temp/run.build_iso.954273:419 exit 1 from
'install -m 0644 tmp/deploy/images/qemux86-64/$2-bootx64.efi ${DEST}/EFI/BOOT/bootx64.efi'
...
(From OE-Core rev: bf0a53af7801a13b39734c3d720f127f212d08f1)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 lines
337 B
Plaintext
18 lines
337 B
Plaintext
#
|
|
# Copyright OpenEmbedded Contributors
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
|
|
inherit grub-efi-cfg
|
|
require conf/image-uefi.conf
|
|
|
|
# Assure the existence of grub-efi image in deploy dir
|
|
do_bootimg[depends] += "grub-efi:do_deploy"
|
|
|
|
efi_populate() {
|
|
efi_populate_common "$1" grub-efi
|
|
|
|
install -m 0644 ${GRUB_CFG} ${DEST}${EFIDIR}/grub.cfg
|
|
}
|