From patchwork Tue Sep 23 19:38:28 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 410 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=1758656331; bh=3RYsMKSWL0KZQIBfEc9onk8CYVSBpdh7uKUemoRVOEM=; 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=DB0utivRf63WfuRGUCeUMM9eOiuLA0SqO6ylNOtLwoHcIY3ZwDwLTLegOZ2a9pxQQ TEbDsXz6N5BxQn58X7AdfglkXevgTObYdBM0f4lqv9DppgkYcOyLJhVpBX3e3avN0g iur/E9wXq48Mkf41dQxAKmdWxGeViiz7D09DmFmkXJequNEEGH1j8H98pRGuqGVbXs F+J5LeU1FkJwwOd9fY6LH77jrinS8ifinofnWw4oxmNbxOMubFUXIKTCpO6HUsu1ye NGt6nYJPZLi1fhzXwzBmgydoxjGTwnJC6UNASi9FaTAK9psYZC5JJhD7ybaSwdX9KY poLiw07Hr8iIw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 03F5067D32 for ; Tue, 23 Sep 2025 13:38:51 -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 t6aG9DibV0Ln for ; Tue, 23 Sep 2025 13:38:50 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758656330; bh=3RYsMKSWL0KZQIBfEc9onk8CYVSBpdh7uKUemoRVOEM=; 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=cqgclpBIq+ZZ7W8sQVo2oZWx5V7SgIzFKGCHKFlqQcNh82V+eCRES3AnA1z65EV7y hCcliV1BrTgRlD72Lhq7x907MMtnS6wMD4DKwlq36tGstfO097S+R7h+BHXbbNhQP7 XZju2//+TfRibLwQ5eELMHFU/FbNRFneMCSYYntIGALXsloxYOUrTixwCXI/Ujp8ST mcuZD4jk7lf6JpHN9WMwkuUCSssRn20QHMEIi3ZmhRvbzNDzUVV//h3r36Vv3agcKY osgMgh/It/dOivAHRd2eed8csUdS2n+L3vlolNdnzyo9JnA60WI3M8U9EkoALX/sCZ 0ofk71JzOAAvw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id E74C867D02 for ; Tue, 23 Sep 2025 13:38:50 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758656328; bh=vrv5qhj9u1z4y/nPgup4xwlGBtA1L61Qtu750WT+lro=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PR/ef6FI0KGv0GY1H1aoyDflJXf2BL8ZL74be7P+pltgyS8uR2FsJ8rLXOm21sMpp 02JZHM9FNbe7cciWseUpvltyZ3G1Ubky8UJJJyhXJHc7qubrpiob0yWIPhpezT0M7r bN3ZsKt5xMz9LxR6s1hgzypr7mnNewbxnuJC5TkiKEueoRhifvzNv36YdP7HcHQMp6 Ied41Iiu2KA4TI9sX80k/uh8xJA5Dc8LEyyouOFLPMtuzRzj6jxkKb/17bWh9v81Ct qVVo8sTlNsqX4KMqKr9p+HG+2vckvlEEKPcNg/UfxE1vwsUPw9nTxYXEHvp3cWoZXO bLtOROn13tqPw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 74AC367A42; Tue, 23 Sep 2025 13:38:48 -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 COxnBJpVKnMa; Tue, 23 Sep 2025 13:38:48 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1758656324; bh=uiw0fbFtbZmyvxL2pDHeGku5UCY+RPI5c5XmKONzLRE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g0VcclHv7rZyPjqgkTvxBO1QpquRj+YMElzQH2emDnT+bPECO1r6lHuEn5OF2PZBw 5K4bolGxZIPCnHd5c7CP2Zm8PLjOV8AInaaI3sxO+5FoTG+Qafx1zXhz91Qn2D9ZkE caaEwjBKbcr08ysL8TysXbSYr7AW4Vh46s9GuFJEd4EZvrkICf1PfnZ9Z2JeCqYspC kbcv6fA+LHmgFfkTd0KHVgrT/noLJRC11a2d15Jq38IDH/rsgRkudbw19tmkOaknxx o5jIaasaoa0Utvab+TgeAlvNCZ8bmVdUpXRFfkECb3s7FAgBJPzC5OyOGM3O3nMfu+ 7bXmA89MyQH4g== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 2BE8967CD3; Tue, 23 Sep 2025 13:38:44 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 23 Sep 2025 13:38:28 -0600 Message-ID: <20250923193833.1506358-2-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250923193833.1506358-1-sjg@u-boot.org> References: <20250923193833.1506358-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: MBRQ6DAQQ3E5C2FWLNYKVEFMUJCP6ADR X-Message-ID-Hash: MBRQ6DAQQ3E5C2FWLNYKVEFMUJCP6ADR 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: Heinrich Schuchardt , Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 2/4] scripts: Update build-efi/qemu to support disabling pager 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 The pager can interfere with tests and there is a lab test which uses the build-efi script. Add an option to disable the pager so that the labgrid test can request that. Signed-off-by: Simon Glass --- scripts/build-efi | 3 ++- scripts/build-qemu | 2 ++ scripts/build_helper.py | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/build-efi b/scripts/build-efi index 131aad50897..27446295b2d 100755 --- a/scripts/build-efi +++ b/scripts/build-efi @@ -155,7 +155,8 @@ class BuildEfi: def do_build(self, build): """Build U-Boot for the selected board""" - res = command.run_one('buildman', '-w', '-o', self.build_dir, + extra = ['-a', '~CONSOLE_PAGER'] if self.args.no_pager else [] + res = command.run_one('buildman', '-w', '-o', self.build_dir, *extra, '--board', build, '-I', raise_on_error=False) if res.return_code and res.return_code != 101: # Allow warnings raise ValueError( diff --git a/scripts/build-qemu b/scripts/build-qemu index 62f0bc41fad..522325a8d57 100755 --- a/scripts/build-qemu +++ b/scripts/build-qemu @@ -200,6 +200,8 @@ class BuildQemu: self.build_dir.mkdir(parents=True, exist_ok=True) cmd = ['buildman', '-w', '-o', str(self.build_dir), '--board', self.board, '-I'] + if self.args.no_pager: + cmd += ['-a', '~CONSOLE_PAGER'] self.execute_command( cmd, diff --git a/scripts/build_helper.py b/scripts/build_helper.py index 21162e5643e..d401da0215c 100644 --- a/scripts/build_helper.py +++ b/scripts/build_helper.py @@ -301,6 +301,8 @@ def add_common_args(parser): help='Use KVM (Kernel-based Virtual Machine) for acceleration') parser.add_argument('-K', '--kernel', help='Kernel to run using -kernel') + parser.add_argument('-n', '--no-pager', action='store_true', + help="Disable the pager (for testing)") parser.add_argument('-o', '--os', metavar='NAME', choices=['ubuntu'], help='Run a specified Operating System') parser.add_argument('-r', '--run', action='store_true',