diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-27 14:39:48 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-28 00:51:55 +0000 |
commit | ecb981390085637725c6f6f11509d866a9476c49 (patch) | |
tree | e66a78f378281ebfc88759da60afa6f647a13998 | |
parent | ff1bdc1c8bf745d88b6bd00f09bc4159ce96230d (diff) | |
download | ast2050-yocto-poky-ecb981390085637725c6f6f11509d866a9476c49.zip ast2050-yocto-poky-ecb981390085637725c6f6f11509d866a9476c49.tar.gz |
local.conf.sample: Add automatic defaults for BB_NUMBER_THREADS and PARALLEL_MAKE
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]
(From meta-yocto rev: 52bf4bdcaea0df69231327413d502aad11c3adf3)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta-yocto/conf/local.conf.sample | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta-yocto/conf/local.conf.sample b/meta-yocto/conf/local.conf.sample index 71856b8..36d33e1 100644 --- a/meta-yocto/conf/local.conf.sample +++ b/meta-yocto/conf/local.conf.sample @@ -18,12 +18,18 @@ # 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. |