diff options
author | Juro Bystricky <juro.bystricky@intel.com> | 2015-06-03 11:07:23 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-11 23:59:13 +0100 |
commit | a13c51e751ee76c990fe83f83544e448c6cf543d (patch) | |
tree | 0612be3f76df8f4fe2cc2e5ff48bec176bc05469 /meta/classes/image_types.bbclass | |
parent | d59d876f447c961149763e585c012ac2f0f7b788 (diff) | |
download | poky-a13c51e751ee76c990fe83f83544e448c6cf543d.tar.gz |
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.
(From OE-Core rev: 0a3e8eb9f592c3f1edd2c7521855f7406541651a)
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/image_types.bbclass')
-rw-r--r-- | meta/classes/image_types.bbclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass index 72c7337b6b..d86d108c47 100644 --- a/meta/classes/image_types.bbclass +++ b/meta/classes/image_types.bbclass | |||
@@ -13,7 +13,7 @@ def imagetypes_getdepends(d): | |||
13 | deps = [] | 13 | deps = [] |
14 | ctypes = d.getVar('COMPRESSIONTYPES', True).split() | 14 | ctypes = d.getVar('COMPRESSIONTYPES', True).split() |
15 | for type in (d.getVar('IMAGE_FSTYPES', True) or "").split(): | 15 | for type in (d.getVar('IMAGE_FSTYPES', True) or "").split(): |
16 | if type in ["vmdk", "live", "iso", "hddimg"]: | 16 | if type in ["vmdk", "vdi", "live", "iso", "hddimg"]: |
17 | type = "ext3" | 17 | type = "ext3" |
18 | basetype = type | 18 | basetype = type |
19 | for ctype in ctypes: | 19 | for ctype in ctypes: |
@@ -155,6 +155,7 @@ IMAGE_TYPES = " \ | |||
155 | tar tar.gz tar.bz2 tar.xz tar.lz4 \ | 155 | tar tar.gz tar.bz2 tar.xz tar.lz4 \ |
156 | cpio cpio.gz cpio.xz cpio.lzma cpio.lz4 \ | 156 | cpio cpio.gz cpio.xz cpio.lzma cpio.lz4 \ |
157 | vmdk \ | 157 | vmdk \ |
158 | vdi \ | ||
158 | elf \ | 159 | elf \ |
159 | " | 160 | " |
160 | 161 | ||
@@ -181,5 +182,5 @@ DEPLOYABLE_IMAGE_TYPES ?= "hddimg iso" | |||
181 | IMAGE_EXTENSION_live = "hddimg iso" | 182 | IMAGE_EXTENSION_live = "hddimg iso" |
182 | 183 | ||
183 | # The IMAGE_TYPES_MASKED variable will be used to mask out from the IMAGE_FSTYPES, | 184 | # The IMAGE_TYPES_MASKED variable will be used to mask out from the IMAGE_FSTYPES, |
184 | # images that will not be built at do_rootfs time: vmdk, hddimg, iso, etc. | 185 | # images that will not be built at do_rootfs time: vmdk, vdi, hddimg, iso, etc. |
185 | IMAGE_TYPES_MASKED ?= "" | 186 | IMAGE_TYPES_MASKED ?= "" |