diff options
author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-04-18 21:31:00 -0700 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-04-18 21:36:00 -0700 |
commit | 273bdbaa50179af05047723a44289f97b2dd7d8f (patch) | |
tree | da6b6d1d171ac59fabc02535ca082289d62c0bae | |
parent | c6af28f6e7af3959495deada7f5210a47ee4d7f9 (diff) | |
download | meta-virtualization-273bdbaa50179af05047723a44289f97b2dd7d8f.tar.gz |
libvirt: use pkgconfig to control udev
To ensure that libvirt doesn't rely on detection of udev in the environment
or sysroot we can add a PACKAGECONFIG option to control both the enablement
of udev support, and ensure that libpciaccess is added as a dependency,
otherwise configure detects issues such as this:
| checking for UDEV... yes
| configure: error: You must install the pciaccess module to build with udev
| Configure failed. The contents of all config.log files follows to aid debugging
Signed-off-by: Ting Liu <b28495@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r-- | recipes-extended/libvirt/libvirt_1.0.3.bb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/recipes-extended/libvirt/libvirt_1.0.3.bb b/recipes-extended/libvirt/libvirt_1.0.3.bb index c1c000e0..f3419240 100644 --- a/recipes-extended/libvirt/libvirt_1.0.3.bb +++ b/recipes-extended/libvirt/libvirt_1.0.3.bb | |||
@@ -3,7 +3,7 @@ HOMEPAGE = "http://libvirt.org" | |||
3 | LICENSE = "GPLv2+" | 3 | LICENSE = "GPLv2+" |
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=fb919cc88dbe06ec0b0bd50e001ccf1f" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=fb919cc88dbe06ec0b0bd50e001ccf1f" |
5 | SECTION = "console/tools" | 5 | SECTION = "console/tools" |
6 | PR = "r1" | 6 | PR = "r2" |
7 | 7 | ||
8 | DEPENDS = "bridge-utils gnutls libxml2 lvm2 avahi parted curl libpcap util-linux e2fsprogs pm-utils \ | 8 | DEPENDS = "bridge-utils gnutls libxml2 lvm2 avahi parted curl libpcap util-linux e2fsprogs pm-utils \ |
9 | iptables ebtables dnsmasq readline" | 9 | iptables ebtables dnsmasq readline" |
@@ -106,7 +106,7 @@ INITSCRIPT_PARAMS_${PN}-libvirtd = "defaults 72" | |||
106 | 106 | ||
107 | # full config | 107 | # full config |
108 | PACKAGECONFIG ??= "qemu yajl xen libxl xen-inotify uml openvz vmware vbox esx \ | 108 | PACKAGECONFIG ??= "qemu yajl xen libxl xen-inotify uml openvz vmware vbox esx \ |
109 | polkit lxc test remote macvtap libvirtd netcf" | 109 | polkit lxc test remote macvtap libvirtd netcf udev" |
110 | 110 | ||
111 | PACKAGECONFIG[qemu] = "--with-qemu,--without-qemu,qemu" | 111 | PACKAGECONFIG[qemu] = "--with-qemu,--without-qemu,qemu" |
112 | PACKAGECONFIG[yajl] = "--with-yajl,--without-yajl,yajl,yajl" | 112 | PACKAGECONFIG[yajl] = "--with-yajl,--without-yajl,yajl,yajl" |
@@ -129,6 +129,7 @@ PACKAGECONFIG[macvtap] = "--with-macvtap=yes,--with-macvtap=no,libnl,libnl" | |||
129 | PACKAGECONFIG[libvirtd] = "--with-libvirtd,--without-libvirtd" | 129 | PACKAGECONFIG[libvirtd] = "--with-libvirtd,--without-libvirtd" |
130 | PACKAGECONFIG[netcf] = "--with-netcf,--without-netcf,netcf,netcf" | 130 | PACKAGECONFIG[netcf] = "--with-netcf,--without-netcf,netcf,netcf" |
131 | PACKAGECONFIG[dtrace] = "--with-dtrace,--without-dtrace,," | 131 | PACKAGECONFIG[dtrace] = "--with-dtrace,--without-dtrace,," |
132 | PACKAGECONFIG[udev] = "--with-udev --with-pciaccess,--without-udev,udev libpciaccess," | ||
132 | 133 | ||
133 | # Enable the Python tool support | 134 | # Enable the Python tool support |
134 | require libvirt-python.inc | 135 | require libvirt-python.inc |