* [PATCH] kbuild: use lz4 instead of lz4c
@ 2024-11-25 17:18 Justin Bronder
2024-11-26 4:26 ` Masahiro Yamada
0 siblings, 1 reply; 3+ messages in thread
From: Justin Bronder @ 2024-11-25 17:18 UTC (permalink / raw)
To: linux-kbuild; +Cc: Justin Bronder
lz4c has been considered deprecated by upstream since at least 2018 [1]
and has been disabled by default recently [2]. openSUSE Tumbleweed is
no longer packaging the deprecated version and others will likely
follow.
Going back as far as Ubuntu 16.04/Fedora 25, both lz4 and lz4c are
installed as part of the same package and both accept -9 to enable high
compression so switching should be safe.
1. https://github.com/lz4/lz4/pull/553
2. https://github.com/lz4/lz4/pull/1479
Signed-off-by: Justin Bronder <jsbronder@cold-front.org>
---
Makefile | 2 +-
scripts/Makefile.lib | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 68a8faff2543..ded07aca0d2a 100644
--- a/Makefile
+++ b/Makefile
@@ -508,7 +508,7 @@ KGZIP = gzip
KBZIP2 = bzip2
KLZOP = lzop
LZMA = lzma
-LZ4 = lz4c
+LZ4 = lz4
XZ = xz
ZSTD = zstd
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 01a9f567d5af..b73950bfee34 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -371,10 +371,10 @@ quiet_cmd_lzo_with_size = LZO $@
cmd_lzo_with_size = { cat $(real-prereqs) | $(KLZOP) -9; $(size_append); } > $@
quiet_cmd_lz4 = LZ4 $@
- cmd_lz4 = cat $(real-prereqs) | $(LZ4) -l -c1 stdin stdout > $@
+ cmd_lz4 = cat $(real-prereqs) | $(LZ4) -l -9 stdin stdout > $@
quiet_cmd_lz4_with_size = LZ4 $@
- cmd_lz4_with_size = { cat $(real-prereqs) | $(LZ4) -l -c1 stdin stdout; \
+ cmd_lz4_with_size = { cat $(real-prereqs) | $(LZ4) -l -9 stdin stdout; \
$(size_append); } > $@
# U-Boot mkimage
--
2.47.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] kbuild: use lz4 instead of lz4c
2024-11-25 17:18 [PATCH] kbuild: use lz4 instead of lz4c Justin Bronder
@ 2024-11-26 4:26 ` Masahiro Yamada
2024-11-26 14:45 ` Justin Bronder
0 siblings, 1 reply; 3+ messages in thread
From: Masahiro Yamada @ 2024-11-26 4:26 UTC (permalink / raw)
To: jsbronder; +Cc: linux-kbuild
On Tue, Nov 26, 2024 at 2:18 AM Justin Bronder <jsbronder@cold-front.org> wrote:
>
> lz4c has been considered deprecated by upstream since at least 2018 [1]
> and has been disabled by default recently [2]. openSUSE Tumbleweed is
> no longer packaging the deprecated version and others will likely
> follow.
>
> Going back as far as Ubuntu 16.04/Fedora 25, both lz4 and lz4c are
> installed as part of the same package and both accept -9 to enable high
> compression so switching should be safe.
>
> 1. https://github.com/lz4/lz4/pull/553
> 2. https://github.com/lz4/lz4/pull/1479
>
> Signed-off-by: Justin Bronder <jsbronder@cold-front.org>
I already applied a similar patch.
https://lore.kernel.org/linux-kbuild/CAK7LNAS0VzqcKDz_1ds5qJcASqxVizE3kkdRk1Yiidch9KMxEQ@mail.gmail.com/T/#t
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: kbuild: use lz4 instead of lz4c
2024-11-26 4:26 ` Masahiro Yamada
@ 2024-11-26 14:45 ` Justin Bronder
0 siblings, 0 replies; 3+ messages in thread
From: Justin Bronder @ 2024-11-26 14:45 UTC (permalink / raw)
To: Masahiro Yamada; +Cc: linux-kbuild
On 26/11/24 13:26 +0900, Masahiro Yamada wrote:
> On Tue, Nov 26, 2024 at 2:18 AM Justin Bronder <jsbronder@cold-front.org> wrote:
> >
> > lz4c has been considered deprecated by upstream since at least 2018 [1]
> > and has been disabled by default recently [2]. openSUSE Tumbleweed is
> > no longer packaging the deprecated version and others will likely
> > follow.
> >
> > Going back as far as Ubuntu 16.04/Fedora 25, both lz4 and lz4c are
> > installed as part of the same package and both accept -9 to enable high
> > compression so switching should be safe.
> >
> > 1. https://github.com/lz4/lz4/pull/553
> > 2. https://github.com/lz4/lz4/pull/1479
> >
> > Signed-off-by: Justin Bronder <jsbronder@cold-front.org>
>
>
> I already applied a similar patch.
>
> https://lore.kernel.org/linux-kbuild/CAK7LNAS0VzqcKDz_1ds5qJcASqxVizE3kkdRk1Yiidch9KMxEQ@mail.gmail.com/T/#t
Ah, apologies for not noticing that. That patch definitely covers what I was
trying to achieve, so this one can be can be dropped.
Thanks!
--
Justin Bronder
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-11-26 14:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-25 17:18 [PATCH] kbuild: use lz4 instead of lz4c Justin Bronder
2024-11-26 4:26 ` Masahiro Yamada
2024-11-26 14:45 ` Justin Bronder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox