Update qat driver sign method with 4.18 kernel from CentOS 8

(cherry picked from commit 3a347d0f7744d9df11af1f66b0dd1f3591dc8d4d)

Story: 2007308
Task: 38807
Depends-On: https://review.opendev.org/720325

Change-Id: I78a913c23f3e99aa88c0b87311a4fe0f6f3f32af
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
Signed-off-by: Dongqi Chen <chen.dq@neusoft.com>
This commit is contained in:
Dongqi Chen 2020-04-16 14:34:37 +08:00 committed by Austin Sun
parent 087df449cb
commit d538930780
2 changed files with 3 additions and 3 deletions

View File

@ -2,5 +2,5 @@ COPY_LIST=" \
$PKG_BASE/files/* \
$STX_BASE/downloads/qat1.7.l.4.5.0-00034.tar.gz \
"
TIS_PATCH_VER=1
TIS_PATCH_VER=2
BUILD_IS_SLOW=3

View File

@ -112,10 +112,10 @@ find %{buildroot} -type f -name \*.ko -exec %{__strip} --strip-debug \{\} \;
# Always Sign the modules(s).
# If the module signing keys are not defined, define them here.
%{!?privkey: %define privkey /usr/src/kernels/%{kernel_version}/signing_key.priv}
%{!?privkey: %define privkey /usr/src/kernels/%{kernel_version}/signing_key.pem}
%{!?pubkey: %define pubkey /usr/src/kernels/%{kernel_version}/signing_key.x509}
for module in $(find %{buildroot} -type f -name \*.ko);
do %{__perl} /usr/src/kernels/%{kernel_version}/scripts/sign-file \
do /usr/src/kernels/%{kernel_version}/scripts/sign-file \
sha256 %{privkey} %{pubkey} $module;
done