aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/image.bbclass
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2015-09-24 16:53:10 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-28 11:58:22 +0100
commite3ff509091cbbfdef851f8a3c9e31c7b76d37e89 (patch)
tree09d9085c7d7c72832c4afee4eab2240ef33ff73a /meta/classes/image.bbclass
parent55e8067d3fb6a1fc97b4486e28e3e3bae2b5cd00 (diff)
downloadopenembedded-core-contrib-e3ff509091cbbfdef851f8a3c9e31c7b76d37e89.tar.gz
openembedded-core-contrib-e3ff509091cbbfdef851f8a3c9e31c7b76d37e89.tar.bz2
openembedded-core-contrib-e3ff509091cbbfdef851f8a3c9e31c7b76d37e89.zip
image types: add hdddirect
When image-vm.bbclass was introduced, it indirectly also introduced a ".hdddirect" image type based on boot-directdisk.bbclass. However, one could only get that image when also enabling at least one of the virtual machine images. The .hdddirect images are useful by themselves. By registering image-vm.bbclass as implementation of it, it becomes possible to select them with: IMAGE_FSTYPES = "hdddirect" Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r--meta/classes/image.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 86a98bb11d..7e6822cac5 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -150,7 +150,7 @@ def build_live(d):
IMAGE_TYPE_live = "${@build_live(d)}"
inherit ${IMAGE_TYPE_live}
-IMAGE_TYPE_vm = '${@bb.utils.contains_any("IMAGE_FSTYPES", ["vmdk", "vdi", "qcow2"], "image-vm", "", d)}'
+IMAGE_TYPE_vm = '${@bb.utils.contains_any("IMAGE_FSTYPES", ["vmdk", "vdi", "qcow2", "hdddirect"], "image-vm", "", d)}'
inherit ${IMAGE_TYPE_vm}
python () {