]> code.ossystems Code Review - openembedded-core.git/commit
bootimg: Use the same OS files for each boot method
authorDarren Hart <dvhart@linux.intel.com>
Thu, 2 Feb 2012 00:15:04 +0000 (16:15 -0800)
committerSaul Wold <sgw@linux.intel.com>
Tue, 7 Feb 2012 22:37:12 +0000 (14:37 -0800)
commit5209016cf4c4c8f649e37dc8857b3fbcfe8dd8c8
tree6c06141b9168d956f190500040896c9aeaeba5c7
parent26630a9f37b04e215eff9b8e63414b6b2066d6fa
bootimg: Use the same OS files for each boot method

Fixes [YOCTO #1951]

The do_bootimg code can generate hybrid efi+pcbios images (syslinux and
grub-efi) to boot on platforms with both EFI and legacy BIOS options. The
current implementation copies the kernel, initrd, and rootfs twice,
unnecessarily bloating the image size. This is an especially egregious bug
on -sato images.

Update the classes to use a common install of the kernel, initrd, and rootfs to
the root of the boot media. Grub-efi, syslinux, and isolinux can all reference
this location explicitly with a leading slash.

Tested with an EFI+PCBIOS image in both EFI and PCBIOS boot modes on two
platforms. No ISO image testing was performed.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
meta/classes/bootimg.bbclass
meta/classes/grub-efi.bbclass
meta/classes/syslinux.bbclass