kbuild: fix broken builds because of GZIP,BZIP2,LZOP variables
authorDenis Efremov <efremov@linux.com>
Mon, 8 Jun 2020 09:59:44 +0000 (12:59 +0300)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 11 Jun 2020 11:14:41 +0000 (20:14 +0900)
commite4a42c82e943b97ce124539fcd7a47445b43fa0d
tree826932be982b8aec4aafc0c7ab7132d5fbebad0a
parentfca5e94921d50d13ee8720ce58a352e7fc0228bf
kbuild: fix broken builds because of GZIP,BZIP2,LZOP variables

Redefine GZIP, BZIP2, LZOP variables as KGZIP, KBZIP2, KLZOP resp.
GZIP, BZIP2, LZOP env variables are reserved by the tools. The original
attempt to redefine them internally doesn't work in makefiles/scripts
intercall scenarios, e.g., "make GZIP=gzip bindeb-pkg" and results in
broken builds. There can be other broken build commands because of this,
so the universal solution is to use non-reserved env variables for the
compression tools.

Fixes: 8dfb61dcbace ("kbuild: add variables for compression tools")
Signed-off-by: Denis Efremov <efremov@linux.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Makefile
arch/arm/boot/deflate_xip_data.sh
arch/ia64/Makefile
arch/m68k/Makefile
arch/parisc/Makefile
scripts/Makefile.lib
scripts/Makefile.package
scripts/package/buildtar