From patchwork Wed Feb 11 14:32:59 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1822 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=1770820488; bh=zGu0zBLTVUi0bJuQcA5xqpNiGTl3xr5qN4wjt9pOg5A=; 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=c5NMkSJz3XC5kHpzL97y33orZdqumrIBc+5fTVGVUmFBU7uW7sbj+ytmw/Nq6lfHF Xh+AGoD8CJhUiKp/1AkWT2XV9WlC0sFBIDhnRByOSExpNRcVhTprw0VO0xzwY4wtlp V4A7LNg6Vl212sP+3wNcI+r8w1RN4mGEayX+5K7gxoHAgu5asvsOppOs27gYQ0wQZi jWsTwaq1YaRL8S/LxyoLQayd3wucBJHkRJ6I8wnxNF3ybQrj3XEqD8wqJgFAN83miy C07DEKwbCd0OdSc127hhOY9ARyPZn4nUOn4l45EaXuxfxWpxFL9ku+isf7zVhjr4Ug 5nc69E1ckc3Sw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id A7D2569A91 for ; Wed, 11 Feb 2026 07:34: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 P_vP-ERq7X4C for ; Wed, 11 Feb 2026 07:34:48 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770820488; bh=zGu0zBLTVUi0bJuQcA5xqpNiGTl3xr5qN4wjt9pOg5A=; 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=c5NMkSJz3XC5kHpzL97y33orZdqumrIBc+5fTVGVUmFBU7uW7sbj+ytmw/Nq6lfHF Xh+AGoD8CJhUiKp/1AkWT2XV9WlC0sFBIDhnRByOSExpNRcVhTprw0VO0xzwY4wtlp V4A7LNg6Vl212sP+3wNcI+r8w1RN4mGEayX+5K7gxoHAgu5asvsOppOs27gYQ0wQZi jWsTwaq1YaRL8S/LxyoLQayd3wucBJHkRJ6I8wnxNF3ybQrj3XEqD8wqJgFAN83miy C07DEKwbCd0OdSc127hhOY9ARyPZn4nUOn4l45EaXuxfxWpxFL9ku+isf7zVhjr4Ug 5nc69E1ckc3Sw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 94A0469A89 for ; Wed, 11 Feb 2026 07:34:48 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770820486; bh=rAAlq9WIQ7aETLu8mh7XjlLd8HW+pD1oOg/o+QTi04E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e/ZYuLsjmLviLuCkZ+Ob5cRXkdr1wOxc9g90u8sHFeDfGBgKHAti3oAzsw7RDk2+K y+HE6XiXKuU22RyO45pTJYZixUfU0rtG3Kqpjv601G3jUb/Wujy/dH1td0gE+Xbw9g xml4fnzjv4HQ4VUVHYU8N1i0Z7jJoEmsfN/FlpfTcjVyJ/YrnncbdDnarWDXUMz9u2 lxPr0Hspk44ZmlotEsQyT4cPUXFV4wBiCDk5ZaWBJT7WgM6bLJnw2XCuf3LeyWXsCM BCIIn9jonOE0IpATjoE17UJiZZzQSwtPm0H5DYEZkZ2zUaxfmPIdg01b9vGHns9aYt ieuUs5Gl81x6A== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id EC68F699D6; Wed, 11 Feb 2026 07:34:46 -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 xdgCFyU_5xZ6; Wed, 11 Feb 2026 07:34:46 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770820482; bh=0sP+4BbG7lOB2Ir7+WDDKmeGqBs/OoOkSmk+cMHryqI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F4YoTPlNisp0rWwINdLITZo7OZrk9KArnqGwxzQzB3XeUQANhCq2vULMsVaPK16T2 wRA1ooAL3+FjvmfkvR130Oa7ks93ai3X3qDj9H6X4BwgkIS+EPiqatJJzhjdoMwf03 iK7cUrB9Oy98rJt5y901XSl3U/WJ/mLEKxLNM0/yJhyjKZJnlWb6Z8N+ghSHWMCK4v GZqB0ac71sjYtjX9Rqf97UAY1v/OMVL5eo2H4y+D9ZFcX2Vi2ohGNufh3vKfRTWW3N fLoTZdBY2ylzweG8YBi/xz4wHolnhubeGajgIwmmy6RS2zTFvLArKkepwB9rmf6vOL XrmIGC+Pk8nzg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id A304A699BF; Wed, 11 Feb 2026 07:34:42 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Wed, 11 Feb 2026 07:32:59 -0700 Message-ID: <20260211143309.1183113-12-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260211143309.1183113-1-sjg@u-boot.org> References: <20260211143309.1183113-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: CBTZXJXZ2CRSQ55GZ22JL3YTFHJPFPSR X-Message-ID-Hash: CBTZXJXZ2CRSQ55GZ22JL3YTFHJPFPSR 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 Opus 4 . 6" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 11/12] scripts: build-qemu: Add --no-spl option for x86_64 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 Add a -X/--no-spl flag that selects the qemu-x86_64_nospl board when running with the x86 64-bit configuration. Co-developed-by: Claude Opus 4.6 Signed-off-by: Simon Glass --- scripts/build-qemu | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/build-qemu b/scripts/build-qemu index 46fb14cf8a6..4f77eb88167 100755 --- a/scripts/build-qemu +++ b/scripts/build-qemu @@ -49,6 +49,8 @@ def parse_args(): help='Run qboot instead of U-Boot') parser.add_argument('-x', '--xpl', action='store_true', help='Use xPL image rather than U-Boot proper') + parser.add_argument('-X', '--no-spl', action='store_true', + help='Use no-SPL build (x86_64 only)') parser.add_argument('-T', '--tkey', action='store_true', help='Enable TKey USB passthrough for testing') parser.add_argument( @@ -162,8 +164,13 @@ class BuildQemu: if args.tkey: # Pass through TKey USB device to QEMU self.qemu_extra.extend(['-device', 'usb-host,vendorid=0x1207,productid=0x8887']) + if args.no_spl and self.helper.bitness != 64: + raise ValueError('-X/--no-spl requires 64-bit mode (cannot be used with -w)') if self.helper.bitness == 64: - self.board = 'qemu-x86_64' + if args.no_spl: + self.board = 'qemu-x86_64_nospl' + else: + self.board = 'qemu-x86_64' self.helper.qemu = 'qemu-system-x86_64' else: raise ValueError(f"Invalid arch '{args.arch}'")