aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/dkms.mkconf
diff options
context:
space:
mode:
authorNeal Gompa (ニール・ゴンパ) <[email protected]>2019-01-18 13:10:24 -0500
committerBrian Behlendorf <[email protected]>2019-01-18 10:10:24 -0800
commite45c1734a665e571599781811a0cd3128a550226 (patch)
treeb6bb82d7e68178ad14099acaf30c93810d0989a7 /scripts/dkms.mkconf
parent60b0a963f56182beb2d57823960f3ddb987a584a (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/dkms.mkconf')
-rwxr-xr-xscripts/dkms.mkconf4
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
}
)
"