Skip to content

Commit

Permalink
dkms: Enable debuginfo option to be set with zfs sysconfig file
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Co-authored-by: Neal Gompa <[email protected]>
Co-authored-by: Simon Watson <[email protected]>
Signed-off-by: Neal Gompa <[email protected]>
Signed-off-by: Simon Watson <[email protected]>
Closes openzfs#8304
  • Loading branch information
Conan-Kudo authored and tonyhutter committed Jan 11, 2019
1 parent c7f84a7 commit d9330a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/dkms.mkconf
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ PRE_BUILD="configure
then
echo --enable-debug-dmu-tx
fi
if [[ \${ZFS_DKMS_ENABLE_DEBUGINFO,,} == @(y|yes) ]]
then
echo --enable-debuginfo
fi
}
)
"
Expand Down

0 comments on commit d9330a9

Please sign in to comment.