From patchwork Fri Feb 20 00:19:19 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1913 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=1771546832; bh=as2rqgVsp3SGm6c4v4r1mo/Gl0T6BnGX2Pg3sECGD0s=; 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=hsiMizi7qJKVCUQrTjAh6ynd83V8X2O78a4chFbrhmlHbx9GNaJdKRIovANZ7i3Ca JbRatNV3qo5v1EPvjQIKdqxuduMHIW8ZRONW7xPm5iSuPv2RsxUhaz51LQXi7tivyg eYs3AQEBJswKQ50RXa256oM86yfv8fzboE2/RhU8dT8yefPltaYnwvmCnHoVo2dp7b 4G/IbprPeYiPKfpJ1eiFs8S92pjxWYnnOSPDCEnSU2zMLEbS//VRjL/qhZqaamv3Vn FSnK3P/0rg/elycco7D6o+9ByEeHoaiu9oHrFsy3JiNfrFJBsP7DPT+9I5EXt/hI/s Iob/yHZWm2R3Q== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3C06C69C8F for ; Thu, 19 Feb 2026 17:20:32 -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 cFv80viOgVPN for ; Thu, 19 Feb 2026 17:20:32 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771546832; bh=as2rqgVsp3SGm6c4v4r1mo/Gl0T6BnGX2Pg3sECGD0s=; 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=hsiMizi7qJKVCUQrTjAh6ynd83V8X2O78a4chFbrhmlHbx9GNaJdKRIovANZ7i3Ca JbRatNV3qo5v1EPvjQIKdqxuduMHIW8ZRONW7xPm5iSuPv2RsxUhaz51LQXi7tivyg eYs3AQEBJswKQ50RXa256oM86yfv8fzboE2/RhU8dT8yefPltaYnwvmCnHoVo2dp7b 4G/IbprPeYiPKfpJ1eiFs8S92pjxWYnnOSPDCEnSU2zMLEbS//VRjL/qhZqaamv3Vn FSnK3P/0rg/elycco7D6o+9ByEeHoaiu9oHrFsy3JiNfrFJBsP7DPT+9I5EXt/hI/s Iob/yHZWm2R3Q== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 2513969C0B for ; Thu, 19 Feb 2026 17:20:32 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771546829; bh=MNe4NGZPMKH7+uMUBwPBF0QsXFG5dGH3w1Ln7AEmUNk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sUp2/Sm72IBYStWIM+dfSMj79T0DqRsG31EsYQA4JAmYnQsdCN+FS1VsvnwuJFhrN yshYpOE7/DAfQ1KNeAU+ZEXm65HMsGAISsEcrn4YmdFmij8x08y1E3bH5HBE/lpDPM cA9rwDMNI/+VjruCiw6r45cDc2YmmSZcqQvEx7kYyoF0gcH2TiaNGG8e9HghyilNin e8ZvyfXQ11KILbiphEWcxElytayh8/a5OJdg73aXq9zbP0By/N0OyEle3WmjzWHIpX cg78jY6KucKbFOb4kBiAjHJ0G/NKA/EgnGhK9oSNJ71PrLxwzAGhxKFtTBSM9i2ou5 aBYul/0SO9+SQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id EE3DA69C87; Thu, 19 Feb 2026 17:20:29 -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 TghshY8PRDMy; Thu, 19 Feb 2026 17:20:29 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771546824; bh=F+aQNbDtE/y3D/0ZdsPyqKw3SreBnrkECoWDZxo701c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m5a2LSa54y6/KDeVgH8pfbvoNwTApNKMDGLL32lW7IqM8NTzGH+8vy/KIR2zlNUZZ LMmZsRhxykdXk0SxTAfk9bgpGYs1wDVE2qYvyS7Zdp0zFEpp3vMDWv1C86RLSmmnc9 N4DgJ/ALU1+V7GgNVMLj15eS8gxSTT4ZVv2FVd59incZoLTnnR2+hgl5cqNPzSR7n7 vsJs7pz3D4VDTiXeQKRJGjf+WB2A57FllQH3ET4G6lGI4S7MFgf+y3JWM5r83ZQcjk yrKQSLDssfdjVa5GKdQv0tdhfL7Nhz5Hye8xTfI6uPE08v1TfcOuz3/3wVOxzNkyLm wiE9IZO7AxdHw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 4F3B869C0B; Thu, 19 Feb 2026 17:20:24 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Thu, 19 Feb 2026 17:19:19 -0700 Message-ID: <20260220001926.2366140-12-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: 7WOIDGUQ5O7B6KLTT24YOKIWO772GZXE X-Message-ID-Hash: 7WOIDGUQ5O7B6KLTT24YOKIWO772GZXE 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/13] ulib: arm64: Enable Rust demo for efi-arm_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 The EFI ARM64 board sets EXAMPLE_ARCH to arm but no RUST_TARGET_arm is defined, so the Rust demo cannot build. Since only 64-bit ARM has ULIB support, define RUST_TARGET_arm as aarch64-unknown-none (the same approach used for RISC-V where only 64-bit is supported). Enable CONFIG_RUST_EXAMPLES in efi-arm_app64_defconfig and add a QEMU boot test that launches rust-demo-app.efi under QEMU_EFI.fd. Co-developed-by: Claude Opus 4.6 Signed-off-by: Simon Glass --- configs/efi-arm_app64_defconfig | 1 + scripts/Makefile.ulib-example | 2 ++ test/py/tests/test_ulib.py | 9 +++++++++ 3 files changed, 12 insertions(+) diff --git a/configs/efi-arm_app64_defconfig b/configs/efi-arm_app64_defconfig index a9c4686a106..4d43a5bc754 100644 --- a/configs/efi-arm_app64_defconfig +++ b/configs/efi-arm_app64_defconfig @@ -55,4 +55,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/scripts/Makefile.ulib-example b/scripts/Makefile.ulib-example index ae3f75b33fb..fdb5a27fa1d 100644 --- a/scripts/Makefile.ulib-example +++ b/scripts/Makefile.ulib-example @@ -25,6 +25,8 @@ RUST_TARGET_x86 := i686-unknown-linux-gnu RUST_TARGET_x86_64 := x86_64-unknown-none RUST_FLAGS_x86 := -C panic=abort -C relocation-model=static RUST_FLAGS_x86_64 := +RUST_TARGET_arm := aarch64-unknown-none +RUST_FLAGS_arm := RUST_TARGET_riscv := riscv64gc-unknown-none-elf RUST_FLAGS_riscv := diff --git a/test/py/tests/test_ulib.py b/test/py/tests/test_ulib.py index 8ec5e985b52..851732fa1da 100644 --- a/test/py/tests/test_ulib.py +++ b/test/py/tests/test_ulib.py @@ -527,6 +527,15 @@ def test_ulib_demo_efi_arm64(ubman): '/usr/share/qemu-efi-aarch64/QEMU_EFI.fd', None, ['--machine', 'virt', '-cpu', 'max']) +@pytest.mark.localqemu +@pytest.mark.boardspec('efi-arm_app64') +@pytest.mark.buildconfigspec("rust_examples") +def test_ulib_rust_demo_efi_arm64(ubman): + """Test the Rust ulib demo EFI app under QEMU aarch64 with UEFI.""" + run_efi_rust_demo(ubman, 'qemu-system-aarch64', + '/usr/share/qemu-efi-aarch64/QEMU_EFI.fd', None, + ['--machine', 'virt', '-cpu', 'max']) + @pytest.mark.localqemu @pytest.mark.boardspec('efi-riscv_app64') @pytest.mark.buildconfigspec("examples")