autobuild: On FreeBSD, install the contigmem driver

The contigmem driver is built with dpdk and frequently updated. We
should copy this driver each time we build dpdk in order to maintain
support for FreeBSD

kldload checks the sysctl variable kern.module_path when deciding which
modules to load. Since the values stored in this variable are not
determined by our program, I chose to copy the module to both common
directories for kernel modules in FreeBSD.

Change-Id: I2d439a9cbac5bebb79e6ee48bec47409bb215be9
Signed-off-by: Seth Howell <seth.howell@intel.com>
Reviewed-on: https://review.gerrithub.io/409250
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Seth Howell 2018-04-26 16:46:08 -07:00 committed by Daniel Verkamp
parent 28589dbbe8
commit 86ee572b79
2 changed files with 11 additions and 0 deletions

View File

@ -28,6 +28,8 @@ cd $src
./scripts/setup.sh status
freebsd_update_contigmem_mod
if hash lcov; then
# setup output dir for unittest.sh
export UT_COVERAGE=$out/ut_coverage

View File

@ -600,5 +600,14 @@ function autotest_cleanup()
$rootdir/scripts/setup.sh reset
}
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/
fi
}
set -o errtrace
trap "trap - ERR; print_backtrace >&2" ERR