From d308be1dff713f762e6ae18c1764115b866db5a8 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 14 Feb 2012 09:17:13 -0800 Subject: [PATCH] debian: Use provided kernel source dir instead of host kernel version. DKMS passes in an explicit variable for the kernel source directory, so we should use that instead of `uname -r`. CC: 659685@bugs.debian.org Reported-by: Thomas Goirand Tested-by: Simon Horman Signed-off-by: Ben Pfaff --- debian/dkms.conf.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/dkms.conf.in b/debian/dkms.conf.in index ae1fc7a08..d5bc37ed5 100644 --- a/debian/dkms.conf.in +++ b/debian/dkms.conf.in @@ -1,6 +1,6 @@ PACKAGE_NAME="openvswitch" PACKAGE_VERSION="__VERSION__" -MAKE="./configure --with-linux=/lib/modules/`uname -r`/build && make -C datapath/linux" +MAKE="./configure --with-linux='${kernel_source_dir}' && make -C datapath/linux" BUILT_MODULE_NAME[0]=openvswitch_mod BUILT_MODULE_NAME[1]=brcompat_mod BUILT_MODULE_LOCATION[0]=datapath/linux/ -- 2.43.0