From bef14fbc8c29fb07a34fc3ac7f70ef8c2f8d1c0e Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 20 Mar 2013 15:11:24 -0700 Subject: [PATCH] Use requested kernel for dkms builds 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 --- scripts/dkms.mkconf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/dkms.mkconf b/scripts/dkms.mkconf index 3bfe2be7bb..f9cf696927 100755 --- a/scripts/dkms.mkconf +++ b/scripts/dkms.mkconf @@ -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} \\