]> git.proxmox.com Git - mirror_zfs.git/commitdiff
dkms: Enable debuginfo option to be set with zfs sysconfig file
authorNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Fri, 18 Jan 2019 18:10:24 +0000 (13:10 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 18 Jan 2019 18:10:24 +0000 (10:10 -0800)
On some Linux distributions, the kernel module build will not
default to building with debuginfo symbols, which can make it
difficult for debugging and testing.

For this case, we provide a flag to override the build to force
debuginfo to be produced for the kernel module build.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Co-authored-by: Neal Gompa <ngompa@datto.com>
Co-authored-by: Simon Watson <swatson@datto.com>
Signed-off-by: Neal Gompa <ngompa@datto.com>
Signed-off-by: Simon Watson <swatson@datto.com>
Closes #8304

scripts/dkms.mkconf

index c40d0e828d7476c96b416da44c01ce330a7a5ba7..e1a49dca14f460fbfd7a0546ce1a40a3d2a173bc 100755 (executable)
@@ -58,6 +58,10 @@ PRE_BUILD="configure
       then
         echo --enable-debug
       fi
+      if [[ \${ZFS_DKMS_ENABLE_DEBUGINFO,,} == @(y|yes) ]]
+      then
+        echo --enable-debuginfo
+      fi
     }
   )
 "