| Message ID | 20260112225406.3274105-1-sjg@u-boot.org |
|---|---|
| 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=1768258460; bh=D1XE3uR6+M9MaeHWq/wKP8SzdKRlKQTMB8LvXsXdNQo=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=quUjtLSFFGs5fvSMk9toejvvDzzUW7aOuZy8vtPp1O2f9T4i8M7Hlf2fgDAnHMFDP tlYaIne1717cGTdLP+wAxlnawOqw7YpAdGWnfRPANHNc/YdXVtTIljUHHUCll402a+ +PKwtbrhTJZJ0vN/XNoznjDMxgabyw1HyiFc8DaP/r38ONrDOfM54RsNOJ1+N/6iFn 92Qun2lytMPH0fkYVas5MpPB3Oi141uAxOFk8mpKa+K5QHSm4RosIG0MczdA5i2Lsj +CyzDj9EhBceo06ZaEx4aKbXujJQyCmHrHulWFKUsD0G0U0l0ijWQKfKUStGLzGwDj vpEG9+xTn+gkA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id E711D692FE for <u-boot-concept@u-boot.org>; Mon, 12 Jan 2026 15:54:20 -0700 (MST) 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 hki6G9u9kPdI for <u-boot-concept@u-boot.org>; Mon, 12 Jan 2026 15:54:20 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768258460; bh=D1XE3uR6+M9MaeHWq/wKP8SzdKRlKQTMB8LvXsXdNQo=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=quUjtLSFFGs5fvSMk9toejvvDzzUW7aOuZy8vtPp1O2f9T4i8M7Hlf2fgDAnHMFDP tlYaIne1717cGTdLP+wAxlnawOqw7YpAdGWnfRPANHNc/YdXVtTIljUHHUCll402a+ +PKwtbrhTJZJ0vN/XNoznjDMxgabyw1HyiFc8DaP/r38ONrDOfM54RsNOJ1+N/6iFn 92Qun2lytMPH0fkYVas5MpPB3Oi141uAxOFk8mpKa+K5QHSm4RosIG0MczdA5i2Lsj +CyzDj9EhBceo06ZaEx4aKbXujJQyCmHrHulWFKUsD0G0U0l0ijWQKfKUStGLzGwDj vpEG9+xTn+gkA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D5437692F5 for <u-boot-concept@u-boot.org>; Mon, 12 Jan 2026 15:54:20 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768258458; bh=7Tz4h6DinUebCl3Z/AaYLo0STKKXIsbVT7aPNR2j5yE=; h=From:To:Cc:Subject:Date:From; b=jir6fvjk7puQ1laQJGNdmTece7P+YWiCrWQGHklvvuCrYmCYuRbQ2dY8HjZs4LS+G IoSImFmYgNzQkx2sa6vpktxboYM92aAPh5iKOXGB3wOc4dT97Q3YZXUbDH86LFz+b6 Rl80MBGH/jcpnJO6wTS31UTmNHdASP5JlD08NMWh4PalmDBTAIMcmCFmne4ZmtEkt/ jJYDx8o0S1uSBOp/UFtyIqiNx9HJA/QtXKDSu6fgOlCH5serLRObMC1cFmcXY5j6iM bR6i+LHcMUO58xJbR12UFLyLQMUml+2ZgL25vjI/hDv3iFBr8Auu2x9KC5XS7k/Yyz mUa0YT4Lqyqnw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3A20D69237; Mon, 12 Jan 2026 15:54:18 -0700 (MST) 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 jvufwwSHQE4Y; Mon, 12 Jan 2026 15:54:18 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768258454; bh=jJorD0e2XsKP+W3i6HTelhkii5kBWtLndTGaF9Hvoj0=; h=From:To:Cc:Subject:Date:From; b=aCZgxNY8Ku3Ml93xUalrMAeToeDfj964JQlO1IjOtciyGmt8oPtpXVhm6k5jM6IYR 9n7Wb8UbXvxps9i5SmlxZ40uEGuRYgLH0y6ISHN8sp637D9HCPvlmtINjT4CZPd0s5 9o9bQ75B0JzE5ba+9gyOMadV3VcDhulhOgdhiHhtmlwGtUKhpvWwbbgRE3/b40IXKm yDE0MDZkZv4z+mvcmCj0WAU840yxaMgTn2Qm6Canmh4UHdgrSui0cLWyR433VyZD2D u/frf4NLw/dKetc/g/c7cArOxsWcN2UQ3YXN27QdKEwEOGXCW+NmXCYNzcQEda6agV 8EyyxLxBt40dg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id BCB1F6913F; Mon, 12 Jan 2026 15:54:13 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Mon, 12 Jan 2026 15:53:58 -0700 Message-ID: <20260112225406.3274105-1-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: IWJI7YN3HXFMVSWLM5M2TLFZAWED4H2T X-Message-ID-Hash: IWJI7YN3HXFMVSWLM5M2TLFZAWED4H2T 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 <simon.glass@canonical.com> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 0/5] buildman: Improve toolchain selection and config adjustment 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/IWJI7YN3HXFMVSWLM5M2TLFZAWED4H2T/> 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: Improve toolchain selection and config adjustment
|
|
Message
Simon Glass
Jan. 12, 2026, 10:53 p.m. UTC
From: Simon Glass <simon.glass@canonical.com>
This little series provides a few fixes for problems reported quite some
time ago.
Firstly, when downloading a toolchain via --fetch-arch for an
architecture that matches the host (e.g., aarch64 on aarch64), two
problems occur:
1. The kernel.org toolchain tarballs contain symlinks with doubled
prefixes like 'x86_64-linux-x86_64-linux-gcc', causing an "ambiguous
toolchains" warning.
2. The downloaded toolchain may be ignored in favour of a system-installed
one (e.g., from a distribution package) because both have the same
calculated priority.
This series fixes these issues by:
- Adding a new PRIORITY_DOWNLOADED level so downloaded toolchains are
preferred over system-installed ones
- Filtering out doubled-prefix binaries during toolchain scanning
This series also improves the --adjust-cfg feature to use
merge_config.sh for proper Kconfig dependency resolution, including
'imply' statements.
Simon Glass (5):
buildman: Update test_reproducible for real Kconfig resolution
buildman: Add a board parameter to check_command()
buildman: Use merge_config.sh for --adjust-cfg
buildman: Prioritise downloaded toolchains over system ones
buildman: Filter out doubled-prefix toolchain binaries
test/Kconfig | 14 +++
tools/buildman/builderthread.py | 12 +--
tools/buildman/buildman.rst | 29 +++++-
tools/buildman/cfgutil.py | 88 +++++++++++++++++
tools/buildman/func_test.py | 165 ++++++++++++++++++++++++++++----
tools/buildman/test.py | 67 +++++++++++++
tools/buildman/test_cfgutil.py | 31 ++++++
tools/buildman/toolchain.py | 49 +++++++++-
8 files changed, 422 insertions(+), 33 deletions(-)