From patchwork Fri Feb 20 00:19:21 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1915 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=1771546840; bh=vyZSfk8RKxNCg4qjyYYGE/Sm5pLxDy66/ESerFfQ5oE=; 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=IquCneozPMPQEQsNsKb9xVCirrn9vss/UnQAUPxDJUj3Z0TEy2m8e3Ctc6PMwYU0W x71XnHKuUIMSm9FBmT9DcJjiakOG6aiZBcnFrLXodOdYTrWJB7o2pqkRAgGycnIra7 lbS/e9au6EtcMQI33XVWubXYhbkTK2lFXn+tesvx2Dxvahgv51aU2mK2NfzQdIacTr aAVQMlGNWc9mhH9pOc9ikohaOZFbGBb/ODbKsvnQk3xTn0kVKDw7fkhtNqAzcStmCM Bc2m1y1aifzCrl0ePvlKU+kpFgQJKSH4zwJ8+eFGGIbGLypXLq3x3pYck0bxU3l6oZ 7QE1yyxC8v4tg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4833F69C89 for ; Thu, 19 Feb 2026 17:20:40 -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 07wNMI0n5djB for ; Thu, 19 Feb 2026 17:20:40 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771546840; bh=vyZSfk8RKxNCg4qjyYYGE/Sm5pLxDy66/ESerFfQ5oE=; 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=IquCneozPMPQEQsNsKb9xVCirrn9vss/UnQAUPxDJUj3Z0TEy2m8e3Ctc6PMwYU0W x71XnHKuUIMSm9FBmT9DcJjiakOG6aiZBcnFrLXodOdYTrWJB7o2pqkRAgGycnIra7 lbS/e9au6EtcMQI33XVWubXYhbkTK2lFXn+tesvx2Dxvahgv51aU2mK2NfzQdIacTr aAVQMlGNWc9mhH9pOc9ikohaOZFbGBb/ODbKsvnQk3xTn0kVKDw7fkhtNqAzcStmCM Bc2m1y1aifzCrl0ePvlKU+kpFgQJKSH4zwJ8+eFGGIbGLypXLq3x3pYck0bxU3l6oZ 7QE1yyxC8v4tg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 362A869C7C for ; Thu, 19 Feb 2026 17:20:40 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771546838; bh=aZZxvcxSTVyTIHI50oBlcebrENCYbx41Uu9Q4OGDUec=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L5wR+nWQKfOYbc4kRNP4P6siFPvuc7bIAABdD/o4aO2rDVN9BVbxZyziTKk6Tw5sK XJ3Zd3Z2UGIvRVJZjfg4zVt1HlqlAk/W9UM0JOun43++2rluDz1UeZ9Tk8kmbB6r5j 0LsffJOnFXDL+XqaG9a5hkditPNHPAoMjV7M5bpvHSgzmchdHNWVJ9L14kNbhezEdR C6roHLl5Ywn1MPk46UX/QJ04LjOOZqb8KiB0PSIuNSA6BjzGopV7AFJImXEkpKjc84 ujtNR0jkVVjuLat5I0ySuVPLHa+6qTmD5vqODLVcygkRJEnU6ywwE7C2EHcqAJXUzk Lj32RXXQyqXyw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3716B69C0B; Thu, 19 Feb 2026 17:20:38 -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 CUN1bDcS1vSU; Thu, 19 Feb 2026 17:20:38 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771546833; bh=m4b4saG4BXYHG/g+uiRlOES5iD0uxM7Jy+pA+04bIm8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=drFjuGZpWF2976ECLR/E5lv0ymLCfokLeRjYG2L1TvsyjSpEeB6pHQHInpyb9CjkV orYqQ5R6PgchBwvPaQF8os4M2LZQ9y8+nVIj30+d3yuNLGv00SAzevXUd/1lE31BDa 5BWV0qBIQWm/1iODrPPOZpu5YDLJchk6GUmCfN3/JYQAqiCbKMDXvbFjwF+ANQcPxN 0C77EYWn0otNAON73qSzoZ7buJz3Z7f72nHevtuIj+F/djSP03h5elWTLgzWiAB+wa xy2skBe4gt3hXCtR7FOMZmdMv1/Eupg1TE0GRLUtalOl/zF3xNOGxcUoRryzachX5w HjMupo0HtQlTQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 85EBA69C7C; Thu, 19 Feb 2026 17:20:33 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Thu, 19 Feb 2026 17:19:21 -0700 Message-ID: <20260220001926.2366140-14-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: IX5EQ5VJ3Y6QOUS5JVND4V7GMFUFO3DW X-Message-ID-Hash: IX5EQ5VJ3Y6QOUS5JVND4V7GMFUFO3DW 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 13/13] ulib: arm64: Enable Rust demo for qemu_arm64 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_arm is defined as aarch64-unknown-none and the Rust source no longer generates undefined panic symbols, so the Rust demo can now build and link for the ARM64 QEMU target. Enable CONFIG_RUST_EXAMPLES in qemu_arm64_defconfig and add a QEMU boot test that launches rust-demo.bin under qemu-system-aarch64. Co-developed-by: Claude Opus 4.6 Signed-off-by: Simon Glass --- configs/qemu_arm64_defconfig | 1 + test/py/tests/test_ulib.py | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/configs/qemu_arm64_defconfig b/configs/qemu_arm64_defconfig index 507c08bc514..5c25bd313c6 100644 --- a/configs/qemu_arm64_defconfig +++ b/configs/qemu_arm64_defconfig @@ -78,3 +78,4 @@ CONFIG_UTHREAD=y CONFIG_UNIT_TEST=y CONFIG_ULIB=y CONFIG_EXAMPLES=y +CONFIG_RUST_EXAMPLES=y diff --git a/test/py/tests/test_ulib.py b/test/py/tests/test_ulib.py index 65485118812..f4234253b7d 100644 --- a/test/py/tests/test_ulib.py +++ b/test/py/tests/test_ulib.py @@ -392,6 +392,13 @@ def test_ulib_demo_arm64(ubman): """Test the ulib demo binary under QEMU ARM64.""" run_bios_demo(ubman, 'qemu-system-aarch64', ['-cpu', 'cortex-a57']) +@pytest.mark.localqemu +@pytest.mark.boardspec('qemu_arm64') +@pytest.mark.buildconfigspec("rust_examples") +def test_ulib_rust_demo_arm64(ubman): + """Test the Rust ulib demo binary under QEMU ARM64.""" + run_bios_rust_demo(ubman, 'qemu-system-aarch64', ['-cpu', 'cortex-a57']) + @pytest.mark.localqemu @pytest.mark.boardspec('qemu-riscv64') @pytest.mark.buildconfigspec("examples")