summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/image-live.bbclass4
-rw-r--r--meta/classes/image.bbclass7
2 files changed, 8 insertions, 3 deletions
diff --git a/meta/classes/image-live.bbclass b/meta/classes/image-live.bbclass
index 624ff38dc2..d2e8b85482 100644
--- a/meta/classes/image-live.bbclass
+++ b/meta/classes/image-live.bbclass
@@ -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"
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 96666d529f..cc8a23c526 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -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_"):