diff options
author | Neal Gompa (ニール・ゴンパ) <[email protected]> | 2019-01-18 13:10:24 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-01-18 10:10:24 -0800 |
commit | e45c1734a665e571599781811a0cd3128a550226 (patch) | |
tree | b6bb82d7e68178ad14099acaf30c93810d0989a7 /scripts | |
parent | 60b0a963f56182beb2d57823960f3ddb987a584a (diff) |
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 <[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 #8304
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/dkms.mkconf | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/dkms.mkconf b/scripts/dkms.mkconf index c40d0e828..e1a49dca1 100755 --- a/scripts/dkms.mkconf +++ b/scripts/dkms.mkconf @@ -58,6 +58,10 @@ PRE_BUILD="configure then echo --enable-debug fi + if [[ \${ZFS_DKMS_ENABLE_DEBUGINFO,,} == @(y|yes) ]] + then + echo --enable-debuginfo + fi } ) " |