Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kbuild: modinst: remove the multithread option from zstd compression

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>

+1 -1
+1 -1
scripts/Makefile.modinst
··· 146 146 quiet_cmd_xz = XZ $@ 147 147 cmd_xz = $(XZ) --check=crc32 --lzma2=dict=1MiB -f $< 148 148 quiet_cmd_zstd = ZSTD $@ 149 - cmd_zstd = $(ZSTD) -T0 --rm -f -q $< 149 + cmd_zstd = $(ZSTD) --rm -f -q $< 150 150 151 151 $(dst)/%.ko.gz: $(dst)/%.ko FORCE 152 152 $(call cmd,gzip)