summaryrefslogtreecommitdiffstats
path: root/meta/conf
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-10-04 11:22:48 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-11 18:41:37 +0100
commit4a4d5f78a6962dda5f63e9891825c80a8a87bf66 (patch)
tree3ec2eb32a0c4365d8212c81d842f06b3ae08ab28 /meta/conf
parent543e83e85269f35612867957a445319546f3c73a (diff)
downloadpoky-4a4d5f78a6962dda5f63e9891825c80a8a87bf66.tar.gz
package_rpm: use zstd instead of xz
zstd has similar time and space performance in compression but is vastly faster in decompression, which benefits rootfs creation (especially when installing very large packages) and on-target package installation. Also, ensure ZSTD_THREADS doesn't change sstate checksums. The detailed explanation is in the commit making similar change for XZ_THREADS. (From OE-Core rev: e72c0b94554a9bc293844ec2bddb0c04ea19791d) Signed-off-by: Alexander Kanavin <alex.kanavin@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')
-rw-r--r--meta/conf/bitbake.conf4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index f3ff5b776b..030d29b097 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -816,6 +816,10 @@ XZ_THREADS[vardepvalue] = "1"
816XZ_DEFAULTS ?= "--memlimit=${XZ_MEMLIMIT} --threads=${XZ_THREADS}" 816XZ_DEFAULTS ?= "--memlimit=${XZ_MEMLIMIT} --threads=${XZ_THREADS}"
817XZ_DEFAULTS[vardepsexclude] += "XZ_MEMLIMIT XZ_THREADS" 817XZ_DEFAULTS[vardepsexclude] += "XZ_MEMLIMIT XZ_THREADS"
818 818
819# Default parallelism for zstd
820ZSTD_THREADS ?= "${@oe.utils.cpu_count(at_least=2)}"
821ZSTD_THREADS[vardepvalue] = "1"
822
819# Limit the number of threads that OpenMP libraries will use. Otherwise they 823# Limit the number of threads that OpenMP libraries will use. Otherwise they
820# may fallback to using all CPUs 824# may fallback to using all CPUs
821export OMP_NUM_THREADS = "${BB_NUMBER_THREADS}" 825export OMP_NUM_THREADS = "${BB_NUMBER_THREADS}"