[oe-commits] Damien Lespiau : bootimg: Create a valid boot sector for the iso image

git at git.openembedded.org git at git.openembedded.org
Wed Nov 23 16:57:46 UTC 2011


Module: openembedded-core.git
Branch: master-next
Commit: 321a7dc9d934f31aae27828ff8c56d6c69ecc665
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=321a7dc9d934f31aae27828ff8c56d6c69ecc665

Author: Damien Lespiau <damien.lespiau at intel.com>
Date:   Thu Nov 10 18:29:50 2011 +0000

bootimg: Create a valid boot sector for the iso image

It's possible to create an "hybrid" iso image that you can both burn
to a CD-Rom and dd to a USB key. isohybrid will create a valid boot
sector for the USB key case.

[YOCTO #1763]

Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/bootimg.bbclass |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/meta/classes/bootimg.bbclass b/meta/classes/bootimg.bbclass
index eecc2bf..3914311 100644
--- a/meta/classes/bootimg.bbclass
+++ b/meta/classes/bootimg.bbclass
@@ -111,6 +111,8 @@ build_boot_bin() {
 		-no-emul-boot -boot-load-size 4 -boot-info-table \
 		${S}/cd/
 
+		isohybrid ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.iso
+
 		cd ${DEPLOY_DIR_IMAGE}
 		rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.iso
 		ln -s ${IMAGE_NAME}.iso ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.iso





More information about the Openembedded-commits mailing list