From patchwork Thu Feb 19 19:21:24 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1900 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=1771528923; bh=xuSMVsT3nIyiUF8J+vycgdjDj9hB/+QfLvpPaljbocg=; 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=W0fOF64kVJ9Ym5qpG4KLH3g4L1Y5pzMg1SoTu/I2S5Zhc1sveBbycwhmEoQ9s7OSe qY1YBicMi/UEIle4zSYwDkwyZFt0+tapBvYFpAGAKavKIkCASEpYaexvhZqv7oizRh YVYJ4vqcqM+MRvnRp1VVh1jGHhJSi88RmVUBy6/UZoVL+LKYzAT6QwVnrwTI/TC5fB KZixtzCkLaM6oSDtnnsyCuqMjLHMO3l0XEldNXNbd7Z6uGNXPPPiNJzKrJmZH/Yww0 vkMSw8kksve+7agR1P902CejWQZG03wpEyCo93zS8EeyL068sIu6y/jrVnD8BI0sJW 5v4tQ9xuv2jRg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 94F4369C74 for ; Thu, 19 Feb 2026 12:22:03 -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 3Yix9KFdKyO4 for ; Thu, 19 Feb 2026 12:22:03 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771528923; bh=xuSMVsT3nIyiUF8J+vycgdjDj9hB/+QfLvpPaljbocg=; 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=W0fOF64kVJ9Ym5qpG4KLH3g4L1Y5pzMg1SoTu/I2S5Zhc1sveBbycwhmEoQ9s7OSe qY1YBicMi/UEIle4zSYwDkwyZFt0+tapBvYFpAGAKavKIkCASEpYaexvhZqv7oizRh YVYJ4vqcqM+MRvnRp1VVh1jGHhJSi88RmVUBy6/UZoVL+LKYzAT6QwVnrwTI/TC5fB KZixtzCkLaM6oSDtnnsyCuqMjLHMO3l0XEldNXNbd7Z6uGNXPPPiNJzKrJmZH/Yww0 vkMSw8kksve+7agR1P902CejWQZG03wpEyCo93zS8EeyL068sIu6y/jrVnD8BI0sJW 5v4tQ9xuv2jRg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 7B6A569C73 for ; Thu, 19 Feb 2026 12:22:03 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771528921; bh=5RF4g3CEWA+uUlci73izeeLyv0TatmGmw4TaAGrllRs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WBTxuowafbzv7ehaR2TTeee691FdmLXPQSO2jIAFJdB3Hgh9fpoeLbHarTl0MEs4d mXy1t+Px1IeGmV3iCXAtVDshOtLeMvkKEnHnwKcpW5Z/zGns71PCjoTZvJf/0P5Om1 94mxTwkeU3x+z65HM3IwKrKcNZv2EcCUA/ZDMtutIskhIqt+Iec/bdJK9qzwRtwy0U eMw2iaiP08fXMIcPbuve568jQ7cl/cWgp4/9vLW8D70Zz6T/DTlAx2IX85wXEPixpi m11AQXx36CMOozv8ABDHHAHtRHJdY8uaLwtkWop5LqFz1nsacDoW7WcXNqTveUmV5p L2oz6KhFHa2eQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 604C269C73; Thu, 19 Feb 2026 12:22:01 -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 o_pbkcGbYn8j; Thu, 19 Feb 2026 12:22:01 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1771528917; bh=DPdQPby3hzMiIfB2bvGlFMWbOdyh8zh7eEcIJA+K/iI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WKE6/ZIbQbNDWdQ5i2YJeHYGoFLuK6/JLSyVNoavTRUSarJeQMiuhuKXY3EsRGLw0 GgyWchz4c4jtMhYPEd5CTC5wEDqzKpm+7+jY9pgZAty5sSo+N2u4S+Oss9uYvRriQa 6L+MuaNrsm1avjmZ53H/owHk9kLZ5DOfm1PD8jTUbOmkBONRqoiIHEkZ3x3e0OoJsv I5CVL6lGppMgXf+JnMhX/dhcOX/u7mu/1qIVzowtxtRCoSu7A8nU/YRi5j8F3Oq4yZ OjTghuBPJMCqPRAm9gtu6iZf1vmTbQWLcJnVdRtM2nXDI0Wa1STYcwzEZleSmDZxmv lX9EcZPJaWJ2w== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id DA1C269C01; Thu, 19 Feb 2026 12:21:56 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Thu, 19 Feb 2026 12:21:24 -0700 Message-ID: <20260219192130.737116-4-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260219192130.737116-1-sjg@u-boot.org> References: <20260219192130.737116-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 3UX2ITFMCI4FGPOBEQHXZLGMB6ZWJYGN X-Message-ID-Hash: 3UX2ITFMCI4FGPOBEQHXZLGMB6ZWJYGN 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 3/5] docker: Install Rust toolchain for ulib examples 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 ulib Rust demo requires cross-compilation targets that are not present in the CI Docker image. Install rustup with the minimal profile and add the four targets needed by the Rust demo builds: - i686-unknown-linux-gnu (qemu-x86) - x86_64-unknown-none (qemu-x86_64, efi-x86_app64) - riscv64gc-unknown-none-elf (qemu-riscv64, efi-riscv_app64) - aarch64-unknown-none (efi-arm_app64) Co-developed-by: Claude Opus 4.6 Signed-off-by: Simon Glass --- tools/docker/Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index b804df03e16..71932e5433c 100644 --- a/tools/docker/Dockerfile +++ b/tools/docker/Dockerfile @@ -315,6 +315,16 @@ RUN echo uboot ALL=NOPASSWD: ALL > /etc/sudoers.d/uboot RUN useradd -m -U uboot USER uboot:uboot +# Install Rust toolchain with cross-compilation targets for ulib examples +RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \ + sh -s -- -y --default-toolchain stable --profile minimal && \ + . $HOME/.cargo/env && \ + rustup target add \ + aarch64-unknown-none \ + i686-unknown-linux-gnu \ + riscv64gc-unknown-none-elf \ + x86_64-unknown-none +ENV PATH="/home/uboot/.cargo/bin:${PATH}" # Populate the cache for pip to use. Get these via wget as the # COPY / ADD directives don't work as we need them to.