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 # ---------------------------------------------------------------------------