[PATCH] use dynamic jobcount make -j$(count cpu)
Alexander Couzens
lynxis at fe80.eu
Sun May 15 13:38:29 EDT 2016
Signed-off-by: Alexander Couzens <lynxis at fe80.eu>
---
phase2/master.cfg | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/phase2/master.cfg b/phase2/master.cfg
index 21862d4..e711dec 100644
--- a/phase2/master.cfg
+++ b/phase2/master.cfg
@@ -188,7 +188,7 @@ for arch in arches:
name = "compile",
description = "Building packages",
workdir = "build/sdk",
- 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",
--
2.8.2
More information about the openwrt-adm
mailing list