mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 11:11:13 +07:00
8dfb61dcba
Allow user to use alternative implementations of compression tools, such as pigz, pbzip2, pxz. For example, multi-threaded tools to speed up the build: $ make GZIP=pigz BZIP2=pbzip2 Variables _GZIP, _BZIP2, _LZOP are used internally because original env vars are reserved by the tools. The use of GZIP in gzip tool is obsolete since 2015. However, alternative implementations (e.g., pigz) still rely on it. BZIP2, BZIP, LZOP vars are not obsolescent. The credit goes to @grsecurity. As a sidenote, for multi-threaded lzma, xz compression one can use: $ export XZ_OPT="--threads=0" Signed-off-by: Denis Efremov <efremov@linux.com> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
24 lines
563 B
Bash
Executable File
24 lines
563 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# This is a wrapper for xz to compress the kernel image using appropriate
|
|
# compression options depending on the architecture.
|
|
#
|
|
# Author: Lasse Collin <lasse.collin@tukaani.org>
|
|
#
|
|
# This file has been put into the public domain.
|
|
# You can do whatever you want with this file.
|
|
#
|
|
|
|
BCJ=
|
|
LZMA2OPTS=
|
|
|
|
case $SRCARCH in
|
|
x86) BCJ=--x86 ;;
|
|
powerpc) BCJ=--powerpc ;;
|
|
ia64) BCJ=--ia64; LZMA2OPTS=pb=4 ;;
|
|
arm) BCJ=--arm ;;
|
|
sparc) BCJ=--sparc ;;
|
|
esac
|
|
|
|
exec $XZ --check=crc32 $BCJ --lzma2=$LZMA2OPTS,dict=32MiB
|