summaryrefslogtreecommitdiffstats
path: root/meta/conf
diff options
context:
space:
mode:
authorAndré Draszik <git@andred.net>2020-03-03 16:05:11 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-03-06 08:19:18 +0000
commite16134e3bb52c2fe5b754a3e36536935b476aaf2 (patch)
tree105c0e462730590f6dd7c7ec587bf3bbd711e306 /meta/conf
parent0d7f24ce8953772a6b029bb327d54d8e849ed039 (diff)
downloadpoky-e16134e3bb52c2fe5b754a3e36536935b476aaf2.tar.gz
bitbake.conf: more deterministic xz compression (threads)
xz archives can be non-deterministic / non-reproducible: a) archives are created differently in single- vs multi-threaded modes b) xz will scale down the compression level so as to be try to work within any memory limit given to it when operating in single-threaded mode This means that due to bitbake's default of using as many threads as there are cores in the system, files compressed with xz will be different if built on a multi-core system compared to single-core systems. They will also potentially be different if built on single-core systems with different amounts of physical memory, due to bitbake's default of limiting xz's memory consumption. Force multi-threaded operation by default, even on single-core systems, so as to ensure archives are created in the same way in all cases. (From OE-Core rev: d96aa8594c8d7531da34645cadbac4f7549d8ae6) Signed-off-by: André Draszik <git@andred.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf')
-rw-r--r--meta/conf/bitbake.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index e201b671bb..131ba296d3 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -795,7 +795,7 @@ BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}"
795PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}" 795PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}"
796 796
797# Default parallelism and resource usage for xz 797# Default parallelism and resource usage for xz
798XZ_DEFAULTS ?= "--memlimit=50% --threads=${@oe.utils.cpu_count()}" 798XZ_DEFAULTS ?= "--memlimit=50% --threads=${@oe.utils.cpu_count(at_least=2)}"
799 799
800################################################################## 800##################################################################
801# Magic Cookie for SANITY CHECK 801# Magic Cookie for SANITY CHECK