summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2021-08-05 10:16:01 -0600
committerCommit Bot <commit-bot@chromium.org>2021-08-05 22:33:00 +0000
commitba5b03585dfbfef51451b425e01386333ee80f93 (patch)
treeaf5bcbf526e41aa16b192b379f7af47a8f951a4b
parent540c8f4113eed87b45dc0871e8862e12d3e19ade (diff)
downloadchrome-ec-ba5b03585dfbfef51451b425e01386333ee80f93.tar.gz
zephyr: zmake: use -j1 until we switch to GNU Make
Ninja doesn't know how to talk to a jobserver, and so all of our ninjas go out of control, each trying to hit the CPU on all available cores. We have enough builds now that this is actually becoming problematic as well. -j1 forces sequential execution of the ninjas, which will mitigate the problem until we switch to GNU Make. BUG=b:178196029 BRANCH=none TEST="zmake -D testall" executes sequentially Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I45516e22cca150a99f2da7a7b784d15c3fc78aab Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3075401 Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--zephyr/zmake/zmake/__main__.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/zephyr/zmake/zmake/__main__.py b/zephyr/zmake/zmake/__main__.py
index ebb2e66024..9ee8e57a2c 100644
--- a/zephyr/zmake/zmake/__main__.py
+++ b/zephyr/zmake/zmake/__main__.py
@@ -67,7 +67,14 @@ def main(argv=None):
help=("Turn on debug features (e.g., stack trace, " "verbose logging)"),
)
parser.add_argument(
- "-j", "--jobs", type=int, help="Degree of multiprogramming to use"
+ "-j",
+ "--jobs",
+ # TODO(b/178196029): ninja doesn't know how to talk to a
+ # jobserver properly and spams our CPU on all cores. Default
+ # to -j1 to execute sequentially until we switch to GNU Make.
+ default=1,
+ type=int,
+ help="Degree of multiprogramming to use",
)
parser.add_argument(
"-l",