From 48e6f0621ab731b50f43b2a3a3aa0e6edad65f85 Mon Sep 17 00:00:00 2001 From: ebasov Date: Tue, 3 Dec 2024 19:04:16 +0300 Subject: [PATCH] Adding a logical chain to define the architecture --- SPECS/kernel-lt-6.1.spec | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/SPECS/kernel-lt-6.1.spec b/SPECS/kernel-lt-6.1.spec index 34e454f..c1067e8 100644 --- a/SPECS/kernel-lt-6.1.spec +++ b/SPECS/kernel-lt-6.1.spec @@ -707,6 +707,8 @@ popd > /dev/null popd > /dev/null %install +%ifarch x86_64 + %define __modsign_install_post \ if [ "%{signmodules}" -eq "1" ]; then \ if [ "%{with_std}" -ne "0" ]; then \ @@ -718,6 +720,20 @@ if [ "%{zipmodules}" -eq "1" ]; then \ fi \ %{nil} +%else + +%define __modsign_install_post \ +if [ "%{signmodules}" -eq "1" ]; 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}/ \ + fi \ +fi \ +if [ "%{zipmodules}" -eq "1" ]; then \ + find $RPM_BUILD_ROOT/lib/modules/ -name '*.ko' -type f | xargs --no-run-if-empty -P%{zcpu} xz \ +fi \ +%{nil} + + # # Ensure modules are signed *after* all invocations of # strip have occured, which are in __os_install_post.