From 9b5d1d158a78d50c55a86d8e9f245b3f84c88893 Mon Sep 17 00:00:00 2001 From: Jonas Eriksson Date: Thu, 27 Feb 2014 17:10:08 +0100 Subject: libvirt: Use DISTRO_FEATURES to enable Xen support The Xen drivers in libvirt is needed when the build file system image and kernel are running as dom0. The parts of the kernel needed to run as dom0 are controlled by DISTRO_FEATURES, and thus there is no need for the Xen drivers if DISTRO_FEATURES does not contain 'xen'. Signed-off-by: Jonas Eriksson Acked-by: Bruce Ashfield Signed-off-by: Bruce Ashfield --- recipes-extended/libvirt/libvirt_1.2.1.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/recipes-extended/libvirt/libvirt_1.2.1.bb b/recipes-extended/libvirt/libvirt_1.2.1.bb index 76d3f42b..5365b8de 100644 --- a/recipes-extended/libvirt/libvirt_1.2.1.bb +++ b/recipes-extended/libvirt/libvirt_1.2.1.bb @@ -109,9 +109,10 @@ INITSCRIPT_PARAMS_${PN}-libvirtd = "defaults 72" #PACKAGECONFIG ??= "xen libxl xen-inotify test remote libvirtd" # full config -PACKAGECONFIG ??= "qemu yajl xen libxl xen-inotify uml openvz vmware vbox esx iproute2 \ - polkit lxc test remote macvtap libvirtd netcf udev python ebtables \ +PACKAGECONFIG ??= "qemu yajl uml openvz vmware vbox esx iproute2 polkit lxc test \ + remote macvtap libvirtd netcf udev python ebtables \ ${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \ + ${@base_contains('DISTRO_FEATURES', 'xen', 'xen libxl xen-inotify', '', d)} \ " # enable,disable,depends,rdepends -- cgit v1.2.3-54-g00ecf