public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Henning Schild <henning.schild@siemens.com>
To: "[ext] Jan Kiszka" <jan.kiszka@siemens.com>
Cc: isar-users <isar-users@googlegroups.com>
Subject: Re: [PATCH] u-boot-custom: Fix parallel build
Date: Tue, 2 Oct 2018 11:31:04 +0200	[thread overview]
Message-ID: <20181002113104.54503304@md1pvb1c.ad001.siemens.net> (raw)
In-Reply-To: <96b3773c-1db0-41c3-ff20-734535499974@siemens.com>

Am Tue, 2 Oct 2018 00:15:55 +0200
schrieb "[ext] Jan Kiszka" <jan.kiszka@siemens.com>:

> Do to missing "echo", we were running with "-j" so far, and the build
> log contained some complains about unknown commands.
> 
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
>  meta/recipes-bsp/u-boot/files/debian/rules | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-bsp/u-boot/files/debian/rules
> b/meta/recipes-bsp/u-boot/files/debian/rules index deb7c8e..1d9e645
> 100755 --- a/meta/recipes-bsp/u-boot/files/debian/rules
> +++ b/meta/recipes-bsp/u-boot/files/debian/rules
> @@ -12,7 +12,7 @@ export CROSS_COMPILE=$(DEB_HOST_GNU_TYPE)-
>  SET_CROSS_BUILD_TOOLS=CROSS_BUILD_TOOLS=y
>  endif
>  
> -PARALLEL_BUILD=-j $(shell $$(($$(nproc) * 2)))
> +PARALLEL_BUILD=-j $(shell echo $$(($$(nproc) * 2)))

Why the "*2", usually nproc or nproc+1 should be what you want. And in
that case "nproc" is simpler to script.

Henning

>  override_dh_auto_build:
>  	$(MAKE) $(PARALLEL_BUILD) $(U_BOOT_CONFIG)


  reply	other threads:[~2018-10-02  9:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-01 22:15 Jan Kiszka
2018-10-02  9:31 ` Henning Schild [this message]
2018-10-02  9:34   ` Jan Kiszka

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=20181002113104.54503304@md1pvb1c.ad001.siemens.net \
    --to=henning.schild@siemens.com \
    --cc=isar-users@googlegroups.com \
    --cc=jan.kiszka@siemens.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