From fc1fbad58858c5eea65f8d1ab3526eb337636353 Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Fri, 7 Oct 2022 08:28:23 +0200 Subject: [PATCH] move module compression from config to spec file in the spec file we can adjust the levels of compression much better, currently still using zstandard but with level 22 compression Signed-off-by: Toshaan Bharvani --- SOURCES/config-x86-64-v2 | 2 +- SPECS/kernel-6.0.spec | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/SOURCES/config-x86-64-v2 b/SOURCES/config-x86-64-v2 index 74d5c1c..47ad013 100644 --- a/SOURCES/config-x86-64-v2 +++ b/SOURCES/config-x86-64-v2 @@ -888,7 +888,7 @@ CONFIG_MODULE_SIG_HASH="sha512" # CONFIG_MODULE_COMPRESS_NONE is not set # CONFIG_MODULE_COMPRESS_GZIP is not set # CONFIG_MODULE_COMPRESS_XZ is not set -CONFIG_MODULE_COMPRESS_ZSTD=y +# CONFIG_MODULE_COMPRESS_ZSTD is not set # CONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS is not set CONFIG_MODPROBE_PATH="/sbin/modprobe" # CONFIG_TRIM_UNUSED_KSYMS is not set diff --git a/SPECS/kernel-6.0.spec b/SPECS/kernel-6.0.spec index d856fde..1fdb1f4 100755 --- a/SPECS/kernel-6.0.spec +++ b/SPECS/kernel-6.0.spec @@ -679,6 +679,7 @@ popd > /dev/null %define __spec_install_post \ find $RPM_BUILD_ROOT/lib/modules/ -type f -name '*.ko' -exec strip --strip-unneeded {} +; \ #find $RPM_BUILD_ROOT/lib/modules/ -type f -name '*.ko' | xargs xz -9 -e -T0 + find $RPM_BUILD_ROOT/lib/modules/ -type f -name '*.ko' | xargs zstd --ultra -22 -T0 # replaced by .config settings %clean