Browse files

dkms: Enable debuginfo option to be set with zfs sysconfig file

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 <>
Reviewed-by: Brian Behlendorf <>
Co-authored-by: Neal Gompa <>
Co-authored-by: Simon Watson <>
Signed-off-by: Neal Gompa <>
Signed-off-by: Simon Watson <>
Closes #8304
  • Loading branch information...
Conan-Kudo authored and tonyhutter committed Jan 18, 2019
1 parent c3ec8aa commit 20267a0f2312217f39b545cd37a29062cfcd335e
Showing with 4 additions and 0 deletions.
  1. +4 −0 scripts/dkms.mkconf
@@ -65,6 +65,10 @@ PRE_BUILD="configure
echo --enable-debug-dmu-tx
if [[ \${ZFS_DKMS_ENABLE_DEBUGINFO,,} == @(y|yes) ]]
echo --enable-debuginfo

0 comments on commit 20267a0

Please sign in to comment.