| Message ID | 20260316154733.1587261-15-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1773676138; bh=ZOA2AjzM1glqGLzO1NyO5tfh6BYtYNTepOibVnTf9IU=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=ioEyt9FkHDEovSC6HHVgyHowaZ6RjViD6Ryo9nsOK07YrnjC9+uK3YrBicVcY40p9 6M25ka5iDZQI+T3SPH1d7+uGci75aq6NLeDwjxo57BXUV0Pa+sOj4M3RJodELsob5I D9Sse3KJJqYjrunWTHYigTPsUjeuHmJ4ilVFcK5m2EAwi3/zatiWeCsq7sPC7pqPEF K/kg3Z8QP/MrXEQnNVB1g0SSoys9ihW1CU/L9Qx27tO7fcciyOP8I21lrCDmwbPSIc cwDlRJ3PzwWoFu+DMEiFKC96V39hyrA4XyyZJR//cUDkwDaFPt9Ifj1SM59jeGJuL3 TDQXH0RYGDZDg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 1F8606A085 for <u-boot-concept@u-boot.org>; Mon, 16 Mar 2026 09:48:58 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id ONPGqsmDRiaV for <u-boot-concept@u-boot.org>; Mon, 16 Mar 2026 09:48:58 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1773676136; bh=ZOA2AjzM1glqGLzO1NyO5tfh6BYtYNTepOibVnTf9IU=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=YY+Bbw7xHxpJWbH8KZBdxNuGTyHJWNNQ0D01q2MXjHJlyAk+2Ep6thu0gEuzJEhlr CwrzI12wUCftdSRGRTQk3gYGcbohGwpJxDHCEcJuWolED3y/eic2Pbv4qWuf9wJscV B5A85vhztp7euD5NwpSsiK9bIbQJSeuHM1KP6yEprhF/9ButbeIZPjicGNJGitoY8V QucS1Goq0bKQqzFSvxN/xPQq38JcS736J39eWWF+YuxOFCQ5XsCZhV+w5pYRZvzFDb PZsm6UOee6pz15Vs2jMN3PhDPeTJQHrTqm112vpWdbGIJYbZEri97Tv45A0ouOIi57 bRn9kMwYgiXIQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 5C3046A08A for <u-boot-concept@u-boot.org>; Mon, 16 Mar 2026 09:48:56 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1773676132; bh=dp0rMLERvj3DBgmFUIIZiTWuq1SQDZ9tsKkaF0a6L2g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O9cU3I2roW3Za55pCnyatlCM6I0tZlbyA7rirNs9MjTJho8IUDeHe99c2Dh2IBiT2 J+yIhIqvAps9UhG3ljQbzUthczqyhTUXs7FQXwoI7A4cML+qp9XwwYkDA/uPCIHdp7 g7FEhhdYeZ3CWfG/7jc7Qq1E8SB6iW6tIosWzEYuCA+0JrEdmQa61VE/ZVPpg7OffK oVnSiMTAO7J7oaEXUBQtbRAgFD85jqifsFijmhiVY+ftMjl5FFO0V0fKi/ep08Z/aZ bE+PI/bLbeWZ8llKDIZ/TRJbZNlhv6TETzAlIVs92Gxq2OY8+3dRD9wvdhecKFCLk8 yHrTNZGs0kSpg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 91E426A061; Mon, 16 Mar 2026 09:48:52 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id DpHiT073gx7l; Mon, 16 Mar 2026 09:48:52 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1773676132; bh=VXkypozzVLe4sCzPR/nnuL+6U6c3O7EZ4InG5Eupeio=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X6DPCtjTcRAH7rYak6qiOJ3DohSAsc458NZXgRcU/hu5VHqWbHYIVbSSrl+BbKjb0 k8VLBiqjdxYGRsIRss/6mHpJNp8lOP9N2+aGecfrMpfQ54ljliDm9JjI4Qu0kWNXMS I7cY9wcSAS8RJAcIyXxqquv3Jdhn2mXs4yPNBfnHAeuY05sPYabegj0AA+3a8eUsY5 BuoiXsn9PMByl0DrLIRScIPZ+qv40hvsSDTpEvAubO9MiRCkEciBaIH+pnQTkWKsSS H2vA5KpcpoheXbK0xE7D0ITw4dA6XcGvohAJAKsKk1Y+g0DUnG+1R4Lq439eAx4N5c Zqv4sdQHZIoug== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 1AAA46A07F; Mon, 16 Mar 2026 09:48:52 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Mon, 16 Mar 2026 09:47:19 -0600 Message-ID: <20260316154733.1587261-15-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260316154733.1587261-1-sjg@u-boot.org> References: <20260316154733.1587261-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: T7H47FPUACQKE53J3FYWWDJZAACW2HVY X-Message-ID-Hash: T7H47FPUACQKE53J3FYWWDJZAACW2HVY X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 14/20] buildman: Pass NPROC to make for LTO parallelism List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/T7H47FPUACQKE53J3FYWWDJZAACW2HVY/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
buildman: Add distributed builds
|
|
Commit Message
Simon Glass
March 16, 2026, 3:47 p.m. UTC
From: Simon Glass <sjg@chromium.org> LTO link steps use nproc unconditionally, flooding the machine with jobs during the link phase and reducing build efficiency. Pass NPROC=<num_jobs> alongside -j so that LTO respects the dynamic parallelism setting. Signed-off-by: Simon Glass <sjg@chromium.org> --- tools/buildman/builderthread.py | 1 + 1 file changed, 1 insertion(+)
diff --git a/tools/buildman/builderthread.py b/tools/buildman/builderthread.py index 16534196d4d..6f4f257dedb 100644 --- a/tools/buildman/builderthread.py +++ b/tools/buildman/builderthread.py @@ -344,6 +344,7 @@ class BuilderThread(threading.Thread): num_jobs = max(1, nthreads // active) if num_jobs is not None: args.extend(['-j', str(num_jobs)]) + args.append(f'NPROC={num_jobs}') if self.builder.warnings_as_errors: args.append('KCFLAGS=-Werror') args.append('HOSTCFLAGS=-Werror')