From patchwork Tue Jan 6 22:03:24 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1309 Return-Path: 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=1767737088; bh=iIO4xiVrVGAE+5c2moYN/40xJwWGSa0dSwDlFSvkxK0=; 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=K7mQuVK1wPWKUbPW4QtoSUcYjinAPEHvtQMwmqpkzDCqVKJwc8JISXIPhaw8r90yX 2/S1/i9XnF4K0NSQQopgUrdIJFy95reQQEZeT34N6X/WvPbzQ70K7eaKrF7+U/EM5I HyWEZV3vjAf/hFViraei36KUMNek8zGDZ3VOQwkCER+1JBtbPyMwHYIN+r3s6i6qa0 XG0xYxSow1j0/vR7UcU1AATEPSUvQiKqGxiMgAZMne4A/C/kT58zV5h/Ox7oMKJQ4W jJftYE4BgFGdffjnDZY0laUyR2iyBfsWWDFS+M8cL1lW19N2SXqlB4/tmWpmNHjlZD OP6pn06hrmXow== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 750F26915C for ; Tue, 6 Jan 2026 15:04:48 -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 1E_vh3AoZa2X for ; Tue, 6 Jan 2026 15:04:48 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767737088; bh=iIO4xiVrVGAE+5c2moYN/40xJwWGSa0dSwDlFSvkxK0=; 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=K7mQuVK1wPWKUbPW4QtoSUcYjinAPEHvtQMwmqpkzDCqVKJwc8JISXIPhaw8r90yX 2/S1/i9XnF4K0NSQQopgUrdIJFy95reQQEZeT34N6X/WvPbzQ70K7eaKrF7+U/EM5I HyWEZV3vjAf/hFViraei36KUMNek8zGDZ3VOQwkCER+1JBtbPyMwHYIN+r3s6i6qa0 XG0xYxSow1j0/vR7UcU1AATEPSUvQiKqGxiMgAZMne4A/C/kT58zV5h/Ox7oMKJQ4W jJftYE4BgFGdffjnDZY0laUyR2iyBfsWWDFS+M8cL1lW19N2SXqlB4/tmWpmNHjlZD OP6pn06hrmXow== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 6513F69146 for ; Tue, 6 Jan 2026 15:04:48 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767737087; bh=0uqGgZEwXH8fuKKpXpG+rHE1OJtHiaZdcaL+qxVXHik=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jg5lJ2+WdZa4aWXNWiMTGDmw4oPY+NcP2FuPXrtFC7X7Ui/kxC02LH23l8kSOY3XK osmeYh8e6XGrNJaHREEMBWTjsY9abE+r3lcMc3wr8Zcq/Z3dy/DejGIoTZc8hhicWP XniIMVoGptdTVkgx5L6isv2Wsm/82TYI4rmVf+jLdOlK8JDtdJ9Xmmq5BfyqsZZpRh 9JfWzL+sillcfzG6M+Eu8uQjWUo7GH/cCFH2YeZkdOPBkloKuMzZvlJxX2Unz3zS6E q1NfVndSd2lLDMMIvF3untHe+SDJu7vGTiih67NL8VgDv7taquVGp+QNWTK4cnCTSg OWpxgDeeyPACA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 46C8F69158; Tue, 6 Jan 2026 15:04:47 -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 K62xx5vadEnY; Tue, 6 Jan 2026 15:04:47 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767737082; bh=3ZBp/DcuIh0911k2VewsFCZAKjsTjUDBsJtpOyW5TdE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jLWG3f7l6ujhHsvX9qF2ZeStrq9g7VU/PKd0YMjRbT6nhnIsxz8NPRUyEC62ELxtV qHccY325zuepHdPYIZKHfc9AFWCJ+HQGnhd+55SkJRnaSrPtqzKMo8FOtEWFBnkAOf I8cEJMPKRPm7wYtz7qbX6gQC7QGGPXm2OA9pW5bH1mQgb1aFh2MDzYQBf/8+el9PVR T5XkcjgdctaQKGiR9JADWIp2W2bDppIyHtUkRnAUywVo7t95SRbCcKOXeRZjz0fK17 coLfxxPTpPS5bjm/pwUhWTLx4lhZ41ihqGC7rw+oM8oIxDB8S4kew6t89hHwXlPgRc DH6etGY1EydvQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 12EE969146; Tue, 6 Jan 2026 15:04:42 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Tue, 6 Jan 2026 15:03:24 -0700 Message-ID: <20260106220403.2915630-7-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260106220403.2915630-1-sjg@u-boot.org> References: <20260106220403.2915630-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: T5J4YDVWYSJL766OTTKEEKEPWI5EEFJ6 X-Message-ID-Hash: T5J4YDVWYSJL766OTTKEEKEPWI5EEFJ6 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 , Claude X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 06/29] buildman: Rename variables that shadow builtins List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Rename 'type' to 'sym_type' in _get_func_sizes_for_elf() and 'str' to 'text' in add_target_list() to avoid shadowing Python built-in names. Co-developed-by: Claude Signed-off-by: Simon Glass --- tools/buildman/builder.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/buildman/builder.py b/tools/buildman/builder.py index 5a31f9aba19..1c6a38b232e 100644 --- a/tools/buildman/builder.py +++ b/tools/buildman/builder.py @@ -736,8 +736,8 @@ class Builder: line = line.strip() parts = line.split() if line and len(parts) == 3: - size, type, name = line.split() - if type in NM_SYMBOL_TYPES: + size, sym_type, name = line.split() + if sym_type in NM_SYMBOL_TYPES: # function names begin with '.' on 64-bit powerpc if '.' in name[1:]: name = 'static.' + name.split('.')[0] @@ -1003,14 +1003,14 @@ class Builder: arch = board_dict[target].arch else: arch = 'unknown' - str = self.col.build(color, ' ' + target) + text = self.col.build(color, ' ' + target) if not arch in done_arch: - str = ' %s %s' % (self.col.build(color, char), str) + text = ' %s %s' % (self.col.build(color, char), text) done_arch[arch] = True if not arch in arch_list: - arch_list[arch] = str + arch_list[arch] = text else: - arch_list[arch] += str + arch_list[arch] += text def colour_num(self, num):