From 087f91d22a339e312e21f8522c6b397f1cfb7a74 Mon Sep 17 00:00:00 2001 From: Alistair Delva Date: Wed, 17 Jun 2020 21:55:14 -0700 Subject: [PATCH] ANDROID: GKI: scripts: Makefile: update the lz4 command Use 'lz4' instead of 'lz4c' and increase the compression level. This also optimizes for decompression speed at this higher level. Bug: 159285792 Test: launch_cvd -kernel_path bzImage Signed-off-by: Alistair Delva Change-Id: I9604cc7d1f3600dec27ceb460f7c29d977a919b1 --- scripts/Makefile.lib | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index a232741e3fd3..e56ce39e199a 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -335,7 +335,8 @@ cmd_lzo = (cat $(filter-out FORCE,$^) | \ quiet_cmd_lz4 = LZ4 $@ cmd_lz4 = (cat $(filter-out FORCE,$^) | \ - lz4c -l -c1 stdin stdout && $(call size_append, $(filter-out FORCE,$^))) > $@ || \ + lz4 -c -l -12 --favor-decSpeed stdin stdout && \ + $(call size_append, $(filter-out FORCE,$^))) > $@ || \ (rm -f $@ ; false) # U-Boot mkimage