From 03e5cd5680453bc642cde9570503319092888636 Mon Sep 17 00:00:00 2001 From: Michal Berger Date: Tue, 21 Sep 2021 19:20:49 +0200 Subject: [PATCH] autobuild: Enable mlx5 drivers for supported DPDK versions Signed-off-by: Michal Berger Change-Id: I224fa7d01286a68afecaca6e4afddcf7e966fed5 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9559 Community-CI: Broadcom CI Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Aleksey Marchuk --- autobuild.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/autobuild.sh b/autobuild.sh index ae6bf0a68..eab130722 100755 --- a/autobuild.sh +++ b/autobuild.sh @@ -118,6 +118,14 @@ function build_native_dpdk() { DPDK_DRIVERS+=("compress/isal") DPDK_DRIVERS+=("compress/qat") DPDK_DRIVERS+=("common/qat") + if ge "$(< "$external_dpdk_base_dir/VERSION")" 21.02.0; then + # SPDK enables REDUCE_MLX in case supported version of DPDK is detected + # so make sure proper libs are built. + DPDK_DRIVERS+=("bus/auxiliary") + DPDK_DRIVERS+=("common/mlx5") + DPDK_DRIVERS+=("common/mlx5/linux") + DPDK_DRIVERS+=("compress/mlx5") + fi export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$isal_dir/build/lib/pkgconfig" export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$isal_dir/build/lib" fi