]> code.ossystems Code Review - openembedded-core.git/commitdiff
sanity.bbclass: Prevent 'vdi' and 'live' to be built together
authorJuro Bystricky <juro.bystricky@intel.com>
Wed, 3 Jun 2015 18:07:26 +0000 (11:07 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 11 Jun 2015 22:55:41 +0000 (23:55 +0100)
Same reason and check as for vmdk.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/sanity.bbclass

index 698303743c4cd7eba2544f8ab90277335c71c21c..c66fd4a1cfa9d3626ab82421db8a26dfbc8a65c1 100644 (file)
@@ -831,6 +831,11 @@ def check_sanity_everybuild(status, d):
     if 'vmdk' in d.getVar('IMAGE_FSTYPES', True) and 'live' in d.getVar('IMAGE_FSTYPES', True):
         status.addresult("Error, IMAGE_FSTYPES vmdk and live can't be built together\n")
 
+    # Check vdi and live can't be built together.
+    if 'vdi' in d.getVar('IMAGE_FSTYPES', True) and 'live' in d.getVar('IMAGE_FSTYPES', True):
+        status.addresult("Error, IMAGE_FSTYPES vdi and live can't be built together\n")
+
+
 def check_sanity(sanity_data):
     class SanityStatus(object):
         def __init__(self):