Commit 86ee572b authored by Seth Howell's avatar Seth Howell Committed by Daniel Verkamp
Browse files

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: default avatarSeth Howell <seth.howell@intel.com>
Reviewed-on: https://review.gerrithub.io/409250


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 28589dbb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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
+9 −0
Original line number Diff line number Diff line
@@ -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