From: Otavio Salvador Date: Wed, 29 Feb 2012 05:41:16 +0000 (+0000) Subject: image.bbclass: do not create image manifest link if IMAGE_LINK_NAME is empty X-Git-Tag: rev_ivi_2015_02_04~18533 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=96d5527bc76c28e613da25dd1725465e3efb4d7c;p=scm%2Fbb%2Ftizen-distro.git image.bbclass: do not create image manifest link if IMAGE_LINK_NAME is empty (From OE-Core rev: d0f1ae1f8cf8ef4e5adc24cc6246d3849e51aa98) Signed-off-by: Otavio Salvador Signed-off-by: Richard Purdie --- diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 4db55ff..ec75cc1 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -322,8 +322,10 @@ make_zimage_symlink_relative () { write_image_manifest () { rootfs_${IMAGE_PKGTYPE}_write_manifest - rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.manifest - ln -s ${IMAGE_NAME}.rootfs.manifest ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.manifest + if [ -n "${IMAGE_LINK_NAME}" ]; then + rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.manifest + ln -s ${IMAGE_NAME}.rootfs.manifest ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.manifest + fi } # Make login manager(s) enable automatic login.