diff options
author | Samuel Ortiz <sameo@openedhand.com> | 2008-10-17 11:04:51 +0000 |
---|---|---|
committer | Samuel Ortiz <sameo@openedhand.com> | 2008-10-17 11:04:51 +0000 |
commit | e1720d80de2c33150fd4ddd7c5067cc3b4ef9428 (patch) | |
tree | 639d2ce80e78cad69c4e577c68485d40686dd155 /meta/classes | |
parent | 7a4b36a7d16114f0cef3b7fa6cb393d9cff1dafa (diff) | |
download | openembedded-core-e1720d80de2c33150fd4ddd7c5067cc3b4ef9428.tar.gz openembedded-core-e1720d80de2c33150fd4ddd7c5067cc3b4ef9428.tar.bz2 openembedded-core-e1720d80de2c33150fd4ddd7c5067cc3b4ef9428.tar.xz openembedded-core-e1720d80de2c33150fd4ddd7c5067cc3b4ef9428.zip |
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.bbclass | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/classes/bootimg.bbclass b/meta/classes/bootimg.bbclass index 450e31b4f..7bd367b9a 100644 --- a/meta/classes/bootimg.bbclass +++ b/meta/classes/bootimg.bbclass @@ -59,6 +59,10 @@ build_boot_bin() { syslinux ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.hddimg chmod 644 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.hddimg + cd ${DEPLOY_DIR_IMAGE} + rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.hddimg + ln -s ${IMAGE_NAME}.hddimg ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.hddimg + #Create an ISO if we have an INITRD if [ -n "${INITRD}" ] && [ -s "${INITRD}" ] && [ "${NOISO}" != "1" ] ; then install -d ${ISODIR} @@ -87,6 +91,11 @@ build_boot_bin() { -b isolinux/isolinux.bin -c isolinux/boot.cat -r \ -no-emul-boot -boot-load-size 4 -boot-info-table \ ${S}/cd/ + + 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 + fi } |