]> git.proxmox.com Git - mirror_spl.git/commitdiff
Use requested kernel for dkms builds
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 20 Mar 2013 22:11:24 +0000 (15:11 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 20 Mar 2013 23:01:29 +0000 (16:01 -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 3bfe2be7bbe3ff404db23636746107e928feb378..f9cf696927227ac56bc3782da2a74bdff61dc26b 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}
   \$(
     [[ -r \${PACKAGE_CONFIG} ]] \\
     && source \${PACKAGE_CONFIG} \\