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.bbclass13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 3ab432e06c..560cc6d894 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -539,3 +539,16 @@ do_bundle_initramfs () {
539 : 539 :
540} 540}
541addtask bundle_initramfs after do_image_complete 541addtask bundle_initramfs after do_image_complete
542
543# Some of the vars for vm and live image are conflicted, this function
544# is used for fixing the problem.
545def set_live_vm_vars(d, suffix):
546 vars = ['SYSLINUX_CFG', 'ROOT', 'LABELS', 'INITRD']
547 for var in vars:
548 var_with_suffix = var + '_' + suffix
549 if d.getVar(var, True):
550 bb.warn('Found potential conflicted var %s, please use %s rather than %s' % \
551 (var, var_with_suffix, var))
552 elif d.getVar(var_with_suffix, True):
553 d.setVar(var, d.getVar(var_with_suffix, True))
554