debian: Use provided kernel source dir instead of host kernel version.
authorBen Pfaff <blp@nicira.com>
Tue, 14 Feb 2012 17:17:13 +0000 (09:17 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 14 Feb 2012 17:17:13 +0000 (09:17 -0800)
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 <thomas@goirand.fr>
Tested-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
debian/dkms.conf.in

index ae1fc7a08c9ecc0a34c08f61f21817050a2df40f..d5bc37ed5fa9e7b79fa5ff06048e6bd2679f5bab 100644 (file)
@@ -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/