From patchwork Fri Feb 20 00:19:15 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1909 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=1771546816; bh=TaYvj/vjk8olr3anNsY9AmF05B3JPi4oWY902ig2ZNg=; 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=Uzh9v1/ZjqRDv3NQvcJ4+8cJr3sqpdXRObwPkMqA40Ykul5/8cdT0cyGqFw9mDBfl u/M4ocwdloMstjLkPhVmu+1bKUYXLeIW6iLTz13oeBN9hbgC1dcD3k+7WvxWyWeSgL XCl5vaqFcmmyGRkfVKvCtzCJJvpdd4WvLTryhkOC2LxH/GQUEGKNpJFNl4m8x7vhXO 1SlYCHG4MLVqtWb+zjGsI6HaMrKQgKOhdudgQ5BLfK5eeQYTcjrv+7HwjYxCK2wOku x+OpixOKSJhWneF+P+YQdBWrnPcSpkFsZSiW7rOR7t4UU/9ReDahOSy/BzycYeHwZa aCjCWshYaD5LA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4646069C7C for ; Thu, 19 Feb 2026 17:20:16 -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 bHs8M0YJsKNb for ; Thu, 19 Feb 2026 17:20:16 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771546816; bh=TaYvj/vjk8olr3anNsY9AmF05B3JPi4oWY902ig2ZNg=; 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=Uzh9v1/ZjqRDv3NQvcJ4+8cJr3sqpdXRObwPkMqA40Ykul5/8cdT0cyGqFw9mDBfl u/M4ocwdloMstjLkPhVmu+1bKUYXLeIW6iLTz13oeBN9hbgC1dcD3k+7WvxWyWeSgL XCl5vaqFcmmyGRkfVKvCtzCJJvpdd4WvLTryhkOC2LxH/GQUEGKNpJFNl4m8x7vhXO 1SlYCHG4MLVqtWb+zjGsI6HaMrKQgKOhdudgQ5BLfK5eeQYTcjrv+7HwjYxCK2wOku x+OpixOKSJhWneF+P+YQdBWrnPcSpkFsZSiW7rOR7t4UU/9ReDahOSy/BzycYeHwZa aCjCWshYaD5LA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 33ADF69C89 for ; Thu, 19 Feb 2026 17:20:16 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771546814; bh=f3fY2TdqEoJvwyp20E5bweB36ipp+b6mVss2rT5BOiM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cvis7/nSct8AKkPIwQS8bJAMK1W8K7+lC4euUC9wp5oHubDPcz5NvkifAMCRN7Hpb 5NVbX08uxnK/tHAgCTy8MExw8j5kN2ieAP/zofPW8xWtRFpgYcsRkmYYLu1bFxFcec hUNYiJ6Pume5UF4uPxdW9Eyanm7vaJ/mNDMXxN+CGQiNWH9RvQDKeljI494ctQ7zLq PyNH6Axf+Txkjd5+FtWZQQ6ohhrmb8s4IFGl+2koQ5M86WLptervta/u09eQE/VB2w 9TWR2mnIYBQKhgZOZqHt52pkfE20csD3xxT8E4R0VbiOpHceIKsq3hNLk902bc5isc SN4uw0mU5t5Jw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 22B2369C0B; Thu, 19 Feb 2026 17:20:14 -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 QFb0UZc_RNT7; Thu, 19 Feb 2026 17:20:14 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771546810; bh=eZLv8Ypj75y8CJa6LCH1lB+w5Zaj0Tp/7FKoP/J7Kfs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FZuAiwB/ON0HMx2IW0scZPVlWZvizi2U1yed3gDzlhl4pnb1CDTd9rMkdbDULPkJF okhQFdKOZFcwGma3nNtMBHahnZtz7/+z7rdiJXz3igaBZVnugWx5Rt3ltfBrw8Dkei +PNVBTy9aRXCNip0jda187bIe7tQDApSNJBvqp7UYwiRzndJlll4WDcfkraLP8ggr9 z4m/Kn8Thranxn3FwMWcUh0Bs6ruwbjKlhmWH4eQhYuuvRO2QaUZAZPpgggWHepq2k uqe3CoexJ0rbvVppxnVUFzEonnAo0b/HDy8JgKbI9k9ClvAr5rqLBboHT+c63dfKzF Ov3t82K3CNb4w== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id CF74A69C7C; Thu, 19 Feb 2026 17:20:09 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Thu, 19 Feb 2026 17:19:15 -0700 Message-ID: <20260220001926.2366140-8-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: AKERXIZHMBF6H6OSLOKKFXOCQJOPIHTU X-Message-ID-Hash: AKERXIZHMBF6H6OSLOKKFXOCQJOPIHTU 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 07/13] ulib: x86: Enable Rust demo for qemu-x86 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 Enable CONFIG_RUST_EXAMPLES in qemu-x86_defconfig and add a pytest for the 32-bit Rust demo ROM, using the existing run_x86_rom_rust_demo() helper with qemu-system-i386. Co-developed-by: Claude Opus 4.6 Signed-off-by: Simon Glass --- configs/qemu-x86_defconfig | 1 + test/py/tests/test_ulib.py | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/configs/qemu-x86_defconfig b/configs/qemu-x86_defconfig index 2275ff9de1a..5e68c8283ec 100644 --- a/configs/qemu-x86_defconfig +++ b/configs/qemu-x86_defconfig @@ -15,6 +15,7 @@ CONFIG_GENERATE_PIRQ_TABLE=y CONFIG_GENERATE_MP_TABLE=y CONFIG_ULIB=y CONFIG_EXAMPLES=y +CONFIG_RUST_EXAMPLES=y CONFIG_FIT=y CONFIG_BOOTSTD_FULL=y CONFIG_BOOTSTAGE=y diff --git a/test/py/tests/test_ulib.py b/test/py/tests/test_ulib.py index 5ca46df0fe8..2090a06efbc 100644 --- a/test/py/tests/test_ulib.py +++ b/test/py/tests/test_ulib.py @@ -315,6 +315,13 @@ def run_x86_rom_rust_demo(ubman, qemu_binary): out = run_qemu_demo(cmd) assert_demo_output(out) +@pytest.mark.localqemu +@pytest.mark.boardspec('qemu-x86') +@pytest.mark.buildconfigspec("rust_examples") +def test_ulib_rust_demo_rom(ubman): + """Test the Rust ulib demo ROM image under QEMU x86.""" + run_x86_rom_rust_demo(ubman, 'qemu-system-i386') + @pytest.mark.localqemu @pytest.mark.boardspec('qemu-x86_64_nospl') @pytest.mark.buildconfigspec("rust_examples")