From 3e990e4794cd32fd5abc026438d984b92ee1aa07 Mon Sep 17 00:00:00 2001 From: Sugar Zhang Date: Wed, 12 Jan 2022 17:01:28 +0800 Subject: [PATCH] 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 Change-Id: Ic299314a6377e68fac477f451d1ffcae9e8466ce --- arch/arm64/boot/Makefile | 2 +- scripts/Makefile.lib | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/Makefile b/arch/arm64/boot/Makefile index cd3414898d10..7469148c3594 100644 --- a/arch/arm64/boot/Makefile +++ b/arch/arm64/boot/Makefile @@ -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) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 1cbf3aa6fa89..30f380b64bb3 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -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 # ---------------------------------------------------------------------------