diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2023-12-20 14:31:19 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-23 08:46:00 +0000 |
commit | df548e981da91e9028f54d0a7e6243d3ce9e3c80 (patch) | |
tree | f7d715ab8daf832c44115f37f85444ce2e29a88c /meta/conf/bitbake.conf | |
parent | dfe9c45264924e0b6a7c3f9ce4574eb9fa554ccc (diff) | |
download | poky-df548e981da91e9028f54d0a7e6243d3ce9e3c80.tar.gz |
ipk: Switch to using zstd compression
Converts IPK package generation to use zstd instead of xz. zstd has a
much larger compression/speed tradeoff range allowing users to choose
what suits them best, and fast decompression speeds. It also continues
to support parallel compression as xz did.
A new variable called ZSTD_DEFAULTS is provided to set the defaults for
places that want to use zstd for compression; the zst image conversion
command is also modified to use this.
Finally, in order for this to function properly, opkg must include zstd
support, so it is enabled all the time with no PACKAGECONFIG to turn it
off.
(From OE-Core rev: 1bc3e9bbaa670b6128c74c76b4b5264e60ce3463)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/bitbake.conf')
-rw-r--r-- | meta/conf/bitbake.conf | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 83b12cbc15..b3f1f18a0d 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -878,6 +878,10 @@ XZ_DEFAULTS[vardepsexclude] += "XZ_MEMLIMIT XZ_THREADS" | |||
878 | ZSTD_THREADS ?= "${@oe.utils.cpu_count(at_least=2)}" | 878 | ZSTD_THREADS ?= "${@oe.utils.cpu_count(at_least=2)}" |
879 | ZSTD_THREADS[vardepvalue] = "1" | 879 | ZSTD_THREADS[vardepvalue] = "1" |
880 | 880 | ||
881 | ZSTD_COMPRESSION_LEVEL ?= "-3" | ||
882 | ZSTD_DEFAULTS ?= "--threads=${ZSTD_THREADS} ${ZSTD_COMPRESSION_LEVEL}" | ||
883 | ZSTD_DEFAULTS[vardepsexclude] = "ZSTD_THREADS" | ||
884 | |||
881 | # Limit the number of threads that OpenMP libraries will use. Otherwise they | 885 | # Limit the number of threads that OpenMP libraries will use. Otherwise they |
882 | # may fallback to using all CPUs | 886 | # may fallback to using all CPUs |
883 | export OMP_NUM_THREADS = "${BB_NUMBER_THREADS}" | 887 | export OMP_NUM_THREADS = "${BB_NUMBER_THREADS}" |