]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
kbuild: modinst: remove the multithread option from zstd compression
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 4 Aug 2024 03:33:07 +0000 (12:33 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 1 Sep 2024 11:33:33 +0000 (20:33 +0900)
Parallel execution is supported by GNU Make:

  $ make -j<N> modules_install

It is questionable to enable multithreading within each zstd process
by default.

If you still want to do it, you can use the environment variable:

  $ ZSTD_NBTHREADS=<N> make modules_install

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
scripts/Makefile.modinst

index 0afd75472679f63d4cd60cac1feebe1c2a4f8c61..04f5229efa6b89e99fa001557db75b6646f329f4 100644 (file)
@@ -146,7 +146,7 @@ quiet_cmd_gzip = GZIP    $@
 quiet_cmd_xz = XZ      $@
       cmd_xz = $(XZ) --check=crc32 --lzma2=dict=1MiB -f $<
 quiet_cmd_zstd = ZSTD    $@
-      cmd_zstd = $(ZSTD) -T0 --rm -f -q $<
+      cmd_zstd = $(ZSTD) --rm -f -q $<
 
 $(dst)/%.ko.gz: $(dst)/%.ko FORCE
        $(call cmd,gzip)