]> code.ossystems Code Review - openembedded-core.git/commitdiff
image/image-live: Add back IMAGE_TYPES_MASKED support
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 15 Jan 2016 11:50:05 +0000 (11:50 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 15 Jan 2016 11:59:13 +0000 (11:59 +0000)
IMAGE_TYPES_MASKED support was accidentally removed. The original
idea behind it was to remove some of the hardcoding in the core
image code, so do that for image-live and ensure the dependency
and masked variables correctly reflect the needs of the class.
This means we can remove all the hardcoded special cases since
image-vm already has the needed markup.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/image-live.bbclass
meta/classes/image.bbclass

index 624ff38dc2b9aab143b6de75e335ea0ae9ed955b..d2e8b854827e350badca92922b3cca9d15dac2c8 100644 (file)
@@ -15,4 +15,6 @@ do_bootimg[depends] += "${PN}:do_image_complete"
 inherit bootimg
 
 IMAGE_TYPEDEP_live = "ext4"
-IMAGE_TYPES_MASKED += "live"
+IMAGE_TYPEDEP_iso = "ext4"
+IMAGE_TYPEDEP_hddimg = "ext4"
+IMAGE_TYPES_MASKED += "live hddimg iso"
index 96666d529fed758b6355c419c31a7bf020420aea..cc8a23c5260c612d22ba01d04fc982fe1de4b650 100644 (file)
@@ -297,8 +297,6 @@ python () {
     old_overrides = d.getVar('OVERRIDES', 0)
 
     def _image_base_type(type):
-        if type in ["vmdk", "vdi", "qcow2", "live", "iso", "hddimg"]:
-            type = "ext4"
         basetype = type
         for ctype in ctypes:
             if type.endswith("." + ctype):
@@ -346,12 +344,17 @@ python () {
 
     d.appendVarFlag('do_image', 'vardeps', ' '.join(vardeps))
 
+    maskedtypes = (d.getVar('IMAGE_TYPES_MASKED', True) or "").split()
+
     for t in basetypes:
         vardeps = set()
         cmds = []
         subimages = []
         realt = t
 
+        if t in maskedtypes:
+            continue
+
         localdata = bb.data.createCopy(d)
         debug = ""
         if t.startswith("debugfs_"):