Update iavf driver sign method with 4.18 kernel from CentOS 8
(cherry picked from commit b418537fae13e43140a1f5f2ac37b3e958461d7c) Changed the signatures of the modules method, because sign-file on centos 8 is not a perl script, but an executable command. The file extension of the private key was changed from priv to pem. Change-Id: I4adb4c693b89d23122183a45b2daab12249e5982 Story: 2007308 Task: 38800 Depends-On: https://review.opendev.org/720325 Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com> Signed-off-by: Dongqi Chen <chen.dq@neusoft.com>
This commit is contained in:
parent
087df449cb
commit
87c12345cd
|
@ -1,4 +1,4 @@
|
|||
COPY_LIST=" \
|
||||
$PKG_BASE/files/* \
|
||||
$STX_BASE/downloads/iavf-3.7.61.20.tar.gz"
|
||||
TIS_PATCH_VER=1
|
||||
TIS_PATCH_VER=2
|
||||
|
|
|
@ -109,10 +109,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/%{kversion}/signing_key.priv}
|
||||
%{!?privkey: %define privkey /usr/src/kernels/%{kversion}/signing_key.pem}
|
||||
%{!?pubkey: %define pubkey /usr/src/kernels/%{kversion}/signing_key.x509}
|
||||
for module in $(find %{buildroot} -type f -name \*.ko);
|
||||
do %{__perl} /usr/src/kernels/%{kversion}/scripts/sign-file \
|
||||
do /usr/src/kernels/%{kversion}/scripts/sign-file \
|
||||
sha256 %{privkey} %{pubkey} $module;
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in New Issue