aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2012-02-14 09:17:13 -0800
committerBen Pfaff <blp@nicira.com>2012-02-14 09:18:12 -0800
commiteec336f2c312b10557b59bb3bd9faf01dedb8dc8 (patch)
treec091b594a7ef96ce01cb20834d54e35dd565f2e3
parente9b0614f9e83f7eaae1072bf529c13f22dc9d458 (diff)
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 <thomas@goirand.fr> Tested-by: Simon Horman <horms@verge.net.au> Signed-off-by: Ben Pfaff <blp@nicira.com>
-rw-r--r--debian/dkms.conf.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/dkms.conf.in b/debian/dkms.conf.in
index ae1fc7a0..d5bc37ed 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/