aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorIan Reinhart Geiser <geiseri@geekcentral.pub>2016-04-29 08:41:49 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-09 08:03:58 +0100
commitdf0b217f3df2c36a32e5c4afaec36a28bfc77bbb (patch)
tree3f374b2c9c0ac60f7fb2206de8b51639e0d30c55 /meta/classes
parent20ea6d274bb0a9a5addb111f32793de49b907865 (diff)
downloadopenembedded-core-contrib-df0b217f3df2c36a32e5c4afaec36a28bfc77bbb.tar.gz
openembedded-core-contrib-df0b217f3df2c36a32e5c4afaec36a28bfc77bbb.tar.bz2
openembedded-core-contrib-df0b217f3df2c36a32e5c4afaec36a28bfc77bbb.zip
classes/image_vm: allow different filesystems to be used for VM images.
This allows for things like btrfs to be used vs just ext4. The default value of ext4 is kept so there is no functional change unless VM_ROOTFS_TYPE is set in the inherting recipe. Signed-off-by: Ian Reinhart Geiser <geiseri@geekcentral.pub> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/image-vm.bbclass13
1 files changed, 7 insertions, 6 deletions
diff --git a/meta/classes/image-vm.bbclass b/meta/classes/image-vm.bbclass
index 47f73261f1..2bbd9d3671 100644
--- a/meta/classes/image-vm.bbclass
+++ b/meta/classes/image-vm.bbclass
@@ -23,16 +23,17 @@ do_bootdirectdisk[depends] += "dosfstools-native:do_populate_sysroot \
syslinux-native:do_populate_sysroot \
parted-native:do_populate_sysroot \
mtools-native:do_populate_sysroot \
- ${PN}:do_image_ext4 \
+ ${PN}:do_image_${VM_ROOTFS_TYPE} \
"
-IMAGE_TYPEDEP_vmdk = "ext4"
-IMAGE_TYPEDEP_vdi = "ext4"
-IMAGE_TYPEDEP_qcow2 = "ext4"
-IMAGE_TYPEDEP_hdddirect = "ext4"
+IMAGE_TYPEDEP_vmdk = "${VM_ROOTFS_TYPE}"
+IMAGE_TYPEDEP_vdi = "${VM_ROOTFS_TYPE}"
+IMAGE_TYPEDEP_qcow2 = "${VM_ROOTFS_TYPE}"
+IMAGE_TYPEDEP_hdddirect = "${VM_ROOTFS_TYPE}"
IMAGE_TYPES_MASKED += "vmdk vdi qcow2 hdddirect"
-ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.ext4"
+VM_ROOTFS_TYPE ?= "ext4"
+ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.${VM_ROOTFS_TYPE}"
# Used by bootloader
LABELS_VM ?= "boot"