]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake.conf: make ZSTD_COMPRESSION_LEVEL a number rather than a dash-prefixed option
authorAlexander Kanavin <alex@linutronix.de>
Wed, 20 Nov 2024 15:32:03 +0000 (16:32 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 21 Nov 2024 12:14:20 +0000 (12:14 +0000)
This allows using it where only a number is needed, such as rpm compression
setting.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/bitbake.conf

index cfc7316a1553c9e96302a05038aa1565c42a6b43..1d2c2e0022b4ff8ad9299e9b466936eca3ea777b 100644 (file)
@@ -882,8 +882,8 @@ XZ_DEFAULTS[vardepsexclude] += "XZ_MEMLIMIT XZ_THREADS"
 ZSTD_THREADS ?= "${@oe.utils.cpu_count(at_least=2)}"
 ZSTD_THREADS[vardepvalue] = "1"
 
-ZSTD_COMPRESSION_LEVEL ?= "-3"
-ZSTD_DEFAULTS ?= "--threads=${ZSTD_THREADS} ${ZSTD_COMPRESSION_LEVEL}"
+ZSTD_COMPRESSION_LEVEL ?= "3"
+ZSTD_DEFAULTS ?= "--threads=${ZSTD_THREADS} -${ZSTD_COMPRESSION_LEVEL}"
 ZSTD_DEFAULTS[vardepsexclude] = "ZSTD_THREADS"
 
 # Limit the number of threads that OpenMP libraries will use. Otherwise they