rk: kbuild: Use standard lz4 format for Image.lz4 on ARM64

Uboot use the Standard Lz4 format to decompress kernel Image.lz4,
So, we should use the standard one for lz4 compression.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ic299314a6377e68fac477f451d1ffcae9e8466ce
This commit is contained in:
Sugar Zhang
2022-01-12 17:01:28 +08:00
committed by Tao Huang
parent 48e21360ab
commit 3e990e4794
2 changed files with 6 additions and 1 deletions

View File

@@ -28,7 +28,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

@@ -425,6 +425,11 @@ quiet_cmd_lz4 = LZ4 $@
$(LZ4) -l -12 --favor-decSpeed stdin stdout; \
$(size_append); } > $@
quiet_cmd_lz4c = LZ4C $@
cmd_lz4c = { cat $(real-prereqs) | \
$(LZ4) -12 --favor-decSpeed stdin stdout; \
$(size_append); } > $@
# U-Boot mkimage
# ---------------------------------------------------------------------------