diff --git a/scripts/dkms.mkconf b/scripts/dkms.mkconf index ad97f9bca6..880510abd3 100755 --- a/scripts/dkms.mkconf +++ b/scripts/dkms.mkconf @@ -30,6 +30,12 @@ PRE_BUILD="configure --with-spl=\${source_tree}/spl-\${PACKAGE_VERSION} --with-spl-obj=\${dkms_tree}/spl/\${PACKAGE_VERSION}/\${kernelver}/\${arch} --with-spl-timeout=300 + \$( + [[ -n \"\${ICP_ROOT}\" ]] && \\ + { + echo --with-qat=\"\${ICP_ROOT}\" + } + ) \$( [[ -r \${PACKAGE_CONFIG} ]] \\ && source \${PACKAGE_CONFIG} \\