From 39d79c587c1f012e3d425c9421cb642afdea9eda Mon Sep 17 00:00:00 2001 From: Yuriy Kohut Date: Fri, 10 May 2024 14:07:55 +0300 Subject: [PATCH] Compress modules on x86_64 architecture only (code clean up) --- SPECS/kernel-lt-5.4.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/SPECS/kernel-lt-5.4.spec b/SPECS/kernel-lt-5.4.spec index 0ce9b3190..a6d56e038 100644 --- a/SPECS/kernel-lt-5.4.spec +++ b/SPECS/kernel-lt-5.4.spec @@ -34,11 +34,17 @@ # vsdo install %define with_vdso_install %{?_without_vdso_install: 0} %{?!_without_vdso_install: 1} +# Compress modules on all architectures that build modules. +%ifarch x86_64 +%global zipmodules 1 +%else +%global zipmodules 0 +%endif + # Kernel-lt, devel, headers, perf, tools and bpftool. %ifarch x86_64 %define with_doc 0 %define doc_build_fail true -%define zipmodules 1 %endif # Documentation. @@ -49,7 +55,6 @@ %define with_tools 0 %define with_bpftool 0 %define with_vdso_install 0 -%define zipmodules 0 %endif # Compressed modules.