public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: isar-users <isar-users@googlegroups.com>
Subject: [PATCH] Set BB_NUMBER_THREADS to number of CPUs
Date: Wed, 14 Feb 2018 20:38:23 +0100	[thread overview]
Message-ID: <db27c231-fed2-e0d5-fb4a-55f87026aaf4@siemens.com> (raw)

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

             reply	other threads:[~2018-02-14 19:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-14 19:38 Jan Kiszka [this message]
2018-02-15 15:40 ` Alexander Smirnov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=db27c231-fed2-e0d5-fb4a-55f87026aaf4@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox