summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-10-13 23:09:54 +0100
committerSam James <sam@gentoo.org>2022-10-13 23:10:15 +0100
commit0ca217742778ccea10ca35472bdcba47cd47c167 (patch)
tree9cc7f8e782f7add3d7f8651cedbd21f93287e662 /eclass
parentlinux-mod.eclass: silence pigz search (diff)
downloadgentoo-0ca217742778ccea10ca35472bdcba47cd47c167.tar.gz
gentoo-0ca217742778ccea10ca35472bdcba47cd47c167.tar.bz2
gentoo-0ca217742778ccea10ca35472bdcba47cd47c167.zip
kernel-build.eclass: silence tools search
Fixes: b86d9482f6ff14401970092b3034ef1cc2813163 Fixes: 61f0eab4e3c0272449024e83f32734b0e6d392bb Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kernel-build.eclass10
1 files changed, 5 insertions, 5 deletions
diff --git a/eclass/kernel-build.eclass b/eclass/kernel-build.eclass
index cc99298811bc..1fa25cbc9574 100644
--- a/eclass/kernel-build.eclass
+++ b/eclass/kernel-build.eclass
@@ -90,24 +90,24 @@ kernel-build_src_configure() {
ARCH=$(tc-arch-kernel)
)
- if type -P xz ; then
+ if type -P xz &>/dev/null ; then
export XZ_OPT="-T$(makeopts_jobs)"
fi
- if type -P zstd ; then
+ if type -P zstd &>/dev/null ; then
export ZSTD_NBTHREADS="$(makeopts_jobs)"
fi
# 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
+ if type -P pigz &>/dev/null ; then
MAKEARGS+=( KGZIP="pigz" )
fi
- if type -P pbzip2 ; then
+ if type -P pbzip2 &>/dev/null ; then
MAKEARGS+=( KBZIP2="pbzip2" )
- elif type -P lbzip2 ; then
+ elif type -P lbzip2 &>/dev/null ; then
MAKEARGS+=( KBZIP2="lbzip2" )
fi