summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@openedhand.com>2008-10-17 11:04:51 +0000
committerSamuel Ortiz <sameo@openedhand.com>2008-10-17 11:04:51 +0000
commite1720d80de2c33150fd4ddd7c5067cc3b4ef9428 (patch)
tree639d2ce80e78cad69c4e577c68485d40686dd155 /meta/classes
parent7a4b36a7d16114f0cef3b7fa6cb393d9cff1dafa (diff)
downloadpoky-e1720d80de2c33150fd4ddd7c5067cc3b4ef9428.tar.gz
bootimg: Add symbolic links to iso and hddimg
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5535 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/bootimg.bbclass9
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/classes/bootimg.bbclass b/meta/classes/bootimg.bbclass
index 450e31b4f6..7bd367b9ae 100644
--- a/meta/classes/bootimg.bbclass
+++ b/meta/classes/bootimg.bbclass
@@ -59,6 +59,10 @@ build_boot_bin() {
59 syslinux ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.hddimg 59 syslinux ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.hddimg
60 chmod 644 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.hddimg 60 chmod 644 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.hddimg
61 61
62 cd ${DEPLOY_DIR_IMAGE}
63 rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.hddimg
64 ln -s ${IMAGE_NAME}.hddimg ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.hddimg
65
62 #Create an ISO if we have an INITRD 66 #Create an ISO if we have an INITRD
63 if [ -n "${INITRD}" ] && [ -s "${INITRD}" ] && [ "${NOISO}" != "1" ] ; then 67 if [ -n "${INITRD}" ] && [ -s "${INITRD}" ] && [ "${NOISO}" != "1" ] ; then
64 install -d ${ISODIR} 68 install -d ${ISODIR}
@@ -87,6 +91,11 @@ build_boot_bin() {
87 -b isolinux/isolinux.bin -c isolinux/boot.cat -r \ 91 -b isolinux/isolinux.bin -c isolinux/boot.cat -r \
88 -no-emul-boot -boot-load-size 4 -boot-info-table \ 92 -no-emul-boot -boot-load-size 4 -boot-info-table \
89 ${S}/cd/ 93 ${S}/cd/
94
95 cd ${DEPLOY_DIR_IMAGE}
96 rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.iso
97 ln -s ${IMAGE_NAME}.iso ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.iso
98
90 fi 99 fi
91} 100}
92 101