summaryrefslogtreecommitdiffstats
path: root/meta/classes/image_types.bbclass
diff options
context:
space:
mode:
authorChristian Ziethén <christian.ziethen@linaro.org>2015-07-23 16:32:28 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-25 14:41:43 +0100
commit2963cc25afb65376ba6a1a6487274143bd67f674 (patch)
treeae0ed8860e007ba4eba30826d13a836991130933 /meta/classes/image_types.bbclass
parent6dcd3555712a1e83b519e7912a5ba35a3971ce4f (diff)
downloadpoky-2963cc25afb65376ba6a1a6487274143bd67f674.tar.gz
image: Support for qcow2
Add support for qcow2 image format. Implemented in the same way as the previously existing vmdk and vdi solutions. (From OE-Core rev: c1f9ed400e4b5fe5be4fac86021dea11a7546035) Signed-off-by: Christian Ziethén <christian.ziethen@linaro.org> 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.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index 588a474620..cc789fc27f 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", "vdi", "live", "iso", "hddimg"]: 16 if type in ["vmdk", "vdi", "qcow2", "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:
@@ -187,6 +187,7 @@ IMAGE_TYPES = " \
187 cpio cpio.gz cpio.xz cpio.lzma cpio.lz4 \ 187 cpio cpio.gz cpio.xz cpio.lzma cpio.lz4 \
188 vmdk \ 188 vmdk \
189 vdi \ 189 vdi \
190 qcow2 \
190 elf \ 191 elf \
191" 192"
192 193
@@ -213,5 +214,5 @@ DEPLOYABLE_IMAGE_TYPES ?= "hddimg iso"
213IMAGE_EXTENSION_live = "hddimg iso" 214IMAGE_EXTENSION_live = "hddimg iso"
214 215
215# The IMAGE_TYPES_MASKED variable will be used to mask out from the IMAGE_FSTYPES, 216# The IMAGE_TYPES_MASKED variable will be used to mask out from the IMAGE_FSTYPES,
216# images that will not be built at do_rootfs time: vmdk, vdi, hddimg, iso, etc. 217# images that will not be built at do_rootfs time: vmdk, vdi, qcow2, hddimg, iso, etc.
217IMAGE_TYPES_MASKED ?= "" 218IMAGE_TYPES_MASKED ?= ""