Browse Source

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 <toshaan@powerel.org>
master
Toshaan Bharvani 2 years ago
parent
commit
fc1fbad588
  1. 2
      SOURCES/config-x86-64-v2
  2. 1
      SPECS/kernel-6.0.spec

2
SOURCES/config-x86-64-v2

@ -888,7 +888,7 @@ CONFIG_MODULE_SIG_HASH="sha512" @@ -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

1
SPECS/kernel-6.0.spec

@ -679,6 +679,7 @@ popd > /dev/null @@ -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

Loading…
Cancel
Save