From: Jules Maselbas <jmaselbas@zdiv.net>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 1/3] decompressors: Update xz to include ARM64 BCJ decoder
Date: Thu, 7 Sep 2023 11:57:47 +0200 [thread overview]
Message-ID: <ZPmem2k04HWDFbAz@tour> (raw)
In-Reply-To: <393f8933-d264-e4a2-4497-39c8240796e7@pengutronix.de>
On Thu, Sep 07, 2023 at 11:00:05AM +0200, Ahmad Fatoum wrote:
> On 06.09.23 17:08, Jules Maselbas wrote:
> > Update lib/xz/xz_dec_bcj.c and lib/xz/xz_private.h files from xz-embedded [1],
> > which include spelling fixes and the new ARM64 BCJ decoder which was recently
> > introduced into .xz file format version 1.1.0 (2022-12-11) [2].
> >
> > [1] https://git.tukaani.org/?p=xz-embedded.git
> > [2] https://tukaani.org/xz/xz-file-format-1.1.0.txt
> >
> > Signed-off-by: Jules Maselbas <jmaselbas@zdiv.net>
> > ---
> > lib/Kconfig | 4 ++++
> > lib/decompress_unxz.c | 3 +++
> > lib/xz/xz_dec_bcj.c | 54 ++++++++++++++++++++++++++++++++++++++++---
> > lib/xz/xz_private.h | 3 +++
> > 4 files changed, 61 insertions(+), 3 deletions(-)
> >
> > diff --git a/lib/Kconfig b/lib/Kconfig
> > index 758197b608..9291e5a8ff 100644
> > --- a/lib/Kconfig
> > +++ b/lib/Kconfig
> > @@ -42,6 +42,7 @@ config XZ_DECOMPRESS
> > select XZ_DEC_ARM
> > select XZ_DEC_ARMTHUMB
> > select XZ_DEC_SPARC
> > + select XZ_DEC_ARM64
>
> Hmm, maybe for PBL, we should only support the XZ BCJ filter that is chosen
> for barebox proper? If you are trying to get barebox binary size down,
> maybe you are inclined to check? :-)
indeed, i thought it was already the case. How would do that ? have two version
of the unxz binary object ? one for pbl and the other for barebox proper ?
Or maybe only select the relevent decoder ?
snip
> > diff --git a/lib/decompress_unxz.c b/lib/decompress_unxz.c
> > index a7e2d331ab..5c906932f8 100644
> > --- a/lib/decompress_unxz.c
> > +++ b/lib/decompress_unxz.c
> > @@ -132,6 +132,9 @@
> > #endif
> > #ifdef CONFIG_ARM
> > # define XZ_DEC_ARM
> > +# ifdef CONFIG_CPU_64
> > +# define XZ_DEC_ARM64
> > +# endif
> > #endif
I though this was used to _only_ have the decoder for the current architecture.
next prev parent reply other threads:[~2023-09-07 9:59 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-06 15:08 [PATCH 1/3] decompressors: Update xz to include ARM64 BCJ decoder Jules Maselbas
2023-09-06 15:08 ` [PATCH 2/3] scripts: Select XZ --arm64 BCJ filter for 64-bit arm Jules Maselbas
2023-09-07 8:56 ` Ahmad Fatoum
2023-09-07 9:48 ` Jules Maselbas
2023-09-07 9:51 ` Ahmad Fatoum
2023-09-06 15:08 ` [PATCH 3/3] kbuild: remove duplicated xz compressions target Jules Maselbas
2023-09-07 8:53 ` Ahmad Fatoum
2023-09-07 9:00 ` [PATCH 1/3] decompressors: Update xz to include ARM64 BCJ decoder Ahmad Fatoum
2023-09-07 9:57 ` Jules Maselbas [this message]
2023-09-07 10:08 ` Ahmad Fatoum
2023-09-07 10:42 ` Jules Maselbas
2023-09-07 10:46 ` Ahmad Fatoum
2023-09-07 10:51 ` [PATCH] fixup! " Jules Maselbas
2023-09-07 13:37 ` Jules Maselbas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZPmem2k04HWDFbAz@tour \
--to=jmaselbas@zdiv.net \
--cc=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.