aboutsummaryrefslogtreecommitdiffstats
path: root/meta/conf/bitbake.conf
diff options
context:
space:
mode:
authorRoxana Ciobanu <roxana.ciobanu@intel.com>2014-07-23 10:46:02 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-07-23 21:52:22 +0100
commit0db05b39e7cfada6a551cb652a8841c98a9b552d (patch)
treefdbdc5537c637f7c1a8a55af9a329dd42950a327 /meta/conf/bitbake.conf
parent54ddf3fe060715534cd9e23d6e89cf6b06ed3d9f (diff)
downloadopenembedded-core-contrib-0db05b39e7cfada6a551cb652a8841c98a9b552d.tar.gz
openembedded-core-contrib-0db05b39e7cfada6a551cb652a8841c98a9b552d.tar.bz2
openembedded-core-contrib-0db05b39e7cfada6a551cb652a8841c98a9b552d.zip
bitbake.conf: move BB_NUMBER_THREADS and PARALLEL_MAKE to bitbake.conf
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>
Diffstat (limited to 'meta/conf/bitbake.conf')
-rw-r--r--meta/conf/bitbake.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index f4870d52a9..135461518c 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -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
##################################################################