|
|
@ -707,32 +707,26 @@ popd > /dev/null
|
|
|
|
popd > /dev/null
|
|
|
|
popd > /dev/null
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%ifarch x86_64
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%define __modsign_install_post \
|
|
|
|
%define __modsign_install_post %{nil}
|
|
|
|
if [ "%{signmodules}" -eq "1" ]; then \
|
|
|
|
%ifarch x86_64
|
|
|
|
if [ "%{with_std}" -ne "0" ]; then \
|
|
|
|
%define __modsign_install_post_arch linux-%{version}-%{release}.x86_64
|
|
|
|
%{SOURCE21} linux-%{version}-%{release}.x86_64/certs/signing_key.pem.sign linux-%{version}-%{release}.x86_64/certs/signing_key.x509.sign $RPM_BUILD_ROOT/lib/modules/%{KVERREL}/ \
|
|
|
|
%elifarch aarch64
|
|
|
|
fi \
|
|
|
|
%define __modsign_install_post_arch linux-%{version}-%{release}.aarch64
|
|
|
|
fi \
|
|
|
|
%else
|
|
|
|
if [ "%{zipmodules}" -eq "1" ]; then \
|
|
|
|
%error "Unsupported architecture"
|
|
|
|
find $RPM_BUILD_ROOT/lib/modules/ -name '*.ko' -type f | xargs --no-run-if-empty -P%{zcpu} xz \
|
|
|
|
|
|
|
|
fi \
|
|
|
|
|
|
|
|
%{nil}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%ifarch aarch64
|
|
|
|
|
|
|
|
%define __modsign_install_post \
|
|
|
|
%define __modsign_install_post \
|
|
|
|
if [ "%{signmodules}" -eq "1" ]; then \
|
|
|
|
if [ "%{signmodules}" -eq "1" ]; then \
|
|
|
|
if [ "%{with_std}" -ne "0" ]; then \
|
|
|
|
if [ "%{with_std}" -ne "0" ]; then \
|
|
|
|
%{SOURCE21} linux-%{version}-%{release}.aarch64/certs/signing_key.pem.sign linux-%{version}-%{release}.aarch64/certs/signing_key.x509.sign $RPM_BUILD_ROOT/lib/modules/%{KVERREL}/ \
|
|
|
|
%{SOURCE21} %{__modsign_install_post_arch}/certs/signing_key.pem.sign %{__modsign_install_post_arch}/certs/signing_key.x509.sign $RPM_BUILD_ROOT/lib/modules/%{KVERREL}/ \
|
|
|
|
fi \
|
|
|
|
fi \
|
|
|
|
fi \
|
|
|
|
fi \
|
|
|
|
if [ "%{zipmodules}" -eq "1" ]; then \
|
|
|
|
if [ "%{zipmodules}" -eq "1" ]; then \
|
|
|
|
find $RPM_BUILD_ROOT/lib/modules/ -name '*.ko' -type f | xargs --no-run-if-empty -P%{zcpu} xz \
|
|
|
|
find $RPM_BUILD_ROOT/lib/modules/ -name '*.ko' -type f | xargs --no-run-if-empty -P%{zcpu} xz \
|
|
|
|
fi \
|
|
|
|
fi \
|
|
|
|
%{nil}
|
|
|
|
%{nil}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Ensure modules are signed *after* all invocations of
|
|
|
|
# Ensure modules are signed *after* all invocations of
|
|
|
|