[oe-commits] Otavio Salvador : image.bbclass: do not create image manifest link if IMAGE_LINK_NAME is empty
git at git.openembedded.org
git at git.openembedded.org
Wed Feb 29 12:59:02 UTC 2012
Module: openembedded-core.git
Branch: master
Commit: d0f1ae1f8cf8ef4e5adc24cc6246d3849e51aa98
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=d0f1ae1f8cf8ef4e5adc24cc6246d3849e51aa98
Author: Otavio Salvador <otavio at ossystems.com.br>
Date: Wed Feb 29 05:41:16 2012 +0000
image.bbclass: do not create image manifest link if IMAGE_LINK_NAME is empty
Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/image.bbclass | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
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.
More information about the Openembedded-commits
mailing list