From e8c4bde80f4aa7cd633b52aa166c9d23cc6f6a07 Mon Sep 17 00:00:00 2001 From: ColorfulRhino <131405023+ColorfulRhino@users.noreply.github.com> Date: Sun, 7 Jul 2024 17:24:53 +0200 Subject: [PATCH] cli: kernel-make: Add note for parallel compression for `xz` Source: https://lore.kernel.org/lkml/20200901151002.988547791@linuxfoundation.org/ --- lib/functions/compilation/kernel-make.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/functions/compilation/kernel-make.sh b/lib/functions/compilation/kernel-make.sh index 1ee4d9cdd2..8734374d88 100644 --- a/lib/functions/compilation/kernel-make.sh +++ b/lib/functions/compilation/kernel-make.sh @@ -61,7 +61,10 @@ function run_kernel_make_internal() { "KBUILD_BUILD_USER=armbian" # https://www.kernel.org/doc/html/latest/kbuild/kbuild.html#kbuild-build-user-kbuild-build-host "KBUILD_BUILD_HOST=next" # https://www.kernel.org/doc/html/latest/kbuild/kbuild.html#kbuild-build-user-kbuild-build-host - "KGZIP=pigz" "KBZIP2=pbzip2" # Parallel compression, use explicit parallel compressors https://lore.kernel.org/lkml/20200901151002.988547791@linuxfoundation.org/ # @TODO: what about XZ? + # Parallel compression, use explicit parallel compressors https://lore.kernel.org/lkml/20200901151002.988547791@linuxfoundation.org/ + "KGZIP=pigz" + "KBZIP2=pbzip2" + # Parallel compression for `xz` if needed can be added with "XZ_OPT=\"--threads=0\"" ) if [[ -n "${llvm_flag}" ]]; then common_make_params_quoted+=("${llvm_flag}")