Skip to content

Commit 8083c62

Browse files
atishp04paul-walmsley-sifive
authored andcommitted
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 <[email protected]> Signed-off-by: Paul Walmsley <[email protected]>
1 parent 6b57ba8 commit 8083c62

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

arch/riscv/boot/Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@ $(obj)/Image: vmlinux FORCE
2424
$(obj)/Image.gz: $(obj)/Image FORCE
2525
$(call if_changed,gzip)
2626

27+
$(obj)/Image.bz2: $(obj)/Image FORCE
28+
$(call if_changed,bzip2)
29+
30+
$(obj)/Image.lz4: $(obj)/Image FORCE
31+
$(call if_changed,lz4)
32+
33+
$(obj)/Image.lzma: $(obj)/Image FORCE
34+
$(call if_changed,lzma)
35+
36+
$(obj)/Image.lzo: $(obj)/Image FORCE
37+
$(call if_changed,lzo)
38+
2739
install:
2840
$(CONFIG_SHELL) $(srctree)/$(src)/install.sh $(KERNELRELEASE) \
2941
$(obj)/Image System.map "$(INSTALL_PATH)"

0 commit comments

Comments
 (0)