On 11 Oct 2022, at 23:55, Sam James <sam@gentoo.org> wrote:
Note that this will only take effect if compressing
modules with bzip2 (COMPRESS_MODULE_BZIP2 is set) or
compressing the kernel with bzip2 (CONFIG_KERNEL_BZIP2 is set).
Signed-off-by: Sam James <sam@gentoo.org>
---
eclass/kernel-build.eclass | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/eclass/kernel-build.eclass b/eclass/kernel-build.eclass
index faf36d763d08..cc99298811bc 100644
--- a/eclass/kernel-build.eclass
+++ b/eclass/kernel-build.eclass
@@ -98,13 +98,19 @@ kernel-build_src_configure() {
export ZSTD_NBTHREADS="$(makeopts_jobs)"
fi
- # pigz needs to take an argument, not an env var,
- # for its options, which won't work because of how the kernel build system
+ # pigz/pbzip2/lbzip2 all need to take an argument, not an env var,
+ # for their options, which won't work because of how the kernel build system
# uses the variables (e.g. passes directly to tar as an executable).
if type -P pigz ; then
MAKEARGS+=( KGZIP="pigz" )
fi
+ if type -P pbzip2 ; then
[[PGP Signed Part:Undecided]]
What is the motivation for this? The typical kernel module on my system
has a size of about 20 KiB uncompressed, with the largest about 2 MiB. Compression times are negligible for these, so is there a need to
optimize?
Ulrich
[[End of PGP Signed Part]]
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 299 |
Nodes: | 16 (2 / 14) |
Uptime: | 86:16:53 |
Calls: | 6,696 |
Calls today: | 1 |
Files: | 12,230 |
Messages: | 5,348,140 |