diff options
| author | Saul Wold <sgw@linux.intel.com> | 2012-02-29 23:46:21 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-01 15:51:40 +0000 |
| commit | 0e56519b33a961cb7e7ff123aad2ca5b94ade6eb (patch) | |
| tree | d8e4fde014ed1287509c9cee0ee79625a521048e /meta/classes/image-vmdk.bbclass | |
| parent | 157b44cf72c8660ba53b8fe1b321d2ef314c07ef (diff) | |
| download | poky-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.bbclass | 22 |
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 | |||
| 2 | SYSLINUX_PROMPT = "0" | ||
| 3 | SYSLINUX_TIMEOUT = "1" | ||
| 4 | SYSLINUX_LABELS = "boot" | ||
| 5 | |||
| 6 | # creating VMDK relies on having a live hddimg so ensure we | ||
| 7 | # inherit it here. | ||
| 8 | inherit image-live | ||
| 9 | |||
| 10 | create_vmdk_image () { | ||
| 11 | qemu-img convert -O vmdk ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.hddimg ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.vmdk | ||
| 12 | } | ||
| 13 | |||
| 14 | python do_vmdkimg() { | ||
| 15 | bb.build.exec_func('create_vmdk_image', d) | ||
| 16 | } | ||
| 17 | |||
| 18 | addtask vmdkimg after do_bootimg before do_build | ||
| 19 | do_vmdkimg[nostamp] = "1" | ||
| 20 | |||
| 21 | do_vmdkimg[depends] += "qemu-native:do_populate_sysroot" | ||
| 22 | |||
