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-vmdk.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-vmdk.bbclass')
| -rw-r--r-- | meta/classes/image-vmdk.bbclass | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/meta/classes/image-vmdk.bbclass b/meta/classes/image-vmdk.bbclass deleted file mode 100644 index 77b7facd41..0000000000 --- a/meta/classes/image-vmdk.bbclass +++ /dev/null | |||
| @@ -1,35 +0,0 @@ | |||
| 1 | |||
| 2 | #NOISO = "1" | ||
| 3 | |||
| 4 | SYSLINUX_ROOT ?= "root=/dev/sda2" | ||
| 5 | SYSLINUX_PROMPT ?= "0" | ||
| 6 | SYSLINUX_TIMEOUT ?= "10" | ||
| 7 | SYSLINUX_LABELS = "boot" | ||
| 8 | LABELS_append = " ${SYSLINUX_LABELS} " | ||
| 9 | |||
| 10 | # need to define the dependency and the ROOTFS for directdisk | ||
| 11 | do_bootdirectdisk[depends] += "${PN}:do_rootfs" | ||
| 12 | ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.ext3" | ||
| 13 | |||
| 14 | # creating VMDK relies on having a live hddimg so ensure we | ||
| 15 | # inherit it here. | ||
| 16 | #inherit image-live | ||
| 17 | inherit boot-directdisk | ||
| 18 | |||
| 19 | IMAGE_TYPEDEP_vmdk = "ext3" | ||
| 20 | IMAGE_TYPES_MASKED += "vmdk" | ||
| 21 | |||
| 22 | create_vmdk_image () { | ||
| 23 | qemu-img convert -O vmdk ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.hdddirect ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.vmdk | ||
| 24 | ln -sf ${IMAGE_NAME}.vmdk ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.vmdk | ||
| 25 | } | ||
| 26 | |||
| 27 | python do_vmdkimg() { | ||
| 28 | bb.build.exec_func('create_vmdk_image', d) | ||
| 29 | } | ||
| 30 | |||
| 31 | #addtask vmdkimg after do_bootimg before do_build | ||
| 32 | addtask vmdkimg after do_bootdirectdisk before do_build | ||
| 33 | |||
| 34 | do_vmdkimg[depends] += "qemu-native:do_populate_sysroot" | ||
| 35 | |||
