From patchwork Mon Sep 15 10:46:56 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 314 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=1757933290; bh=AvMRsYFOBpUujEGkFUYA4HP8goOg3yI4CptanrLLCns=; 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=qNBK6+9JNvxdEEItfly2DZzpbGquCKXdKilyrvPHT+QbcIRWAVsRJbQZGPYe6gzly U6q4WXzYiT/GDAEb+yVYCvWAe350Of0RGPaIEWhbB6bCfsdhOrfwPqRhu0Hp3HQ4wA Gcm+QFFpm8Oc7eGhYWiByRuSX3PJ7uI3Due70VtJ2QYtyz9n9Siyi351aswJ99OHEg lD+a+cn5CrKzpmIGsOLYpGIunzG+tsDIzvkJ9mIlKsiIdnrj6d54sWkBmRiYGemxTO ZXl+ZiTYEmZml/gYvFuLV66+iu0QC7n5W3r8W/DFg+hj2BjvbbihOqHpSK2dQt2Yxf HyGBHvM8FVewg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 6A60167BBB for ; Mon, 15 Sep 2025 04:48:10 -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 4a6nvWj4frf8 for ; Mon, 15 Sep 2025 04:48:10 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757933290; bh=AvMRsYFOBpUujEGkFUYA4HP8goOg3yI4CptanrLLCns=; 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=qNBK6+9JNvxdEEItfly2DZzpbGquCKXdKilyrvPHT+QbcIRWAVsRJbQZGPYe6gzly U6q4WXzYiT/GDAEb+yVYCvWAe350Of0RGPaIEWhbB6bCfsdhOrfwPqRhu0Hp3HQ4wA Gcm+QFFpm8Oc7eGhYWiByRuSX3PJ7uI3Due70VtJ2QYtyz9n9Siyi351aswJ99OHEg lD+a+cn5CrKzpmIGsOLYpGIunzG+tsDIzvkJ9mIlKsiIdnrj6d54sWkBmRiYGemxTO ZXl+ZiTYEmZml/gYvFuLV66+iu0QC7n5W3r8W/DFg+hj2BjvbbihOqHpSK2dQt2Yxf HyGBHvM8FVewg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 5980E67BAC for ; Mon, 15 Sep 2025 04:48:10 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757933288; bh=K9JX5HbmJ8ijVVi8NTsqRokuawZlYkM808cOKWpTC1Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vbSUH4t/EQegt69FrErI3VWqwhfJrvV96Q7x1jv6FO1/0Dekw9lZ2fjndc4IDK2A8 fhva9rmyN6BeicHRTd2uVQiDDEuBKTRMf3saEDKZr2ka+Wv295id1btx5h4kBxrhNB ZFzaB+eqh/sCYbZgPOjHT3smEnrPuQ7JjYKrNI0fUFCKNaL57ABv3dYhuJdOpHRghh v+a5LDK2pDDVyVu//IkZKwTnJojt3iOY0XUQyqlGcnSjByTcMso93itRfwkMCa6IEc 1DWUoYBGSDe1/zq5WidGQ4kbSuOZ5xaOB5F66elEd7qIRGiMG+XN6u6USbHSRqJIzL a5NsJez3e1z4A== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3BDB067B3C; Mon, 15 Sep 2025 04:48:08 -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 UaWow1H092L9; Mon, 15 Sep 2025 04:48:08 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757933284; bh=avUBNZ2uPGZ7FctkqrS6bkLli8Gl1hohj0zxDMUOk1A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MJEFOS2EBfShcBXFR5sub8Z0ZYsowk8MxxDZKR9RmiCJHpGHLDtoLv5NM6O8Qol9P QZusERXramAFMsajhfJiqZdlkG5q5KYI3BIgcm9oJqo/7Lz6TGlUrPTP6Q+6gfbb8a XWxvkjmm/nrLH9hPemVBFA63XDCcPxtb2tyD1g5LKwsaoMc4IYis9MN+HptG/LM9aZ e7fgDB1tv9AeZbtv9+NmLnM1vTE8b4hoye4v/oVFpez9hTUkLpVdgbTW8HMFPJptM2 bOKfryy1flFOXxInwztWdiXn9KwPI4bl5BUz3AX8AdzBkFjlJt+eZcejmC2qnMqAWl kebimjC8+RmTg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id C688F67B04; Mon, 15 Sep 2025 04:48:03 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Mon, 15 Sep 2025 04:46:56 -0600 Message-ID: <20250915104705.937780-14-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250915104705.937780-1-sjg@u-boot.org> References: <20250915104705.937780-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: JF2WEN2M7XNCDLGGSCOAJUCCI64VQV3V X-Message-ID-Hash: JF2WEN2M7XNCDLGGSCOAJUCCI64VQV3V 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 15/17] script: Support mouse with build-efi/qemu scripts 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 Provide arguments to QEMU to enable a mouse. Note that this does not work with EFI at present. Signed-off-by: Simon Glass --- scripts/build-efi | 3 +++ scripts/build-qemu | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/build-efi b/scripts/build-efi index f4c96dad7bd..131aad50897 100755 --- a/scripts/build-efi +++ b/scripts/build-efi @@ -112,6 +112,9 @@ class BuildEfi: extra += ['-device', 'qemu-xhci', '-device', 'usb-kbd', '-device', 'usb-tablet'] extra += ['-display', 'default,show-cursor=on'] + else: # x86 + extra += ['-device', 'qemu-xhci', '-device', 'usb-kbd', + '-device', 'usb-tablet'] extra += ['-serial', 'mon:stdio'] serial_msg = '' if self.args.kvm: diff --git a/scripts/build-qemu b/scripts/build-qemu index 0bc312470de..62f0bc41fad 100755 --- a/scripts/build-qemu +++ b/scripts/build-qemu @@ -274,7 +274,11 @@ class BuildQemu: elif self.args.arch == 'arm': qemu_cmd.extend(['-device', 'virtio-gpu-pci']) qemu_cmd.extend(['-device', 'qemu-xhci', '-device', 'usb-kbd', - '-device', 'usb-tablet']) + '-device', 'usb-tablet', '-device', 'usb-mouse']) + qemu_cmd.extend(['-display', 'default,show-cursor=on']) + elif self.args.arch == 'x86': + qemu_cmd.extend(['-device', 'qemu-xhci']) + qemu_cmd.extend(['-device', 'usb-kbd', '-device', 'usb-tablet']) qemu_cmd.extend(['-display', 'default,show-cursor=on']) if not any(item.startswith('-serial') for item in self.qemu_extra): qemu_cmd.extend(['-serial', 'mon:stdio'])