diff --git a/autobuild.sh b/autobuild.sh index b128230ab..bf91951f8 100755 --- a/autobuild.sh +++ b/autobuild.sh @@ -57,6 +57,7 @@ function build_native_dpdk() { local external_dpdk_base_dir local compiler_version local compiler + local dpdk_kmods compiler=${CC:-gcc} @@ -167,8 +168,13 @@ function build_native_dpdk() { fi fi + dpdk_kmods="false" + if [ "$(uname -s)" = "FreeBSD" ]; then + dpdk_kmods="true" + fi + meson build-tmp --prefix="$external_dpdk_dir" --libdir lib \ - -Denable_docs=false -Denable_kmods=false -Dtests=false \ + -Denable_docs=false -Denable_kmods="$dpdk_kmods" -Dtests=false \ -Dc_link_args="$dpdk_ldflags" -Dc_args="$dpdk_cflags" \ -Dmachine=native -Denable_drivers=$(printf "%s," "${DPDK_DRIVERS[@]}") ninja -C "$external_dpdk_base_dir/build-tmp" $MAKEFLAGS diff --git a/test/common/autotest_common.sh b/test/common/autotest_common.sh index 110e44781..99bcc9a95 100755 --- a/test/common/autotest_common.sh +++ b/test/common/autotest_common.sh @@ -1262,7 +1262,6 @@ function freebsd_update_contigmem_mod() { if [ $(uname) = FreeBSD ]; then kldunload contigmem.ko || true if [ -n "$SPDK_RUN_EXTERNAL_DPDK" ]; then - echo "Warning: SPDK only works on FreeBSD with patches that only exist in SPDK's dpdk submodule" cp -f "$SPDK_RUN_EXTERNAL_DPDK/kmod/contigmem.ko" /boot/modules/ cp -f "$SPDK_RUN_EXTERNAL_DPDK/kmod/contigmem.ko" /boot/kernel/ cp -f "$SPDK_RUN_EXTERNAL_DPDK/kmod/nic_uio.ko" /boot/modules/