summaryrefslogtreecommitdiffstats
path: root/meta/classes/grub-efi.bbclass
diff options
context:
space:
mode:
authorJason Wessel <jason.wessel@windriver.com>2013-09-17 13:32:14 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-30 22:11:56 +0100
commit24ffda4701371f6a2e88c10e5a20cf3a5bedbc15 (patch)
tree808bf57174ca0dc4c2b632cbb01c494bd26b57bc /meta/classes/grub-efi.bbclass
parent197f1fe1cc453b60367d50471f15a7580633e763 (diff)
downloadpoky-24ffda4701371f6a2e88c10e5a20cf3a5bedbc15.tar.gz
bootimage.bbclass, grub-efi.bbclass: Improve EFI & PCBIOS+EFI ISO support
Using the latest mkisofs it is possible to generate 3 different types of ISO images, which can be used in various scenarios. 1) PCBIOS Only ISO - This option remains unchanged by this commit - Uses syslinux menus - Can be directly copied with dd to a USB device - Can be burned to optical media 2) EFI Only ISO - Uses grub 2 menus - Can be burned to optical media - If you want to use this image on a USB device extra steps must be taken in order to format the USB device with fat32, and copy an EFI loader which will in turn load the iso image 3) PCBIOS / EFI ISO - This is a hybrid image ISO that will work for case 1 or 2 as above with the same restrictions and boot menu types depending on what type of firmware is installed on the hardware or depending on if EFI or "Legacy Boot" is enabled on some UEFI firmwares. The syslinux.bbclass is now always required because that is where the isohybrid dependencies come from as well as the configuration data for the isohybrid. The isohybrid is the secret sauce which allows the ISO to work as optical media or as a disk image on USB or a HDD/SSD. [YOCTO #4100] (From OE-Core rev: a4baf911ab9d306ce5200e7d794ed6a9ccb25f30) Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/grub-efi.bbclass')
-rw-r--r--meta/classes/grub-efi.bbclass8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/classes/grub-efi.bbclass b/meta/classes/grub-efi.bbclass
index c6f5d4e246..c21babb293 100644
--- a/meta/classes/grub-efi.bbclass
+++ b/meta/classes/grub-efi.bbclass
@@ -41,6 +41,14 @@ grubefi_populate() {
41 41
42grubefi_iso_populate() { 42grubefi_iso_populate() {
43 grubefi_populate ${ISODIR} 43 grubefi_populate ${ISODIR}
44 # Build a EFI directory to create efi.img
45 mkdir -p ${EFIIMGDIR}/${EFIDIR}
46 cp ${ISODIR}/${EFIDIR}/* ${EFIIMGDIR}${EFIDIR}
47 cp ${ISODIR}/vmlinuz ${EFIIMGDIR}
48 echo "EFI\\BOOT\\${GRUB_IMAGE}" > ${EFIIMGDIR}/startup.nsh
49 if [ -f "${ISODIR}/initrd" ] ; then
50 cp ${ISODIR}/initrd ${EFIIMGDIR}
51 fi
44} 52}
45 53
46grubefi_hddimg_populate() { 54grubefi_hddimg_populate() {