diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2016-05-18 19:24:16 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-22 16:09:22 +0100 |
commit | d2b4da7d21ce5295442bd2d5c760e64cf843aabb (patch) | |
tree | 7474f9956f50aeaf9bde70abd54c7271fe92e148 /meta | |
parent | 85855af359c2c3bfc1eaa942c95f1f7d7cc6698e (diff) | |
download | openembedded-core-d2b4da7d21ce5295442bd2d5c760e64cf843aabb.tar.gz openembedded-core-d2b4da7d21ce5295442bd2d5c760e64cf843aabb.tar.bz2 openembedded-core-d2b4da7d21ce5295442bd2d5c760e64cf843aabb.zip |
image.bbclass: additional output in create_symlinks
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.ohly@intel.com>
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/image.bbclass | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 0e81b4e7e0..9f4c83ffc6 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -523,9 +523,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 \ @@ -533,6 +533,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.*|" |