package/dpdk: make the libvirt dependency explicit

examples/vm_power_manager/meson.build in DPDK detects the presence of
libvirt:

opt_dep = cc.find_library('virt', required : false)

and then builds some examples or not depending on the availability of
libvirt. Let's make this optional dependency explicit in dpdk.mk, even
if there's no explicit enable/disable option for it.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Thomas Petazzoni
2026-08-29 00:11:44 +02:00
committed by Peter Korsgaard
parent db3d0d44ac
commit 55a7ece9e5

View File

@@ -112,6 +112,10 @@ ifeq ($(BR2_PACKAGE_LIBBPF),y)
DPDK_DEPENDENCIES += libbpf
endif
ifeq ($(BR2_PACKAGE_LIBVIRT),y)
DPDK_DEPENDENCIES += libvirt
endif
ifeq ($(BR2_PACKAGE_RDMA_CORE),y)
DPDK_DEPENDENCIES += rdma-core
endif