RISC-V: Add multiple compression image format.
authorAtish Patra <atish.patra@wdc.com>
Wed, 6 Nov 2019 00:06:52 +0000 (16:06 -0800)
committerPaul Walmsley <paul.walmsley@sifive.com>
Tue, 12 Nov 2019 20:04:52 +0000 (12:04 -0800)
Currently, there is only support for .gz compression type
for generating kernel Image.

Add support for other compression methods(lzma, lz4, lzo, bzip2)
that helps in generating a even smaller kernel image. Image.gz
will still be the default compressed image.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
arch/riscv/boot/Makefile

index 0990a9f..8835665 100644 (file)
@@ -24,6 +24,18 @@ $(obj)/Image: vmlinux FORCE
 $(obj)/Image.gz: $(obj)/Image FORCE
        $(call if_changed,gzip)
 
+$(obj)/Image.bz2: $(obj)/Image FORCE
+       $(call if_changed,bzip2)
+
+$(obj)/Image.lz4: $(obj)/Image FORCE
+       $(call if_changed,lz4)
+
+$(obj)/Image.lzma: $(obj)/Image FORCE
+       $(call if_changed,lzma)
+
+$(obj)/Image.lzo: $(obj)/Image FORCE
+       $(call if_changed,lzo)
+
 install:
        $(CONFIG_SHELL) $(srctree)/$(src)/install.sh $(KERNELRELEASE) \
        $(obj)/Image System.map "$(INSTALL_PATH)"