From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5E31B158020 for ; Tue, 11 Oct 2022 22:55:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A9A74E08F7; Tue, 11 Oct 2022 22:55:10 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6B266E08F1 for ; Tue, 11 Oct 2022 22:55:10 +0000 (UTC) From: Sam James To: gentoo-dev@lists.gentoo.org Cc: dist-kernel@gentoo.org, kernel@gentoo.org, Sam James Subject: [gentoo-dev] [PATCH 3/8] linux-mod.eclass: use pigz for parallel compression if available Date: Tue, 11 Oct 2022 23:54:39 +0100 Message-Id: <20221011225444.56032-3-sam@gentoo.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221011225444.56032-1-sam@gentoo.org> References: <20221011225444.56032-1-sam@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: ca434f3f-9683-4dca-9bf3-8aa8874c6b9a X-Archives-Hash: 61fb6053a55291bd7da00fd8380e5142 Signed-off-by: Sam James --- eclass/linux-mod.eclass | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass index 8f511ba8ff05..e837916b881a 100644 --- a/eclass/linux-mod.eclass +++ b/eclass/linux-mod.eclass @@ -719,7 +719,11 @@ linux-mod_src_install() { xz -T$(makeopts_jobs) ${modulename}.${KV_OBJ} doins ${modulename}.${KV_OBJ}.xz || die "doins ${modulename}.${KV_OBJ}.xz failed" elif linux_chkconfig_present MODULE_COMPRESS_GZIP; then - gzip ${modulename}.${KV_OBJ} + if type -P pigz ; then + pigz -n$(makeopts_jobs) ${modulename}.${KV_OBJ} + else + gzip ${modulename}.${KV_OBJ} + fi doins ${modulename}.${KV_OBJ}.gz || die "doins ${modulename}.${KV_OBJ}.gz failed" elif linux_chkconfig_present MODULE_COMPRESS_ZSTD; then zstd -T$(makeopts_jobs) ${modulename}.${KV_OBJ} -- 2.38.0