diff options
author | Atish Patra <atish.patra@wdc.com> | 2019-11-06 01:06:52 +0100 |
---|---|---|
committer | Paul Walmsley <paul.walmsley@sifive.com> | 2019-11-12 21:04:52 +0100 |
commit | 8083c629dc318c3191d06fcb226528b08ae2acdd (patch) | |
tree | 61cd5897c4cbbb7e208ebc4be84ccb6a0c74dc43 | |
parent | riscv: clean up the macro format in each header file (diff) | |
download | linux-8083c629dc318c3191d06fcb226528b08ae2acdd.tar.xz linux-8083c629dc318c3191d06fcb226528b08ae2acdd.zip |
RISC-V: Add multiple compression image format.
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>
-rw-r--r-- | arch/riscv/boot/Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/riscv/boot/Makefile b/arch/riscv/boot/Makefile index 0990a9fdbe5d..88356650c992 100644 --- a/arch/riscv/boot/Makefile +++ b/arch/riscv/boot/Makefile @@ -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)" |