From patchwork Fri Feb 20 00:19:20 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1914 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=1771546835; bh=uaPjEWOcvfGDGHy+7ay0fPfErLgVFZbdtwIUrfEHL5A=; 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=hEpH8BJEtncXacRdzr3JIemwCNxk+kSg7Nb4FplSK9z00i2l7JvjDLfWLwnDjSHxF KlBgs5NxsXIsVCrD9PhQd7vqj0bQ5VIG3IVlpPIMVxa8jGZHEY2DuRKwo6vKKYJ1Sz M4XbQrQjdRwTng+cu4ZyMYkvC3qmfFGf2x0HmbPGKlGZGvuf49nPHiQBP3Av5zNCou YaLLujygp19Alex4+vNyWY1KPmekhhXK+2RyCombfmtueJzR9+orbBwdgtHh0SSA4s EPTQO54cgxrFiYP7/h8iSg9DBcKa42OYCStjihhXIyoB4cZXCqc7Z/b7Xz97Ru8qvl eWTnCp4mIL3rA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id CF3F369C8F for ; Thu, 19 Feb 2026 17:20:35 -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 wN_Mu0-7kMPU for ; Thu, 19 Feb 2026 17:20:35 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771546835; bh=uaPjEWOcvfGDGHy+7ay0fPfErLgVFZbdtwIUrfEHL5A=; 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=hEpH8BJEtncXacRdzr3JIemwCNxk+kSg7Nb4FplSK9z00i2l7JvjDLfWLwnDjSHxF KlBgs5NxsXIsVCrD9PhQd7vqj0bQ5VIG3IVlpPIMVxa8jGZHEY2DuRKwo6vKKYJ1Sz M4XbQrQjdRwTng+cu4ZyMYkvC3qmfFGf2x0HmbPGKlGZGvuf49nPHiQBP3Av5zNCou YaLLujygp19Alex4+vNyWY1KPmekhhXK+2RyCombfmtueJzR9+orbBwdgtHh0SSA4s EPTQO54cgxrFiYP7/h8iSg9DBcKa42OYCStjihhXIyoB4cZXCqc7Z/b7Xz97Ru8qvl eWTnCp4mIL3rA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id BF49269C87 for ; Thu, 19 Feb 2026 17:20:35 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771546833; bh=Z7kghkfVJIMlSjWAwFGvR2RFSv9thUelT7/uwqd4vmk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ogi4W5UAAlg2ewyhI75Mu+keqjn37Dj3Nf0AC4aY/fGdug2k/ZNMvnBUcjtdDRYY1 pYSCUrlVVRuaW5Li/71rBIOypPJDkfjpyyTu2iNuz5ZYCtEjQ1insb0VCSkebR1xT8 fq6wmfadPb025qS6AzU8RlvN7YoUaudQmNhp22jq2TH+N1n6bOhQ0J6e+yBknQouhy DA96R6O2L3HmqOHOy8Q5yCA7F8RnZo6kuaTcPZ7fqgr0WYvZeMrrFa9JgmV9Rvm+/d U+98hIptF9edVJIvm9AsEAvNEGzSiEU0Q++L6MrvqMWSFkaQxuCNGj0HUosdVnxmR1 xmsAHUDV8X1oA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 453E869C0B; Thu, 19 Feb 2026 17:20:33 -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 Nv2bUmYDDo6U; Thu, 19 Feb 2026 17:20:33 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771546829; bh=0OevVDM4xDW8dlWd+0BLiz2Jc41XV1w0EpFsuqVACHs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tHCmApEUxn8Q+FjxomiY/tLjuq1L0o/LBXE6iGmAWnxSJBRgFSCNaZDWC9TprCx2q 7AtYf8crINXaXAeeNGDTZEjnH3QoZi2qK020mCBFq1t+QTX+CmSuQyK9TpitcYh5cZ O6wvZPNqT4yKsHhgdz/Y1divuTRCyf6pAnLYBh9dQgeIAm8mXRbfVLyhcdrQweCm/m yBvyAsoftzEUM7FOno5Da9ItyWKD0nUFhHkjgVVcclhEi4Xjr/wwsaNivb7ATQMaK1 e9li1oE2NQswQQf6dCLc7aoto6Kx5MywtoaLP++hy6HMbX3c5zLwnaxsUTQBMqosjB YT76hCdWSUuOQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id F1D2869C7C; Thu, 19 Feb 2026 17:20:28 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Thu, 19 Feb 2026 17:19:20 -0700 Message-ID: <20260220001926.2366140-13-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260220001926.2366140-1-sjg@u-boot.org> References: <20260220001926.2366140-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: GLXOLQ3W6OETA2CMF5NHALGNU2K2I2SN X-Message-ID-Hash: GLXOLQ3W6OETA2CMF5NHALGNU2K2I2SN 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 12/13] ulib: riscv: Enable Rust demo for efi-riscv_app64 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 RUST_TARGET_riscv is already defined as riscv64gc-unknown-none-elf, so the Rust demo just needs to be enabled in the defconfig. Enable CONFIG_RUST_EXAMPLES in efi-riscv_app64_defconfig and add a QEMU boot test that launches rust-demo-app.efi under RISC-V UEFI firmware. Co-developed-by: Claude Opus 4.6 Signed-off-by: Simon Glass --- configs/efi-riscv_app64_defconfig | 1 + test/py/tests/test_ulib.py | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/configs/efi-riscv_app64_defconfig b/configs/efi-riscv_app64_defconfig index d48ecf19585..e89d392050b 100644 --- a/configs/efi-riscv_app64_defconfig +++ b/configs/efi-riscv_app64_defconfig @@ -54,4 +54,5 @@ CONFIG_CONSOLE_SCROLL_LINES=5 CONFIG_FAT_WRITE=y CONFIG_ULIB=y CONFIG_EXAMPLES=y +CONFIG_RUST_EXAMPLES=y CONFIG_CMD_DHRYSTONE=y diff --git a/test/py/tests/test_ulib.py b/test/py/tests/test_ulib.py index 851732fa1da..65485118812 100644 --- a/test/py/tests/test_ulib.py +++ b/test/py/tests/test_ulib.py @@ -545,3 +545,13 @@ def test_ulib_demo_efi_riscv64(ubman): '/usr/share/qemu-efi-riscv64/RISCV_VIRT_CODE.fd', '/usr/share/qemu-efi-riscv64/RISCV_VIRT_VARS.fd', ['--machine', 'virt']) + +@pytest.mark.localqemu +@pytest.mark.boardspec('efi-riscv_app64') +@pytest.mark.buildconfigspec("rust_examples") +def test_ulib_rust_demo_efi_riscv64(ubman): + """Test the Rust ulib demo EFI app under QEMU RISC-V 64 with UEFI.""" + run_efi_rust_demo(ubman, 'qemu-system-riscv64', + '/usr/share/qemu-efi-riscv64/RISCV_VIRT_CODE.fd', + '/usr/share/qemu-efi-riscv64/RISCV_VIRT_VARS.fd', + ['--machine', 'virt'])