diff --git a/lib/env_dpdk/env.mk b/lib/env_dpdk/env.mk index 36257fb03e..66a42ab05c 100644 --- a/lib/env_dpdk/env.mk +++ b/lib/env_dpdk/env.mk @@ -105,6 +105,11 @@ LINK_HASH=n ifeq ($(CONFIG_VHOST),y) DPDK_LIB_LIST += rte_vhost +ifneq (, $(wildcard $(DPDK_LIB_DIR)/librte_dmadev.*)) +# Introduced in DPDK 21.11, and rte_vhost became dependent on +# it shortly thereafter +DPDK_LIB_LIST += rte_dmadev +endif LINK_HASH=y ifneq ($(DPDK_FRAMEWORK),y) DPDK_LIB_LIST += rte_cryptodev @@ -122,6 +127,7 @@ DPDK_LIB_LIST += rte_rcu endif endif + DPDK_LIB_LIST_SORTED = $(sort $(DPDK_LIB_LIST)) DPDK_SHARED_LIB = $(DPDK_LIB_LIST_SORTED:%=$(DPDK_LIB_DIR)/lib%.so)