]> code.ossystems Code Review - openembedded-core.git/commitdiff
local.conf.sample: Add automatic defaults for BB_NUMBER_THREADS and PARALLEL_MAKE
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 27 Jan 2014 14:39:48 +0000 (14:39 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 27 Jan 2014 22:08:58 +0000 (22:08 +0000)
Its rather sad that people don't appear to read local.conf and then complain
about slow builds when they're just using a single thread. Most systems have
more than one core now so we might as well use a more automatic default
for these values. This may lead to better experiences for new users.

[YOCTO #2528]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/local.conf.sample

index c9771291393cc915a9fbdae917e56c14297ac564..1d893af23a470a21e1caab0011014a84f6db10d3 100644 (file)
 # option determines how many tasks bitbake should run in parallel:
 #
 #BB_NUMBER_THREADS ?= "4"
+#
+# Default to setting automatically based on cpu count
+BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}"
 # 
 # The second option controls how many processes make should run in parallel when
 # running compile tasks:
 #
 #PARALLEL_MAKE ?= "-j 4"
 #
+# Default to setting automatically based on cpu count
+PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}"
+#
 # For a quad-core machine, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would
 # be appropriate for example.