Skip to content

Commit de59b6e

Browse files
xhackerustcpalmer-dabbelt
authored andcommitted
riscv: boot: add zstd support
Support build the zstd compressed Image.zst. Similar as other compressed formats, the Image.zst is not self-decompressing and the bootloader still needs to handle decompression before launching the kernel image. Signed-off-by: Jisheng Zhang <jszhang@kernel.org> Link: https://lore.kernel.org/r/20221123150257.3108-1-jszhang@kernel.org Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent 558480d commit de59b6e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

arch/riscv/boot/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ $(obj)/Image.lzma: $(obj)/Image FORCE
5656
$(obj)/Image.lzo: $(obj)/Image FORCE
5757
$(call if_changed,lzo)
5858

59+
$(obj)/Image.zst: $(obj)/Image FORCE
60+
$(call if_changed,zstd)
61+
5962
$(obj)/loader.bin: $(obj)/loader FORCE
6063
$(call if_changed,objcopy)
6164

0 commit comments

Comments
 (0)