summaryrefslogtreecommitdiffstats
path: root/meta/classes/qemuboot.bbclass
diff options
context:
space:
mode:
authorJoshua Lock <joshua.g.lock@intel.com>2016-10-12 21:46:41 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-10-15 10:01:42 +0100
commit751cb2c894122807ed62341ae6b5f129a65e399b (patch)
tree06a336087a9fba0d14c599d89578b85e347b8660 /meta/classes/qemuboot.bbclass
parent1a95d4a0701b87ae3674239a01aabe38a0123585 (diff)
downloadpoky-751cb2c894122807ed62341ae6b5f129a65e399b.tar.gz
Remove RM_OLD_IMAGE, it's no longer useful
Since the move to put image deployment under sstate control in d54339d4b1a7e884de636f6325ca60409ebd95ff old images are automatically removed before a new image is deployed (the default behaviour of the sstate logic). RM_OLD_IMAGE is therefore no longer required to provide this behaviour, remove the variable and its users. (From OE-Core rev: 93631befe8b962bf99524746b49f4ebca336175c) Signed-off-by: Joshua Lock <joshua.g.lock@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/qemuboot.bbclass')
-rw-r--r--meta/classes/qemuboot.bbclass3
1 files changed, 0 insertions, 3 deletions
diff --git a/meta/classes/qemuboot.bbclass b/meta/classes/qemuboot.bbclass
index ef9a128796..b5cc93dc93 100644
--- a/meta/classes/qemuboot.bbclass
+++ b/meta/classes/qemuboot.bbclass
@@ -76,9 +76,6 @@ python write_qemuboot_conf() {
76 with open(qemuboot, 'w') as f: 76 with open(qemuboot, 'w') as f:
77 cf.write(f) 77 cf.write(f)
78 78
79 if d.getVar('RM_OLD_IMAGE', True) == "1" and os.path.exists(qemuboot_link):
80 os.remove(os.path.realpath(qemuboot_link))
81
82 if os.path.lexists(qemuboot_link): 79 if os.path.lexists(qemuboot_link):
83 os.remove(qemuboot_link) 80 os.remove(qemuboot_link)
84 os.symlink(os.path.basename(qemuboot), qemuboot_link) 81 os.symlink(os.path.basename(qemuboot), qemuboot_link)