Use requested kernel for dkms builds
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 20 Mar 2013 22:15:05 +0000 (15:15 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 21 Mar 2013 19:51:06 +0000 (12:51 -0700)
The --with-linux and --with-linux-obj options must be specified
as part of the dkms build otherwise the package will be built
against the running kernel.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
scripts/dkms.mkconf

index 62caa4b..ecdee71 100755 (executable)
@@ -25,6 +25,8 @@ PACKAGE_CONFIG="${pkgcfg}"
 PRE_BUILD="configure
   --prefix=/usr
   --with-config=kernel
+  --with-linux=\${kernel_source_dir}
+  --with-linux-obj=\${kernel_source_dir}
   --with-spl=\${dkms_tree}/spl/\${PACKAGE_VERSION}/build
   --with-spl-obj=\${dkms_tree}/spl/\${PACKAGE_VERSION}/\${kernelver}/\${arch}
   --with-spl-timeout=300