]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/utils: allow to set a lower bound on returned cpu_count()
authorAndré Draszik <git@andred.net>
Tue, 3 Mar 2020 16:05:10 +0000 (16:05 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 6 Mar 2020 08:17:26 +0000 (08:17 +0000)
commitc6dda204e15c5b27559f7617b18a7b3ce604e2f8
tree7d7e673c89f3275baae7eb56c89decc7ea670e17
parent0616a5dbc61561fefcd1822ce263837437466df2
lib/oe/utils: allow to set a lower bound on returned cpu_count()

This will be needed for making xz compression more deterministic,
as xz archives are created differently in single- vs multi-threaded
modes.

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.

Allowing cpu_count() here to return a lower bound, will allow
forcing xz to always use multi-threaded operation.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/utils.py