summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Bayer <bbayer@multitech.com>2016-11-09 15:22:48 -0600
committerBrandon Bayer <bbayer@multitech.com>2016-11-09 15:22:48 -0600
commit38ded95350a89cae973df774242e3c35e98784d8 (patch)
treee4eb649c1141597c2017d335ef0b0b63e3680ad5
parented42d0818b12bc61e37fb274357e1b07c5fb50ce (diff)
downloadmeta-mlinux-38ded95350a89cae973df774242e3c35e98784d8.tar.gz
meta-mlinux-38ded95350a89cae973df774242e3c35e98784d8.tar.bz2
meta-mlinux-38ded95350a89cae973df774242e3c35e98784d8.zip
chore: change build parallelism to depend on number of cores
-rw-r--r--contrib/local.conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/local.conf b/contrib/local.conf
index 66a1312..1e83060 100644
--- a/contrib/local.conf
+++ b/contrib/local.conf
@@ -32,8 +32,8 @@ BBMASK = ""
# Make use of SMP:
# PARALLEL_MAKE specifies how many concurrent compiler threads are spawned per bitbake process
# BB_NUMBER_THREADS specifies how many concurrent bitbake tasks will be run
-PARALLEL_MAKE = "-j4"
-BB_NUMBER_THREADS = "4"
+BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()*2}"
+PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()*2}"
# Don't generate the mirror tarball for SCM repos, the snapshot is enough
BB_GENERATE_MIRROR_TARBALLS = "0"