aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/arm
diff options
context:
space:
mode:
authorDenis Efremov <efremov@linux.com>2020-06-05 10:39:55 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2020-06-06 23:42:01 +0900
commit8dfb61dcbaceb19a5ded5e9c9dcf8d05acc32294 (patch)
treee533bf8292cb5973d7e21318690d417d83bcf679 /arch/arm
parentMakefile: install modules.builtin even if CONFIG_MODULES=n (diff)
downloadwireguard-linux-8dfb61dcbaceb19a5ded5e9c9dcf8d05acc32294.tar.xz
wireguard-linux-8dfb61dcbaceb19a5ded5e9c9dcf8d05acc32294.zip
kbuild: add variables for compression tools
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>
Diffstat (limited to 'arch/arm')
-rwxr-xr-xarch/arm/boot/deflate_xip_data.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/boot/deflate_xip_data.sh b/arch/arm/boot/deflate_xip_data.sh
index 40937248cebe..739f0464321e 100755
--- a/arch/arm/boot/deflate_xip_data.sh
+++ b/arch/arm/boot/deflate_xip_data.sh
@@ -56,7 +56,7 @@ trap 'rm -f "$XIPIMAGE.tmp"; exit 1' 1 2 3
# substitute the data section by a compressed version
$DD if="$XIPIMAGE" count=$data_start iflag=count_bytes of="$XIPIMAGE.tmp"
$DD if="$XIPIMAGE" skip=$data_start iflag=skip_bytes |
-gzip -9 >> "$XIPIMAGE.tmp"
+$_GZIP -9 >> "$XIPIMAGE.tmp"
# replace kernel binary
mv -f "$XIPIMAGE.tmp" "$XIPIMAGE"