diff options
author | Laura Abbott <labbott@redhat.com> | 2019-11-06 12:47:55 -0500 |
---|---|---|
committer | Laura Abbott <labbott@redhat.com> | 2019-11-13 10:01:45 -0500 |
commit | dba767169462cd40ad78590952674c41e221f41e (patch) | |
tree | c0e69e0c2f382a173f8acbb8f05f9d4b14a28e1a /kernel.spec | |
parent | d0a82f1e0fa60ffedb672422bf6779de24b8bd11 (diff) | |
download | kernel-dba767169462cd40ad78590952674c41e221f41e.tar.gz kernel-dba767169462cd40ad78590952674c41e221f41e.tar.xz kernel-dba767169462cd40ad78590952674c41e221f41e.zip |
Better xz compression
Borrowed from downstream, we can be a little bit smarter
on how we compress modules.
Diffstat (limited to 'kernel.spec')
-rw-r--r-- | kernel.spec | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel.spec b/kernel.spec index 737527e86..101240c54 100644 --- a/kernel.spec +++ b/kernel.spec @@ -51,8 +51,6 @@ Summary: The Linux kernel %if %{zipmodules} %global zipsed -e 's/\.ko$/\.ko.xz/' -# for parallel xz processes, replace with 1 to go back to single process -%global zcpu `nproc --all` %endif # define buildid .local @@ -2070,7 +2068,7 @@ find Documentation -type d | xargs chmod u+w fi \ fi \ if [ "%{zipmodules}" -eq "1" ]; then \ - find $RPM_BUILD_ROOT/lib/modules/ -type f -name '*.ko' | xargs -P%{zcpu} xz; \ + find $RPM_BUILD_ROOT/lib/modules/ -type f -name '*.ko' | %{SOURCE79} %{?_smp_mflags}; \ fi \ %{nil} |