summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eclass/kernel-build.eclass10
-rw-r--r--eclass/linux-mod.eclass2
2 files changed, 6 insertions, 6 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
diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass
index 7f4ddb9b8ee6..850645106e63 100644
--- a/eclass/linux-mod.eclass
+++ b/eclass/linux-mod.eclass
@@ -719,7 +719,7 @@ linux-mod_src_install() {
xz -T$(makeopts_jobs) ${modulename}.${KV_OBJ} || die "Compressing ${modulename}.${KV_OBJ} with xz failed"
doins ${modulename}.${KV_OBJ}.xz
elif linux_chkconfig_present MODULE_COMPRESS_GZIP; then
- if type -P pigz ; then
+ if type -P pigz &>/dev/null ; then
pigz -n$(makeopts_jobs) ${modulename}.${KV_OBJ} || die "Compressing ${modulename}.${KV_OBJ} with pigz failed"
else
gzip ${modulename}.${KV_OBJ} || die "Compressing ${modulename}.${KV_OBJ} with gzip failed"