Gentoo Archives: gentoo-dev

From: Sam James <sam@g.o>
To: gentoo-dev@l.g.o
Cc: dist-kernel@g.o, kernel@g.o
Subject: [gentoo-dev] Re: [PATCH 8/8] kernel-build.eclass: use pbzip2/lbzip2 for parallel compression if available
Date: Wed, 12 Oct 2022 00:20:21
Message-Id: 518FAC7E-1A5E-410F-B554-BDA7012EB811@gentoo.org
In Reply to: [gentoo-dev] [PATCH 8/8] kernel-build.eclass: use pbzip2/lbzip2 for parallel compression if available by Sam James
1 > On 11 Oct 2022, at 23:55, Sam James <sam@g.o> wrote:
2 >
3 > Note that this will only take effect if compressing
4 > modules with bzip2 (COMPRESS_MODULE_BZIP2 is set) or
5 > compressing the kernel with bzip2 (CONFIG_KERNEL_BZIP2 is set).
6 >
7 > Signed-off-by: Sam James <sam@g.o>
8 > ---
9 > eclass/kernel-build.eclass | 10 ++++++++--
10 > 1 file changed, 8 insertions(+), 2 deletions(-)
11 >
12 > diff --git a/eclass/kernel-build.eclass b/eclass/kernel-build.eclass
13 > index faf36d763d08..cc99298811bc 100644
14 > --- a/eclass/kernel-build.eclass
15 > +++ b/eclass/kernel-build.eclass
16 > @@ -98,13 +98,19 @@ kernel-build_src_configure() {
17 > export ZSTD_NBTHREADS="$(makeopts_jobs)"
18 > fi
19 >
20 > - # pigz needs to take an argument, not an env var,
21 > - # for its options, which won't work because of how the kernel build system
22 > + # pigz/pbzip2/lbzip2 all need to take an argument, not an env var,
23 > + # for their options, which won't work because of how the kernel build system
24 > # uses the variables (e.g. passes directly to tar as an executable).
25 > if type -P pigz ; then
26 > MAKEARGS+=( KGZIP="pigz" )
27 > fi
28 >
29 > + if type -P pbzip2 ; then
30
31 Oh, all of these need a redirection to silence them, which I'll fix locally.