From: Roxana Ciobanu Date: Wed, 23 Jul 2014 07:46:02 +0000 (+0300) Subject: bitbake.conf: move BB_NUMBER_THREADS and PARALLEL_MAKE to bitbake.conf X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1529ef0504542145f2b81b2dba4bcc81d5dac96e;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie --- diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index f4870d52a9b..135461518c3 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 ##################################################################