diff options
author | David Qian <[email protected]> | 2017-12-07 16:43:13 +0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-12-14 12:44:27 -0500 |
commit | f6940bb9ea1ad6905101ba143859983189d32ac5 (patch) | |
tree | c454c3859597a1267bae41cd75a0e92fafecf624 /scripts/dkms.mkconf | |
parent | 9920950ccbe032507663f5879721a80f14a83627 (diff) |
Enable QAT support in zfs-dkms RPM
Enable QAT accelerated gzip compression in zfs-dkms RPM package when
environment variant ICP_ROOT is set to QAT drive source code folder
and QAT hardware presence. Otherwise, use default gzip compression.
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: David Qian <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #6932
Diffstat (limited to 'scripts/dkms.mkconf')
-rwxr-xr-x | scripts/dkms.mkconf | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/dkms.mkconf b/scripts/dkms.mkconf index c3c74910b..ab171a606 100755 --- a/scripts/dkms.mkconf +++ b/scripts/dkms.mkconf @@ -31,6 +31,12 @@ PRE_BUILD="configure --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} \\ && shopt -q -s extglob \\ |