Return-Path: Received: from mx-3.enea.com (sestofw01.enea.se [192.36.1.252]) by yocto-www.yoctoproject.org (Postfix) with SMTP id D56B3E0076C for ; Wed, 26 Feb 2014 02:08:14 -0800 (PST) Received: from sestows930 (172.16.140.35) by smtp.enea.com (172.21.1.208) with Microsoft SMTP Server id 14.3.158.1; Wed, 26 Feb 2014 11:08:06 +0100 Received: from jori by sestows930 with local (Exim 4.80) (envelope-from ) id 1WIbPK-0004YW-BN; Wed, 26 Feb 2014 11:08:06 +0100 From: Jonas Eriksson To: Date: Wed, 26 Feb 2014 11:07:56 +0100 Message-ID: <1393409277-17451-5-git-send-email-jonas.eriksson@enea.com> X-Mailer: git-send-email 1.9.rc1 In-Reply-To: <1393409277-17451-1-git-send-email-jonas.eriksson@enea.com> References: <1393409277-17451-1-git-send-email-jonas.eriksson@enea.com> MIME-Version: 1.0 Received-SPF: None (SESTOEX08.enea.se: jonas.eriksson@enea.com does not designate permitted sender hosts) Subject: [PATCH 4/5] libvirt: Use DISTRO_FEATURES to enable Xen support X-BeenThere: meta-virtualization@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Discussion of layer enabling hypervisor, virtualization tool stack, and cloud support" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Feb 2014 10:08:15 -0000 Content-Type: text/plain 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 --- 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 dbc6ef3..a75cc45 100644 --- a/recipes-extended/libvirt/libvirt_1.2.1.bb +++ b/recipes-extended/libvirt/libvirt_1.2.1.bb @@ -109,10 +109,11 @@ 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 test remote macvtap libvirtd netcf udev python ebtables \ +PACKAGECONFIG ??= "qemu yajl uml openvz vmware vbox esx iproute2 polkit test \ + remote macvtap libvirtd netcf udev python ebtables \ ${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \ ${@base_contains('DISTRO_FEATURES', 'lxc', 'lxc', '', d)} \ + ${@base_contains('DISTRO_FEATURES', 'xen', 'xen libxl xen-inotify', '', d)} \ " # enable,disable,depends,rdepends -- 1.9.rc1