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>
This commit is contained in:
Andy Yan
2018-06-13 14:37:57 +08:00
committed by Tao Huang
parent 851673a7f3
commit 23c2ba084d
2 changed files with 6 additions and 1 deletions

View File

@@ -39,7 +39,7 @@ $(obj)/Image.gz: $(obj)/Image FORCE
$(call if_changed,gzip)
$(obj)/Image.lz4: $(obj)/Image FORCE
$(call if_changed,lz4)
$(call if_changed,lz4c)
$(obj)/Image.lzma: $(obj)/Image FORCE
$(call if_changed,lzma)

View File

@@ -364,6 +364,11 @@ cmd_lz4 = (cat $(filter-out FORCE,$^) | \
lz4c -l -c1 stdin stdout && $(call size_append, $(filter-out FORCE,$^))) > $@ || \
(rm -f $@ ; false)
quiet_cmd_lz4c = LZ4C $@
cmd_lz4c = (cat $(filter-out FORCE,$^) | \
lz4c -c1 stdin stdout && $(call size_append, $(filter-out FORCE,$^))) > $@ || \
(rm -f $@ ; false)
# U-Boot mkimage
# ---------------------------------------------------------------------------