commit 811cca3c096a944a2d33edb85eaffd61d2497e0e
Author: Elan Ruusamäe <[email protected]>
Date:   Mon Jan 26 23:58:52 2015 +0200

    compress kernel modules by rpm build, with "xz"
    
    this fixes problem that kernel modules were not stripped:
    
http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2015-January/024218.html

 kernel.spec | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/kernel.spec b/kernel.spec
index 66f25bf..a92eb38 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -253,7 +253,7 @@ BuildRequires:      hostname
 BuildRequires: kmod >= 12-2
 BuildRequires: perl-base
 BuildRequires: rpm-build >= 4.5-24
-BuildRequires: rpmbuild(macros) >= 1.704
+BuildRequires: rpmbuild(macros) >= 1.707
 Requires(post):        coreutils
 Requires(post):        geninitrd >= 10000.32
 Requires(post):        kmod >= 12-2
@@ -312,6 +312,8 @@ ExclusiveArch:      i486 i586 i686 pentium3 pentium4 athlon 
%{x8664} x32 alpha arm ia
 ExclusiveOS:   Linux
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                kmod_compress_cmd       %{__xz}
+
 %ifarch %{ix86} %{x8664} x32
 %define                target_arch_dir         x86
 %endif
@@ -947,6 +949,7 @@ rm -rf $RPM_BUILD_ROOT
        -C %{objdir} \
        %{?with_verbose:V=1} \
        DEPMOD=%{DepMod} \
+       mod_compress_cmd=true \
        INSTALL_MOD_PATH=$RPM_BUILD_ROOT \
        INSTALL_FW_PATH=$RPM_BUILD_ROOT/lib/firmware/%{kernel_release} \
        KERNELRELEASE=%{kernel_release}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kernel.git/commitdiff/811cca3c096a944a2d33edb85eaffd61d2497e0e

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to