summaryrefslogtreecommitdiffstats
path: root/meta/classes/image-vmdk.bbclass
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2012-02-29 23:46:21 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-01 15:51:40 +0000
commit0e56519b33a961cb7e7ff123aad2ca5b94ade6eb (patch)
treed8e4fde014ed1287509c9cee0ee79625a521048e /meta/classes/image-vmdk.bbclass
parent157b44cf72c8660ba53b8fe1b321d2ef314c07ef (diff)
downloadpoky-0e56519b33a961cb7e7ff123aad2ca5b94ade6eb.tar.gz
image-vmdk: Create image_vmdk class and setup image and image_types to use it
This creates a new image_vmdk class similar to live. The image_vmdk class needs to have a hddimg created by the image-live class, so it inherits it directly. The changes to image_types is to ensure that both live and vmdk images get the ext3 tools and dependencies. (From OE-Core rev: aa961e112b07d42c272e01f2d69f3c139e9ae70f) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/image-vmdk.bbclass')
-rw-r--r--meta/classes/image-vmdk.bbclass22
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/classes/image-vmdk.bbclass b/meta/classes/image-vmdk.bbclass
new file mode 100644
index 0000000000..d3e548178b
--- /dev/null
+++ b/meta/classes/image-vmdk.bbclass
@@ -0,0 +1,22 @@
1
2SYSLINUX_PROMPT = "0"
3SYSLINUX_TIMEOUT = "1"
4SYSLINUX_LABELS = "boot"
5
6# creating VMDK relies on having a live hddimg so ensure we
7# inherit it here.
8inherit image-live
9
10create_vmdk_image () {
11 qemu-img convert -O vmdk ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.hddimg ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.vmdk
12}
13
14python do_vmdkimg() {
15 bb.build.exec_func('create_vmdk_image', d)
16}
17
18addtask vmdkimg after do_bootimg before do_build
19do_vmdkimg[nostamp] = "1"
20
21do_vmdkimg[depends] += "qemu-native:do_populate_sysroot"
22