From: Patrick Ohly <patrick.o...@intel.com> When a symlink does not get created, it is useful for debugging to log what would have been created and why it was skipped.
Signed-off-by: Patrick Ohly <patrick.o...@intel.com> Signed-off-by: Ed Bartosh <eduard.bart...@intel.com> Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- meta/classes/image.bbclass | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 06f2211..46a4d03 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -512,9 +512,9 @@ python create_symlinks() { if not link_name: return for type in subimages: - if os.path.exists(img_name + imgsuffix + type): - dst = deploy_dir + "/" + link_name + "." + type - src = img_name + imgsuffix + type + dst = deploy_dir + "/" + link_name + "." + type + src = img_name + imgsuffix + type + if os.path.exists(src): bb.note("Creating symlink: %s -> %s" % (dst, src)) if os.path.islink(dst): if d.getVar('RM_OLD_IMAGE', True) == "1" and \ @@ -522,6 +522,8 @@ python create_symlinks() { os.remove(os.path.realpath(dst)) os.remove(dst) os.symlink(src, dst) + else: + bb.note("Skipping symlink, source does not exist: %s -> %s" % (dst, src)) } MULTILIBRE_ALLOW_REP =. "${base_bindir}|${base_sbindir}|${bindir}|${sbindir}|${libexecdir}|${sysconfdir}|${nonarch_base_libdir}/udev|/lib/modules/[^/]*/modules.*|" -- 2.1.4 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core