mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: Jules Maselbas <jmaselbas@zdiv.net>, barebox@lists.infradead.org
Subject: Re: [PATCH 2/3] scripts: Select XZ --arm64 BCJ filter for 64-bit arm
Date: Thu, 7 Sep 2023 10:56:21 +0200	[thread overview]
Message-ID: <fb906f30-4765-3c9e-b89f-92ae93ff59cc@pengutronix.de> (raw)
In-Reply-To: <20230906150857.32035-2-jmaselbas@zdiv.net>

On 06.09.23 17:08, Jules Maselbas wrote:
> This change will select the arm64 BCJ filter for aarch64 instead of
> the arm filter which was always selected for arm based architectures.
> 
> The selected filter is also tested, by looking if it is present in
> the long help message of xz, this is because the arm64 BCJ filter is
> a recent addition to xz.
> 
> Signed-off-by: Jules Maselbas <jmaselbas@zdiv.net>

How much of an improvement is BCJ=--arm over BCJ=""?

I wonder if we should fallback from --arm64 to --arm.

Cheers,
Ahmad

> ---
>  scripts/xz_wrap.sh | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/scripts/xz_wrap.sh b/scripts/xz_wrap.sh
> index 7a2d372f48..5b5f3adcff 100755
> --- a/scripts/xz_wrap.sh
> +++ b/scripts/xz_wrap.sh
> @@ -16,8 +16,11 @@ case $SRCARCH in
>  	x86)            BCJ=--x86 ;;
>  	powerpc)        BCJ=--powerpc ;;
>  	ia64)           BCJ=--ia64; LZMA2OPTS=pb=4 ;;
> -	arm)            BCJ=--arm ;;
> +	arm)            BCJ=--arm$S64 ;;
>  	sparc)          BCJ=--sparc ;;
>  esac
>  
> +# clear BCJ filter if unsupported
> +xz -H | grep -q -- $BCJ || BCJ=
> +
>  exec xz --check=crc32 $BCJ --lzma2=$LZMA2OPTS,dict=32MiB

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |




  reply	other threads:[~2023-09-07  8:57 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 [this message]
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
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=fb906f30-4765-3c9e-b89f-92ae93ff59cc@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=jmaselbas@zdiv.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox