summaryrefslogtreecommitdiffstats
path: root/meta/classes/image.bbclass
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2016-03-30 00:23:11 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-31 23:01:37 +0100
commit4d1df2cfe84fe4ad061cee01cddea4e7ae627fe4 (patch)
treecc38dc059d7d54425d10127316e5d961f5d26c92 /meta/classes/image.bbclass
parentd6d75260fa0a9874a62acd3251b7405ed59f0cfa (diff)
downloadpoky-4d1df2cfe84fe4ad061cee01cddea4e7ae627fe4.tar.gz
image-live.bbclass/image-vm.bbclass: remove duplicated code
Move the common code to live_vm_common.bbclass and remove duplicated ones. (From OE-Core rev: 4a70cc59a0350f06d4cc48c12c3053a39191ba07) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r--meta/classes/image.bbclass12
1 files changed, 0 insertions, 12 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 894ff993cc..d9c16106c2 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -544,15 +544,3 @@ do_bundle_initramfs () {
544} 544}
545addtask bundle_initramfs after do_image_complete 545addtask bundle_initramfs after do_image_complete
546 546
547# Some of the vars for vm and live image are conflicted, this function
548# is used for fixing the problem.
549def set_live_vm_vars(d, suffix):
550 vars = ['GRUB_CFG', 'SYSLINUX_CFG', 'ROOT', 'LABELS', 'INITRD']
551 for var in vars:
552 var_with_suffix = var + '_' + suffix
553 if d.getVar(var, True):
554 bb.warn('Found potential conflicted var %s, please use %s rather than %s' % \
555 (var, var_with_suffix, var))
556 elif d.getVar(var_with_suffix, True):
557 d.setVar(var, d.getVar(var_with_suffix, True))
558