Skip to content

Commit 23c2ba0

Browse files
Andy Yanrkhuangtao
authored andcommitted
Use standard lz4 format for Image.lz4 on ARM64
The lz4 Legacy format(which specified by -l) is not supported by U-Boot. Change-Id: I6b94881117b59384daca4efd796c933e8dc9e5a6 Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
1 parent 851673a commit 23c2ba0

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

arch/arm64/boot/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ $(obj)/Image.gz: $(obj)/Image FORCE
3939
$(call if_changed,gzip)
4040

4141
$(obj)/Image.lz4: $(obj)/Image FORCE
42-
$(call if_changed,lz4)
42+
$(call if_changed,lz4c)
4343

4444
$(obj)/Image.lzma: $(obj)/Image FORCE
4545
$(call if_changed,lzma)

scripts/Makefile.lib

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,11 @@ cmd_lz4 = (cat $(filter-out FORCE,$^) | \
364364
lz4c -l -c1 stdin stdout && $(call size_append, $(filter-out FORCE,$^))) > $@ || \
365365
(rm -f $@ ; false)
366366

367+
quiet_cmd_lz4c = LZ4C $@
368+
cmd_lz4c = (cat $(filter-out FORCE,$^) | \
369+
lz4c -c1 stdin stdout && $(call size_append, $(filter-out FORCE,$^))) > $@ || \
370+
(rm -f $@ ; false)
371+
367372
# U-Boot mkimage
368373
# ---------------------------------------------------------------------------
369374

0 commit comments

Comments
 (0)