From: Herton R. Krzesinski <[email protected]>

redhat: change compression flags for xz

The macro compression_flags is used in the compression of kernel modules.
The default xz integrity check used is crc64. In the next change, we
will switch to in-kernel decompression of modules. The problem is that
it doesn't have support for the crc64 check, so we must manually switch
to crc32. While at it, also add --lzma2=dict=1MiB which is also used by
the kernel at scripts/Makefile.modinst and in general follows
recommendation/dictionary sizes explained in the kernel documentation
at Documentation/staging/xz.rst.

Signed-off-by: Herton R. Krzesinski <[email protected]>

diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template
index blahblah..blahblah 100644
--- a/redhat/kernel.spec.template
+++ b/redhat/kernel.spec.template
@@ -120,7 +120,7 @@ Summary: The Linux kernel
 
 # Default compression algorithm
 %global compression xz
-%global compression_flags --compress
+%global compression_flags --compress --check=crc32 --lzma2=dict=1MiB
 %global compext xz
 
 %if 0%{?fedora}

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3700

-- 
_______________________________________________
kernel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to