public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] Set BB_NUMBER_THREADS to number of CPUs
@ 2018-02-14 19:38 Jan Kiszka
  2018-02-15 15:40 ` Alexander Smirnov
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2018-02-14 19:38 UTC (permalink / raw)
  To: isar-users

From: Jan Kiszka <jan.kiszka@siemens.com>

This is also OE-default.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 meta-isar/conf/local.conf.sample | 4 ----
 meta/conf/isar-bitbake.conf      | 2 ++
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/meta-isar/conf/local.conf.sample b/meta-isar/conf/local.conf.sample
index 92dea46..09c0e25 100644
--- a/meta-isar/conf/local.conf.sample
+++ b/meta-isar/conf/local.conf.sample
@@ -154,7 +154,3 @@ CONF_VERSION = "1"
 #
 # The default list of extra packages to be installed.
 IMAGE_INSTALL = "example-hello example-raw example-module"
-
-#
-# Default parallel jobs for bitbake:
-BB_NUMBER_THREADS = "4"
diff --git a/meta/conf/isar-bitbake.conf b/meta/conf/isar-bitbake.conf
index c01e486..b49386c 100644
--- a/meta/conf/isar-bitbake.conf
+++ b/meta/conf/isar-bitbake.conf
@@ -40,6 +40,8 @@ BB_HASHCONFIG_WHITELIST ?= "${BB_HASHBASE_WHITELIST} DATE TIME SSH_AGENT_PID \
 BB_SIGNATURE_HANDLER ?= "basichash"
 BB_STAMP_POLICY ?= "full"
 
+BB_NUMBER_THREADS ?= "${@bb.utils.cpu_count()}"
+
 # Add event handlers for bitbake
 INHERIT += "isar-events"
 
-- 
2.13.6

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-02-15 15:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-14 19:38 [PATCH] Set BB_NUMBER_THREADS to number of CPUs Jan Kiszka
2018-02-15 15:40 ` Alexander Smirnov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox