summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2011-11-10 18:29:50 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-18 14:24:52 +0000
commite1d4f7b871a2499ef7c1620a9c57fa24c84327a4 (patch)
tree62e08993daa65b46eeaece0fc80ddda540e31a82
parent81b6e546bbf624292b004338a400b3c556df7404 (diff)
downloadpoky-e1d4f7b871a2499ef7c1620a9c57fa24c84327a4.tar.gz
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] (From OE-Core rev: 321a7dc9d934f31aae27828ff8c56d6c69ecc665) Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/bootimg.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/bootimg.bbclass b/meta/classes/bootimg.bbclass
index eecc2bf7e3..3914311254 100644
--- a/meta/classes/bootimg.bbclass
+++ b/meta/classes/bootimg.bbclass
@@ -111,6 +111,8 @@ build_boot_bin() {
111 -no-emul-boot -boot-load-size 4 -boot-info-table \ 111 -no-emul-boot -boot-load-size 4 -boot-info-table \
112 ${S}/cd/ 112 ${S}/cd/
113 113
114 isohybrid ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.iso
115
114 cd ${DEPLOY_DIR_IMAGE} 116 cd ${DEPLOY_DIR_IMAGE}
115 rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.iso 117 rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.iso
116 ln -s ${IMAGE_NAME}.iso ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.iso 118 ln -s ${IMAGE_NAME}.iso ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.iso