From: Neal Gompa (ニール・ゴンパ) Date: Fri, 18 Jan 2019 18:10:24 +0000 (-0500) Subject: dkms: Enable debuginfo option to be set with zfs sysconfig file X-Git-Tag: zfs-0.8.0-rc4~159 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e45c1734a665e571599781811a0cd3128a550226;p=zfs 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 --- 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 } ) "