From 44f463824bc78df2d23dd049c3ef57ddaf464feb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Neal=20Gompa=20=28=E3=83=8B=E3=83=BC=E3=83=AB=E3=83=BB?= =?UTF-8?q?=E3=82=B4=E3=83=B3=E3=83=91=29?= Date: Fri, 18 Jan 2019 13:10:24 -0500 Subject: [PATCH] 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 --- scripts/dkms.mkconf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/dkms.mkconf b/scripts/dkms.mkconf index 88c289383..616b7991b 100755 --- a/scripts/dkms.mkconf +++ b/scripts/dkms.mkconf @@ -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 } ) "