In ccfc90e101
(package/libvirt: new package), last-minute changes
missed the depenecny on kernel headers; headers >= 3.12 are required for
all architectures, but AArch64, which requires 4.11 for HWCAP_CPUID:
../src/cpu/cpu_arm.c: In function 'virCPUarmCpuDataFromRegs':
../src/cpu/cpu_arm.c:562:20: error: 'HWCAP_CPUID' undeclared (first use in this function); did you mean 'HWCAP_PMULL'?
if (!(hwcaps & HWCAP_CPUID)) {
^~~~~~~~~~~
HWCAP_PMULL
Fixes:
- http://autobuild.buildroot.org/results/85bf7b4dad73a748bf439e63874eb64d9a53088f
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[yann.morin.1998@free.fr:
- move AArch64 4.11 req. from _ARCH_SUPPORTS to BR2_PACKAGE_LIBVIRT
- add missing dependency on headers 3.12 for the rest
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
89 lines
2.8 KiB
Plaintext
89 lines
2.8 KiB
Plaintext
config BR2_PACKAGE_LIBVIRT_ARCH_SUPPORTS
|
|
bool
|
|
default y if BR2_aarch64
|
|
default y if BR2_i386
|
|
default y if BR2_x86_64
|
|
depends on BR2_USE_MMU # fork()
|
|
|
|
comment "libvirt needs udev /dev management, a toolchain w/ threads, dynamic library, kernel headers >= 3.12"
|
|
depends on BR2_PACKAGE_LIBVIRT_ARCH_SUPPORTS
|
|
depends on !BR2_PACKAGE_HAS_UDEV || BR2_STATIC_LIBS || !BR2_USE_MMU || \
|
|
!BR2_TOOLCHAIN_HAS_THREADS || \
|
|
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
|
|
|
|
config BR2_PACKAGE_LIBVIRT
|
|
bool "libvirt"
|
|
depends on BR2_PACKAGE_LIBVIRT_ARCH_SUPPORTS
|
|
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
|
|
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11 || !BR2_aarch64
|
|
depends on BR2_PACKAGE_HAS_UDEV
|
|
depends on !BR2_STATIC_LIBS
|
|
depends on BR2_USE_WCHAR
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS
|
|
depends on BR2_USE_WCHAR
|
|
select BR2_PACKAGE_GNUTLS
|
|
# configure: You must install the pciaccess module to build with udev
|
|
select BR2_PACKAGE_LIBPCIACCESS
|
|
select BR2_PACKAGE_LIBGLIB2
|
|
select BR2_PACKAGE_LIBTIRPC
|
|
select BR2_PACKAGE_LIBXML2
|
|
select BR2_PACKAGE_ZLIB
|
|
# run-time dependencies
|
|
select BR2_PACKAGE_CGROUPFS_MOUNT if !BR2_INIT_SYSTEMD
|
|
help
|
|
Libvirt is collection of software that provides a convenient
|
|
way to manage virtual machines and other virtualization
|
|
functionality, such as storage and network interface
|
|
management. These software pieces include an API library, a
|
|
daemon (libvirtd), and a command line utility (virsh).
|
|
|
|
https://libvirt.org/
|
|
|
|
if BR2_PACKAGE_LIBVIRT
|
|
|
|
config BR2_PACKAGE_LIBVIRT_DAEMON
|
|
bool "libvirtd"
|
|
default y
|
|
select BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
|
select BR2_PACKAGE_DNSMASQ
|
|
select BR2_PACKAGE_EBTABLES
|
|
select BR2_PACKAGE_IPTABLES
|
|
select BR2_PACKAGE_IPROUTE2
|
|
# These are required because there is no way to unequivocally select a modern netcat
|
|
select BR2_PACKAGE_NMAP if !BR2_PACKAGE_NETCAT_OPENBSD
|
|
select BR2_PACKAGE_NMAP_NCAT if !BR2_PACKAGE_NETCAT_OPENBSD
|
|
select BR2_PACKAGE_RADVD
|
|
help
|
|
Build the libvirt daemon (libvirtd) otherwise build only the
|
|
utility programs.
|
|
|
|
# Stateful drivers are useful only when building the daemon.
|
|
if BR2_PACKAGE_LIBVIRT_DAEMON
|
|
|
|
config BR2_PACKAGE_LIBVIRT_QEMU
|
|
bool "qemu"
|
|
depends on BR2_PACKAGE_LIBSECCOMP_ARCH_SUPPORTS # libseccomp
|
|
depends on BR2_PACKAGE_QEMU_ARCH_SUPPORTS_TARGET
|
|
select BR2_PACKAGE_HWDATA # libpciaccess
|
|
select BR2_PACKAGE_HWDATA_PCI_IDS # libpciaccess
|
|
select BR2_PACKAGE_LIBSECCOMP
|
|
select BR2_PACKAGE_QEMU
|
|
select BR2_PACKAGE_QEMU_SYSTEM if BR2_PACKAGE_QEMU_CUSTOM_TARGETS = ""
|
|
select BR2_PACKAGE_YAJL
|
|
help
|
|
QEMU/KVM support
|
|
|
|
config BR2_PACKAGE_LIBVIRT_LXC
|
|
bool "lxc"
|
|
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 # lxc
|
|
select BR2_PACKAGE_LXC
|
|
help
|
|
Linux Container support
|
|
|
|
comment "lxc needs a toolchain w/ gcc >= 4.7"
|
|
depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
|
|
|
|
endif
|
|
|
|
endif
|