From d68ee5b431ce898b291fc07de07dfd8812e2b540 Mon Sep 17 00:00:00 2001 From: Darek Stojaczyk Date: Thu, 11 Oct 2018 11:02:15 +0200 Subject: [PATCH] autotest/freebsd: fix contigmem.ko path when using external dpdk Change-Id: I9997c848ecb2514fbaf0ae9f4a0eb80d5e1522bc Signed-off-by: Darek Stojaczyk Reviewed-on: https://review.gerrithub.io/428900 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Karol Latecki Reviewed-by: Ben Walker Chandler-Test-Pool: SPDK Automated Test System --- test/common/autotest_common.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/common/autotest_common.sh b/test/common/autotest_common.sh index bc7364d27..6615b9f62 100644 --- a/test/common/autotest_common.sh +++ b/test/common/autotest_common.sh @@ -684,8 +684,14 @@ function freebsd_update_contigmem_mod() { if [ `uname` = FreeBSD ]; then kldunload contigmem.ko || true - cp -f $rootdir/dpdk/build/kmod/contigmem.ko /boot/modules/ - cp -f $rootdir/dpdk/build/kmod/contigmem.ko /boot/kernel/ + if [ ! -z "$WITH_DPDK_DIR" ]; then + echo "Warning: SPDK only works on FreeBSD with patches that only exist in SPDK's dpdk submodule" + cp -f "$WITH_DPDK_DIR/kmod/contigmem.ko" /boot/modules/ + cp -f "$WITH_DPDK_DIR/kmod/contigmem.ko" /boot/kernel/ + else + cp -f "$rootdir/dpdk/build/kmod/contigmem.ko" /boot/modules/ + cp -f "$rootdir/dpdk/build/kmod/contigmem.ko" /boot/kernel/ + fi fi }