From d928b8ff37417bc54c7b08f6f1e7a151ead2af6b Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sat, 29 Aug 2026 00:11:44 +0200 Subject: [PATCH] package/dpdk: make the libvirt dependency explicit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Peter Korsgaard (cherry picked from commit 55a7ece9e53f2de0cd96294efeb38045bbd41bef) Signed-off-by: Raphaël Mélotte --- package/dpdk/dpdk.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/dpdk/dpdk.mk b/package/dpdk/dpdk.mk index 080f924329..183ea87946 100644 --- a/package/dpdk/dpdk.mk +++ b/package/dpdk/dpdk.mk @@ -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