From e45c1734a665e571599781811a0cd3128a550226 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 c40d0e828d..e1a49dca14 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 } ) "