summaryrefslogtreecommitdiffstats
path: root/meta/classes/image.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r--meta/classes/image.bbclass5
1 files changed, 2 insertions, 3 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 2577cca733..61295f4bd7 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -519,14 +519,13 @@ python create_symlinks() {
519 taskname = d.getVar("BB_CURRENTTASK", True) 519 taskname = d.getVar("BB_CURRENTTASK", True)
520 subimages = (d.getVarFlag("do_" + taskname, 'subimages', False) or "").split() 520 subimages = (d.getVarFlag("do_" + taskname, 'subimages', False) or "").split()
521 imgsuffix = d.getVarFlag("do_" + taskname, 'imgsuffix', True) or d.expand("${IMAGE_NAME_SUFFIX}.") 521 imgsuffix = d.getVarFlag("do_" + taskname, 'imgsuffix', True) or d.expand("${IMAGE_NAME_SUFFIX}.")
522 os.chdir(deploy_dir)
523 522
524 if not link_name: 523 if not link_name:
525 return 524 return
526 for type in subimages: 525 for type in subimages:
527 dst = deploy_dir + "/" + link_name + "." + type 526 dst = os.path.join(deploy_dir, link_name + "." + type)
528 src = img_name + imgsuffix + type 527 src = img_name + imgsuffix + type
529 if os.path.exists(src): 528 if os.path.exists(os.path.join(deploy_dir, src)):
530 bb.note("Creating symlink: %s -> %s" % (dst, src)) 529 bb.note("Creating symlink: %s -> %s" % (dst, src))
531 if os.path.islink(dst): 530 if os.path.islink(dst):
532 if d.getVar('RM_OLD_IMAGE', True) == "1" and \ 531 if d.getVar('RM_OLD_IMAGE', True) == "1" and \