diff options
-rw-r--r-- | meta/classes/image-live.bbclass | 4 | ||||
-rw-r--r-- | meta/classes/image.bbclass | 7 |
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" | |||
15 | inherit bootimg | 15 | inherit bootimg |
16 | 16 | ||
17 | IMAGE_TYPEDEP_live = "ext4" | 17 | IMAGE_TYPEDEP_live = "ext4" |
18 | IMAGE_TYPES_MASKED += "live" | 18 | IMAGE_TYPEDEP_iso = "ext4" |
19 | IMAGE_TYPEDEP_hddimg = "ext4" | ||
20 | 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 () { | |||
297 | old_overrides = d.getVar('OVERRIDES', 0) | 297 | old_overrides = d.getVar('OVERRIDES', 0) |
298 | 298 | ||
299 | def _image_base_type(type): | 299 | def _image_base_type(type): |
300 | if type in ["vmdk", "vdi", "qcow2", "live", "iso", "hddimg"]: | ||
301 | type = "ext4" | ||
302 | basetype = type | 300 | basetype = type |
303 | for ctype in ctypes: | 301 | for ctype in ctypes: |
304 | if type.endswith("." + ctype): | 302 | if type.endswith("." + ctype): |
@@ -346,12 +344,17 @@ python () { | |||
346 | 344 | ||
347 | d.appendVarFlag('do_image', 'vardeps', ' '.join(vardeps)) | 345 | d.appendVarFlag('do_image', 'vardeps', ' '.join(vardeps)) |
348 | 346 | ||
347 | maskedtypes = (d.getVar('IMAGE_TYPES_MASKED', True) or "").split() | ||
348 | |||
349 | for t in basetypes: | 349 | for t in basetypes: |
350 | vardeps = set() | 350 | vardeps = set() |
351 | cmds = [] | 351 | cmds = [] |
352 | subimages = [] | 352 | subimages = [] |
353 | realt = t | 353 | realt = t |
354 | 354 | ||
355 | if t in maskedtypes: | ||
356 | continue | ||
357 | |||
355 | localdata = bb.data.createCopy(d) | 358 | localdata = bb.data.createCopy(d) |
356 | debug = "" | 359 | debug = "" |
357 | if t.startswith("debugfs_"): | 360 | if t.startswith("debugfs_"): |