diff mbox series

[2/2] zstd: add nobench, nocompress, nodecompress, nodict to PACKAGECONFIG

Message ID 20261125-zstd-1-6-0-v1-2-95f50c6b9de6@bootlin.com
State New
Headers show
Series zstd: upgrade 1.5.7 -> 1.6.0 and PACKAGECONFIG update | expand

Commit Message

Antonin Godard Nov. 25, 2026, 10:03 a.m. UTC
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 mbox series

Patch

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