From patchwork Tue Jan 6 22:03:44 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1329 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=1767737177; bh=33XpqIfnDbMPe31oShew+eLdGFeRhqr6W2oatMYtfSc=; 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=c+e9YbUd4xgXMfgav7ov/Tc/P5yYi1R0/0BzkrJj6rovAmMXTossEC7FvEqu/i1lX 4XOJI7A3ntKOnyjwUvk7HcmpR0zPZ8Y5MGr68kNKie4EWr0zbtD46R09jQo7Ls4P+1 XOWypzH6tJSZWHjzzqo96o615JZlKKAo7CjLXRaR8IzzQlFHaFqF4bqdiu4JrZiAWp TNxwEGqeBKBV4+lyHSmAHO8wBYiNPODgQX6q6WoxjpGnpLQ/P5cuuOgtpGRvofuw9O SYR3Q84fDc5waTyNOrBfK9pGJV9qVvY3QxFDqS9A+jxAGXijbuCFhYvZ6MiXXLClV+ B5cG/nVxX4PPQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id A10D0690CB for ; Tue, 6 Jan 2026 15:06:17 -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 b8GkHMaSAvVM for ; Tue, 6 Jan 2026 15:06:17 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767737177; bh=33XpqIfnDbMPe31oShew+eLdGFeRhqr6W2oatMYtfSc=; 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=c+e9YbUd4xgXMfgav7ov/Tc/P5yYi1R0/0BzkrJj6rovAmMXTossEC7FvEqu/i1lX 4XOJI7A3ntKOnyjwUvk7HcmpR0zPZ8Y5MGr68kNKie4EWr0zbtD46R09jQo7Ls4P+1 XOWypzH6tJSZWHjzzqo96o615JZlKKAo7CjLXRaR8IzzQlFHaFqF4bqdiu4JrZiAWp TNxwEGqeBKBV4+lyHSmAHO8wBYiNPODgQX6q6WoxjpGnpLQ/P5cuuOgtpGRvofuw9O SYR3Q84fDc5waTyNOrBfK9pGJV9qVvY3QxFDqS9A+jxAGXijbuCFhYvZ6MiXXLClV+ B5cG/nVxX4PPQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 8BC7069146 for ; Tue, 6 Jan 2026 15:06:17 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767737176; bh=S3RC0xaZ5rAQsRW8WiH6nE80r4VdFHt7Sui2ZqBhM9Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mw+58AiM66f+qrXEnCBVykrPxG64Ssg7G/O2m2wkw4aHCAuECajdGmsLtKpAAr7L+ kf/sbjIqTeLrqERNr5kbai1b4Bx3mfeYMLsYqj94hZ7GgGkfZXStyRmz/lJpJicVI6 nSzkqTnFTQztn744XkF4/h5deh+xb2kI3qC4EuQOaM3Qi0nB1vA4WVuUBo1CiIXoiP a0kt/OY+cRyJ+qheNgMD1jYEdMreHtgzYnxpEWGRKnERIsQATlhKF5WDmdM8at6fVU eW+cGb6zEC6zvHk/hSe16L7AzZZkrS+Dx/kIpgSawUZPFx8daK4doh0xI976HL9pe1 3/Fu1AQxXBkkA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 93676690CB; Tue, 6 Jan 2026 15:06:16 -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 crzIhtkbmyYZ; Tue, 6 Jan 2026 15:06:16 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767737172; bh=qq8q78VpG6Wd/Q91HNYYLbKGxC0Uo9OoqepufBFvmM0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UxqJWRn2r1iajRdeWMNoOXuRaaAb4XvmMngyJ2nO9lm1q3yKnR6NtU/CXz30aotyZ 0F4Wf71tJ89WHN52OaYmH8KztWj07u9enUiPLpJ9iivpfhUXpr0/0uqg9yDXw3QiKW Xnm5qqodslcSIIJ5chNQBlLwXlIXLmM4I7kd6auC9iHHuwy2DrCSIIQw/zTPpe4i1a vChug6bhe2st97D9PKrJv7oPUvI2JDJcrjhWMddgUTHpqIDASiC+tYZ4Wd0WobmhXZ qnMv4K/JiuyMZ6zQVWHA1szVG2Xf5rXagd3d47rem9JBXDJvTKrtmdmMEsHJDyVjJC 1Thuyo8idbh7w== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id DE0FD69173; Tue, 6 Jan 2026 15:06:11 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Tue, 6 Jan 2026 15:03:44 -0700 Message-ID: <20260106220403.2915630-27-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: ZXMIFFOIDCDESFYGA4MODOP2HYGR7EK4 X-Message-ID-Hash: ZXMIFFOIDCDESFYGA4MODOP2HYGR7EK4 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 26/29] buildman: Extract IDE output in print_result_summary() 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 Move the IDE output printing into _print_ide_output() to reduce complexity in print_result_summary() Co-developed-by: Claude Signed-off-by: Simon Glass --- tools/buildman/builder.py | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/tools/buildman/builder.py b/tools/buildman/builder.py index f8217124864..72bd812fde4 100644 --- a/tools/buildman/builder.py +++ b/tools/buildman/builder.py @@ -1745,6 +1745,22 @@ class Builder: self._output_err_lines(better_warn, colour=self.col.CYAN) self._output_err_lines(worse_warn, colour=self.col.YELLOW) + def _print_ide_output(self, board_selected, board_dict): + """Print output for IDE mode + + Args: + board_selected (dict): Dict of selected boards, keyed by target + board_dict (dict): Dict of boards that were built, keyed by target + """ + if not self._ide: + return + for target in board_dict: + if target not in board_selected: + continue + outcome = board_dict[target] + for line in outcome.err_lines: + sys.stderr.write(line) + def print_result_summary(self, board_selected, board_dict, err_lines, err_line_boards, warn_lines, warn_line_boards, config, environment, show_sizes, show_detail, @@ -1844,13 +1860,7 @@ class Builder: self._base_warn_line_boards, warn_lines, warn_line_boards, 'w') # For the IDE mode, print out all the output - if self._ide: - for target in board_dict: - if target not in board_selected: - continue - outcome = board_dict[target] - for line in outcome.err_lines: - sys.stderr.write(line) + self._print_ide_output(board_selected, board_dict) # Display results by arch self._display_arch_results(board_selected, brd_status, better_err,