| Message ID | 20260220001926.2366140-1-sjg@u-boot.org |
|---|---|
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> 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=1771546780; bh=6na/f+abfIqvDihE2yLIEzSxPwVuKzaV20nknP921KY=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=WJDclwc2JSsdJbOZsltLCQQdbPmqBk2w1A+1k5nurjF2jkAy1QNYr1gBku+HshJyr dqwzFlglIUNG2sE1hKMpuUZ/0u776GKLOVc19m6Ob4xLAG8X7bv1Jjb1xKZJpYlinF IfEmNVoywT+HJXetnPpPTb9ZtTN2bOGGxwBdvBnI+5Lp+ywRHqjWqSveKMxrriUCNd YIo28LfhWf4Ek3BK5Us9Q2Q09XJOAgqyN1bGzJyfxZ3WhNzSp5U33OU3e/Xd5dOgtc BeU+p58uVrb8XR9PGXhbI7NNMro+PwnqAYvtc7GL/hIegLYEiBvIKZuSjEEhsbqHN+ Oafo2Y+b4vjNQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 50F0169C89 for <u-boot-concept@u-boot.org>; Thu, 19 Feb 2026 17:19: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 35_1jSw3Qk4M for <u-boot-concept@u-boot.org>; Thu, 19 Feb 2026 17:19:40 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771546780; bh=6na/f+abfIqvDihE2yLIEzSxPwVuKzaV20nknP921KY=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=WJDclwc2JSsdJbOZsltLCQQdbPmqBk2w1A+1k5nurjF2jkAy1QNYr1gBku+HshJyr dqwzFlglIUNG2sE1hKMpuUZ/0u776GKLOVc19m6Ob4xLAG8X7bv1Jjb1xKZJpYlinF IfEmNVoywT+HJXetnPpPTb9ZtTN2bOGGxwBdvBnI+5Lp+ywRHqjWqSveKMxrriUCNd YIo28LfhWf4Ek3BK5Us9Q2Q09XJOAgqyN1bGzJyfxZ3WhNzSp5U33OU3e/Xd5dOgtc BeU+p58uVrb8XR9PGXhbI7NNMro+PwnqAYvtc7GL/hIegLYEiBvIKZuSjEEhsbqHN+ Oafo2Y+b4vjNQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3C9D369C7C for <u-boot-concept@u-boot.org>; Thu, 19 Feb 2026 17:19:40 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771546777; bh=cYd66QXPPfy937fNz5WDcxz5hq8SQYZvqr0uvcyNw7Q=; h=From:To:Cc:Subject:Date:From; b=eZZ2Ey7VhfWFm+htCqtNP7HQBSch2AAajf14xRkxWCcErirr6+vmUNqxtdxNvp6GO HzdByInrGTJZ3BpQSsLVMW6e+Ifedo52oMErsH8Mw2eMXhCxtoNApX6DrejLcPftYt QxSwARE5u82ujQpPPNEbJCxoGr95jrLZfryDRSzzxMhokqByuHgJO5QlWT37vlN/l6 OW+KnSridayrQ1w1SLCkPU5EDtzkhHzoHQ5eSkD2DIQ894qTu8ngMbUJ4J+XN8cK5R e0iAqzxR9NuGCD6f+NmadIRw++QmiDHxFvrbRdHlYh8WRqT42JT99oe+Zlj4bsRLHx et+X5mRc2siFg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 6A95F69C7C; Thu, 19 Feb 2026 17:19:37 -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 FfUHfvpClFal; Thu, 19 Feb 2026 17:19:37 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771546773; bh=78IesXkJNpmgfdI4HJeHXg3oTrel8yJ+5xlhjca/fBk=; h=From:To:Cc:Subject:Date:From; b=otYsQLRFuS73vaT8AuJDcbgVnOPXE3LiL/w+lA4+e0CjZTPPobSlIaTOnjd1/pGxU MGGiSNevs/aOUOpaYKWgdqTfDFx+c4jFUwEIgjj0zkXn0W5BCW7I6vSj1uuBDP31Py BL6cX2Y9CVG4r+qlNbwMALlSfrl3rwvlYHKNEPiDc9DXdsf02cXHAtDN/V0ZZuGgQA VJ5STweHfBhqlZEdDk5GXhcOB5EjfwQ+mY4DNDLLCSifSNxK4goSzZ6m4s5Usxoeta A4Oig5JClFrthd+gDY1a9H4+LVBEWexSlwgDQ/IEcl3FhHiuG1vW7QA5jJAvJPSyOn tOyj5WwBetGNA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 1A50B69C08; Thu, 19 Feb 2026 17:19:33 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Thu, 19 Feb 2026 17:19:08 -0700 Message-ID: <20260220001926.2366140-1-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: JLEIFYNAE453O3QRVIPORSOON6KCUB3I X-Message-ID-Hash: JLEIFYNAE453O3QRVIPORSOON6KCUB3I 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 <simon.glass@canonical.com> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 00/13] ulib: Enable the Rust demo on more architectures List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/JLEIFYNAE453O3QRVIPORSOON6KCUB3I/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
ulib: Enable the Rust demo on more architectures
|
|
Message
Simon Glass
Feb. 20, 2026, 12:19 a.m. UTC
From: Simon Glass <simon.glass@canonical.com>
The Rust ulib demo currently only builds on x86_64. This series extends
it to x86 (32-bit), RISC-V 64 and ARM64, for both QEMU and EFI
targets.
Along the way it fixes a rustc jobserver warning (MAKEFLAGS leak) and
a linker crash on aarch64 caused by a Rust null-pointer-dereference
check emitting an undefined panic symbol.
Simon Glass (13):
ulib: x86: Disable regparm when Rust examples are enabled
disk: part_efi: Check the block size in part_test_efi()
ulib: Extract common example build rules for demo
ulib: Add Rust demo example
ulib: x86: Add Rust demo for qemu-x86_64_nospl
ulib: x86: Add 32-bit Rust target support
ulib: x86: Enable Rust demo for qemu-x86
ulib: riscv: Enable Rust demo for qemu-riscv64
ulib: riscv: Add Rust demo test for qemu-riscv64
ulib: x86: Enable Rust demo for efi-x86_app64
ulib: arm64: Enable Rust demo for efi-arm_app64
ulib: riscv: Enable Rust demo for efi-riscv_app64
ulib: arm64: Enable Rust demo for qemu_arm64
arch/x86/Kconfig | 11 +-
arch/x86/cpu/i386/setjmp.S | 2 +
arch/x86/dts/u-boot.dtsi | 18 ++++
configs/efi-arm_app64_defconfig | 1 +
configs/efi-riscv_app64_defconfig | 1 +
configs/efi-x86_app64_defconfig | 1 +
configs/qemu-riscv64_defconfig | 1 +
configs/qemu-x86_64_nospl_defconfig | 1 +
configs/qemu-x86_defconfig | 1 +
configs/qemu_arm64_defconfig | 1 +
disk/part_efi.c | 11 +-
examples/Kconfig | 13 +++
examples/ulib/rust_demo.rs | 55 ++++++++++
scripts/Makefile.ulib-example | 81 ++++++++++++---
test/py/tests/test_ulib.py | 155 ++++++++++++++++++++++++++++
15 files changed, 332 insertions(+), 21 deletions(-)
create mode 100644 examples/ulib/rust_demo.rs