[PATCH] use dynamic jobcount make -j$(count cpu)
Alexander Couzens
lynxis at fe80.eu
Sun May 15 14:48:06 EDT 2016
On Sun, 15 May 2016 19:38:29 +0200
Alexander Couzens <lynxis at fe80.eu> wrote:
> Signed-off-by: Alexander Couzens <lynxis at fe80.eu>
> ---
> phase2/master.cfg | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> - command = ["make", "-j4", "V=s", "IGNORE_ERRORS=n m
> y", "BUILD_LOG=1", "CONFIG_SIGNED_PACKAGES=y"]))
> + command = ["sh", "-c", "make -j$(cat /proc/cpuinfo
> |grep -c processor) V=s IGNORE_ERRORS='n m y' BUILD_LOG=1
> CONFIG_SIGNED_PACKAGES=y"])) factory.addStep(ShellCommand(
> name = "uploadprepare",
I don't know if there is a better solution like setting it on slave as
envinronemnt variable. There is already a patch that allows the slave
to send it's cpu core count, but unsure if that works already with our
setup.
Best,
lynxis
--
Alexander Couzens
mail: lynxis at fe80.eu
jabber: lynxis at fe80.eu
mobile: +4915123277221
gpg: 390D CF78 8BF9 AA50 4F8F F1E2 C29E 9DA6 A0DF 8604
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/openwrt-adm/attachments/20160515/28d17d6e/attachment-0001.sig>
More information about the openwrt-adm
mailing list