[OE-core] [PATCH 1/1] bitbake.conf: move BB_NUMBER_THREADS and PARALLEL_MAKE to bitbake.conf

Burton, Ross ross.burton at intel.com
Tue Jul 22 15:32:06 UTC 2014


On 22 July 2014 14:58, Roxana Ciobanu <roxana.ciobanu at intel.com> wrote:
> +BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}"

Thinking about this some more we probably need the assignments in
bitbake.conf to be ??=, or to be moved further down the file to after
local.conf has been evaluated (there's a section marked Weak
Assignments, for exactly this situation).

The reasoning being that existing local.conf files will likely have
e.g. BB_NUMBER_THREADS ?= 8 and the expectation is that this
assignment will work.  If bitbake.conf before local.conf has been
loaded uses ?= then it will assign as the value hasn't been set, so
then when local.conf is parsed the value has already been assigned and
that assignment won't have an effect.

For consistency with the other variables that have moved to
bitbake.conf, I think we should move it to the weak variables section
in bitbake.conf and keep using ?=.

Ross



More information about the Openembedded-core mailing list