summaryrefslogtreecommitdiff
path: root/meta/classes/image.bbclass
diff options
context:
space:
mode:
authorJuro Bystricky <juro.bystricky@intel.com>2015-06-03 11:07:23 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-11 23:55:41 +0100
commit0a3e8eb9f592c3f1edd2c7521855f7406541651a (patch)
tree741b73d075c9b63166c424793ed1b5067f782f6a /meta/classes/image.bbclass
parentb812d0f40423bc56394cc8b6fc92eb1f477dba1b (diff)
downloadopenembedded-core-0a3e8eb9f592c3f1edd2c7521855f7406541651a.tar.gz
openembedded-core-0a3e8eb9f592c3f1edd2c7521855f7406541651a.tar.bz2
openembedded-core-0a3e8eb9f592c3f1edd2c7521855f7406541651a.zip
image: Support for VDI
Added support for VirtualBox VDI format. The support was implemented by merging with the already existing VMDK support for VM player by creating a new class image-vm.bbclass. This class replaces the previous VMDK only image-vmdk.class. Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r--meta/classes/image.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 58b4add8fa..64ae2cb92b 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -130,10 +130,10 @@ def build_live(d):
return "image-live"
IMAGE_TYPE_live = "${@build_live(d)}"
-
inherit ${IMAGE_TYPE_live}
-IMAGE_TYPE_vmdk = '${@bb.utils.contains("IMAGE_FSTYPES", "vmdk", "image-vmdk", "", d)}'
-inherit ${IMAGE_TYPE_vmdk}
+
+IMAGE_TYPE_vm = '${@bb.utils.contains_any("IMAGE_FSTYPES", ["vmdk", "vdi"], "image-vm", "", d)}'
+inherit ${IMAGE_TYPE_vm}
python () {
deps = " " + imagetypes_getdepends(d)