]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd3c28c9ef698f4871402886e84d8987b6f641ce4
tree826932be982b8aec4aafc0c7ab7132d5fbebad0a
parentc2aefd2bf3967542d792d137f5c0475ea3be8ef0
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: d5c5775e6e83 ("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