]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake.conf: move BB_NUMBER_THREADS and PARALLEL_MAKE to bitbake.conf
authorRoxana Ciobanu <roxana.ciobanu@intel.com>
Wed, 23 Jul 2014 07:46:02 +0000 (10:46 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 23 Jul 2014 21:01:56 +0000 (22:01 +0100)
Currently, BB_NUMBER_THREADS and PARALLEL_MAKE default to unset and
are set in local.conf. Now that we have the automatic probing,
the default values can be set in bitbake.conf and an example of
explicitly defining how many tasks to run can be moved to
local.conf.sample.extended.

[YOCTO #6217]

Signed-off-by: Roxana Ciobanu <roxana.ciobanu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/bitbake.conf

index f4870d52a9bcdc8195a87f7ae962774b1d7ed663..135461518c30eeadcd0f8d840976ef4eca08b788 100644 (file)
@@ -698,6 +698,12 @@ IMAGE_ROOTFS_SIZE ?= "65536"
 # MACHINE don't change the path to the cache
 CACHE := "${CACHE}"
 
+# Default to setting automatically based on cpu count
+BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}"
+
+# Default to setting automatically based on cpu count
+PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}"
+
 ##################################################################
 # Magic Cookie for SANITY CHECK
 ##################################################################