linux: add support for Image.gz kernel format
authorPeter Korsgaard <peter@korsgaard.com>
Fri, 22 Jan 2021 10:39:49 +0000 (11:39 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 23 Jan 2021 20:27:13 +0000 (21:27 +0100)
commit96c26ce86322de1985138958af7a7d14d825afb8
tree9be2876a83bc2ad5a4a43c90558c731d769bc24b
parent0afd150f5c3dc637a154c1c50e688e46ad50e6e7
linux: add support for Image.gz kernel format

arm64 / riscv supports building a gzip compressed 'Image' format kernel,
which is sometimes useful. From arch/arm64/Makefile:

all: Image.gz

Image: vmlinux
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@

Image.%: Image
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@

(and similar logic for riscv)

Future architectures may or may not copy this logic, so for robustness add
an explicit Image.gz format rather than copying both Image and Image.gz when
the Image format is used.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
linux/Config.in
linux/linux.mk