From: "Paul Barker" <paul@pbarker.dev>
To: "Antonin Godard" <antonin.godard@bootlin.com>,
<openembedded-core@lists.openembedded.org>
Cc: "Thomas Petazzoni" <thomas.petazzoni@bootlin.com>
Subject: Re: [PATCH 2/2] zstd: add nobench, nocompress, nodecompress, nodict to PACKAGECONFIG
Date: Thu, 26 Nov 2026 15:01:08 +0000 [thread overview]
Message-ID: <DN58E43X0JY2.H11X8K5K2H4T@pbarker.dev> (raw)
In-Reply-To: <20261125-zstd-1-6-0-v1-2-95f50c6b9de6@bootlin.com>
On Wed Nov 25, 2026 at 10:03 AM GMT, Antonin Godard wrote:
> Add PACKAGECONFIG knobs matching zstd's configuration knobs:
>
> - nobench disables the integrated benchmark module, which produces a
> smaller binary
> - nocompress makes zstd compiled without compress support
> - nodecompress makes zstd compiled without decompress support
> - nodict compiles zstd without support for the integrated dictionary
> builder, which produces a smaller binary
>
> Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
> ---
> meta/recipes-extended/zstd/zstd_1.6.0.bb | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/meta/recipes-extended/zstd/zstd_1.6.0.bb b/meta/recipes-extended/zstd/zstd_1.6.0.bb
> index 6e4e07050a..cba70007b8 100644
> --- a/meta/recipes-extended/zstd/zstd_1.6.0.bb
> +++ b/meta/recipes-extended/zstd/zstd_1.6.0.bb
> @@ -25,6 +25,10 @@ CVE_PRODUCT = "zstandard"
> PACKAGECONFIG ??= ""
> PACKAGECONFIG[lz4] = "HAVE_LZ4=1,HAVE_LZ4=0,lz4"
> PACKAGECONFIG[lzma] = "HAVE_LZMA=1,HAVE_LZMA=0,xz"
> +PACKAGECONFIG[nobench] = "ZSTD_NOBENCH=1,ZSTD_NOBENCH=0"
> +PACKAGECONFIG[nocompress] = "ZSTD_NOCOMPRESS=1,ZSTD_NOCOMPRESS=0,,,,nodecompress"
> +PACKAGECONFIG[nodecompress] = "ZSTD_NODECOMPRESS=1,ZSTD_NODECOMPRESS=0,,,,nocompress"
> +PACKAGECONFIG[nodict] = "ZSTD_NODICT=1,ZSTD_NODICT=0"
> PACKAGECONFIG[zlib] = "HAVE_ZLIB=1,HAVE_ZLIB=0,zlib"
>
> # See programs/README.md for how to use this
Hi Antonin,
I think we can clean up the options that upstream gives us a little.
We don't like PACKAGECONFIG values starting with 'no' as the logic is
inverted. We should also be able to disable benchmarking and dictionary
building by default as they are rarely going to be used. I don't see any
case where people would want zstd but wouldn't want decompression
support.
So perhaps we need the following PACKAGECONFIGs:
- `benchmark`, disabled by default
- `dict-builder`, disabled by default
- `compress`, enabled by default
How does that sound?
Best regards,
--
Paul Barker
next prev parent reply other threads:[~2026-11-26 15:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 10:03 [PATCH 0/2] zstd: upgrade 1.5.7 -> 1.6.0 and PACKAGECONFIG update Antonin Godard
2026-11-25 10:03 ` [PATCH 1/2] zstd: upgrade 1.5.7 -> 1.6.0 Antonin Godard
2026-11-25 10:03 ` [PATCH 2/2] zstd: add nobench, nocompress, nodecompress, nodict to PACKAGECONFIG Antonin Godard
2026-11-26 15:01 ` Paul Barker [this message]
2026-11-26 16:34 ` [OE-core] " Antonin Godard
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=DN58E43X0JY2.H11X8K5K2H4T@pbarker.dev \
--to=paul@pbarker.dev \
--cc=antonin.godard@bootlin.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=thomas.petazzoni@bootlin.com \
/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