Skip to content

Commit

Permalink
RISC-V: Add multiple compression image format.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Atish Patra authored and Paul Walmsley committed Nov 12, 2019
1 parent 6b57ba8 commit 8083c62
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions arch/riscv/boot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit 8083c62

Please sign in to comment.