From patchwork Mon Mar 16 18:46:47 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 2029 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=1773686831; bh=+InOgBROM+1jkzaH0WRs3aEOpBxFJDvDvjuc3jlJMiY=; 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=EcmZNXJt013PzTEzUAVZx6Q5oTfkZTUssd/Schx407CiChXJkRYKtAaG9O3Z1LfQX KFcbOcql30t3W2iGPU5dfwCDkSq7zd4K0NNAnnlL2sbLqjeftYv+bDOxWx37qnsIMt DnaY0SmJ2GzdOtecIwP/inwDQNNVRnFsU895nqmQDhb9PQ6S6vDFPmf7imwVLiE2DT a/5hHWTZwMScoFQ/0SUgVOZ/VRerwhuFXyBjwUpTs3E5hSGOtbvsuHgA7bxCZbkKYU BN9HvOX4UAGZfFUMzTpN0Tjy6UuNoFkAiSLi1Twh1ZTfoX4sWCfvI2JZtSvol+SaSr QDL//aCwTqIJw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 215FC69FF6 for ; Mon, 16 Mar 2026 12:47:11 -0600 (MDT) 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 bAk024N7iDf6 for ; Mon, 16 Mar 2026 12:47:11 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1773686829; bh=+InOgBROM+1jkzaH0WRs3aEOpBxFJDvDvjuc3jlJMiY=; 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=TW23FjXyftHgeFw06MFQPWpllU1xOi13uGrkzBfFWuVagRIEvM//ouI+PFp8/PJzb 7be7kbkhq+VkWTofRuOqBVKOZcND1vnBf5QVlrIXSVFP2apj0opZz7rQ6LbSvv7MGC iRbZlzK1aqT+sYuVeLF5JsnXZAaoCPkoeXwCyALJOnc5qo38y2kUrnv9Uv9XNakZn6 l1vMwLr98JEbdC3YXz3eA8DbXtLkexwgykmqLfcbmLn4I87b28E8RH8tQYPrDu9EzW RBgUwUliWASu0hzySDZSXGP42Ht/jckOmx3lv4fApPZzZFGF0xCQyEiYaMvub17Jxw 3bc9xfRvOsmEg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id E69766A08D for ; Mon, 16 Mar 2026 12:47:09 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1773686827; bh=gD2a/kZaoZRzUKUsWVfQwTPfDY4z14aIZGsBvGX7oxM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=koc7Uxp14b8D1ogTT0HNEi/Ac85ftxmRty/OCReWa+4Ppqgdcz50WiY8fehKG3MrL o4/dTCfEE9PD2CpJ4A5SGxd/bkgFw3eemMsg3FLSIYb4YRtHZkyiHCjt80UdSZFMUy 3GVDNeAL5OcWIoa0ZRPnxba1k1z08K2v5bsOp29JVu4ubxG0lkN+I8VvLGvnChBuBf zwJciSJ/KGeltWscYc4e95cmoAlBSNbKRWfs+I2k80LUbdTJmdpJIyUeQkMi7Ten7d J0Ha4BjPq2pNV2FayIOrfr1rjwDAE0+F4YHroA66WsmzYgLG2fYikFCt7NgX9I50HQ QrQIWQQXHLxUg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id E27296A07C; Mon, 16 Mar 2026 12:47:07 -0600 (MDT) 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 HJjkv4jE1LLW; Mon, 16 Mar 2026 12:47:07 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1773686827; bh=LiuPZksd0R5APUlHobE4R01WMbRZ5hbmOqs2Kur3bhs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mxr0Q3oXKSbZaJXChzSgR89OGKfYixnSZyp3lkzo/PKa3z/DzToobq3ZbQZ2ODcHV UjTYHkvLdKUnC4eoSe5ZCTxDqOzcXF/TeIVq7APq5mK7hWmBsvLoGpFc+aaLsC9bqP W/kqKLsLmueyHHmcPe6zVbQxi0zdK3W1Gh5W91QINfi4JUjN7uxSJ5F1sx3G+dAy1n wJ0qMY0mDqtSaJ2vGHhDSJZNyHncrzLHhyNyh1qncQCtv/42ZgTxJOZjyWn29LeaWL /J5S8dZrD3LKQhWxg1j2ibu9SuWotua+skVEdKrw3zZJAkWAboPml6uEGKY580AVly GNblTY2QFH6Pw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 7B03F69FF6; Mon, 16 Mar 2026 12:47:07 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Mon, 16 Mar 2026 12:46:47 -0600 Message-ID: <20260316184650.3881337-2-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260316184650.3881337-1-sjg@u-boot.org> References: <20260316184650.3881337-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: B7HBKGLKSWZVSGWTCV76MWBNDR3BCZRG X-Message-ID-Hash: B7HBKGLKSWZVSGWTCV76MWBNDR3BCZRG 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 X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 1/2] doc: gcc: Add acpica-tools and srecord to Debian dependencies 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 x86 boards need iasl (from acpica-tools) for ACPI table compilation. Renesas R-Car and MIPS Boston boards use srec_cat (from srecord) to build .scif and .mcs firmware images. Signed-off-by: Simon Glass --- doc/build/gcc.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/build/gcc.rst b/doc/build/gcc.rst index 1fef718ceec..ae1168b20ff 100644 --- a/doc/build/gcc.rst +++ b/doc/build/gcc.rst @@ -23,7 +23,7 @@ Depending on the build targets further packages maybe needed .. code-block:: bash - sudo apt-get install bc bison build-essential coccinelle \ + sudo apt-get install acpica-tools bc bison build-essential coccinelle \ device-tree-compiler dfu-util efitools flex gdisk graphviz imagemagick \ libgnutls28-dev libguestfs-tools libncurses-dev \ libpython3-dev libsdl2-dev libssl-dev lz4 lzma lzma-alone openssl \ @@ -31,7 +31,7 @@ Depending on the build targets further packages maybe needed python3-pkg-resources python3-pycryptodome python3-pyelftools \ python3-pytest python3-pytest-xdist python3-sphinxcontrib.apidoc \ python3-sphinx-rtd-theme python3-subunit python3-testtools \ - python3-venv swig uuid-dev + python3-venv srecord swig uuid-dev SUSE based ~~~~~~~~~~ From patchwork Mon Mar 16 18:46:48 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 2030 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=1773686833; bh=qhB3T5etZKu2KV4qMhKp5yetCLVW77uPy+jRU9wk/tM=; 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=N9eWVUYlNopIUH0G0p3RzSACyvaNg8woEbMQBm2/avKUVWO7JH9G5KsG5EvHxmeu8 Q40BsqTFtFysvktgdanya/u7LfDSxwSojgerOgkbqk0IALpbIUa8dwoggm/Uscak0s hahFDN8aW3obVat4s0bGu+VbneEVO8Bv8X4JhNLeYfO+imkysIevWu/9cBTq+tK70+ PdjSaNlRk7bj1hGPc2poQWtehMfZETd9xZgosjDPoBjcVp12hA8IFtSjclJ7CPBFBB /9CRwdtGMKrXPAXZx/fIl9NbPui0N3SMoe6FT9U4XU4e0wINvS6gvbk4pY/eDpAisW TE2eU0vIDOr/g== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 6C1666A08D for ; Mon, 16 Mar 2026 12:47:13 -0600 (MDT) 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 1sJXSMqtppYP for ; Mon, 16 Mar 2026 12:47:13 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1773686831; bh=qhB3T5etZKu2KV4qMhKp5yetCLVW77uPy+jRU9wk/tM=; 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=kpBnirr7yJboL6jk1yoy6rbscT/JkFK8Dvl6VxLPO3jH6EvXTDKY8xKoFyFcxlL0w BFkmpmz8u+V/fCvT8ZT2IePonZNBRP/VloYYBWtnmIBxPxqPPSq3kQrFj//guxphyN Sd/BZPR2M6bWsi7MwMHSV2RIWFKwc2W0nc7bxr4coD4BHZu6IoYpQ+ASSfy1c/zY48 +oFKLJix7hFY2q0i7f63nIFOsqLkIMFcYjw1disOxUXP3P5bkalxM+DiXqbmNjfVLZ fMEE2GL8TRDf1Wys1/tfkzDkeP/7KxCyupOBjCF4QHagK7K0htLDIi5uUZzs3W2fBR p3NTJeeeCvPFg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 949AA6A0B0 for ; Mon, 16 Mar 2026 12:47:11 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1773686830; bh=44OSsCkGLz4tPFLKRhBWgQoGrO3V3CVk6cOG4KDC5mo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OaZUy1gvvj6YhacXjIa1+XNbVmcWOtWUkEAkGPIIXj5Ij+nEvspmZAwVT+SEoSaWL GwABQ/g0bKHVzRQmsfbWZ5cDlG0W+3vyCjz1CKIMs0FhQTj4uDBuXSR4fWuynq5Co6 65bm/Gd5Kigz0NouyCb+XDIDFvkzoUKbjpDpKzwiVPs5XEaQTVDk7zLIp4HxuUqBny TLj1M64SVyajbjr7meMadwXpUHrYnAWjXp33YvTUZW8O24lm2yXfn7HYSAEgnb12c0 W9PWY+t4madnzxH/sUpdmohHVFrLzZkfvE3826KRXqLjODFOMkklIXkvjtXcgo61UY 7iVdnHD4rhYVA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id F3CCD6A0B0; Mon, 16 Mar 2026 12:47:10 -0600 (MDT) 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 OFZjkse52iQE; Mon, 16 Mar 2026 12:47:10 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1773686828; bh=5MVMjHlGJlBpPUG70IgZBvVI7vKb12P6QhQ22drLrrA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sFCd9PZ4ELlPFAms73nm5lBOHI3pl+8ljwLqz4voL3XL3N2cEBlNzy6cSUah1IumB YupQiHUCdWLgmVP9Vf+ocX2Vo7Wq+/SANXJymvK8jy6cPIHuQwmjIvEc96zJcXzEBa UUjwWKK3K2T7W00filOslEftGGxNJCdwkUAg0fcdMEJDYS0F0+kOIgEx0YPRp1iOh8 KrKQ8tPDzUSOcO8Es6cJqb9YZNjPoQ8DpmQnFoZRuudiz4dDAVd4eMw1bV5gNSuVIu p2YlsQC5aa08qpSX7U3TVXg4kz7j/UeOO72S4NGZSsBd1cX8V+Zz4ZmdN7tReV5Nrb MhlWizJFpFcCw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 3328069FF6; Mon, 16 Mar 2026 12:47:08 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Mon, 16 Mar 2026 12:46:48 -0600 Message-ID: <20260316184650.3881337-3-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260316184650.3881337-1-sjg@u-boot.org> References: <20260316184650.3881337-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: XRYJ4P2FDV5MZSXFAKBPLSEUTFHCKFTA X-Message-ID-Hash: XRYJ4P2FDV5MZSXFAKBPLSEUTFHCKFTA 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 X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 2/2] doc: gcc: Document 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 Boards with CONFIG_ULIB automatically build the Rust examples in examples/rust/ when cargo is available. Document how to install the Rust toolchain via rustup. Signed-off-by: Simon Glass --- doc/build/gcc.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc/build/gcc.rst b/doc/build/gcc.rst index ae1168b20ff..847b39b0d7b 100644 --- a/doc/build/gcc.rst +++ b/doc/build/gcc.rst @@ -218,6 +218,20 @@ Important ones are * clean - remove most generated files but keep the configuration * mrproper - remove all generated files + config + various backup files +Rust examples +~~~~~~~~~~~~~ + +Boards with ``CONFIG_ULIB`` (sandbox, qemu_arm64, qemu-x86, qemu-riscv64 and +others) automatically build the Rust examples in ``examples/rust/`` if +``cargo`` is found. The recommended way to install the Rust toolchain is via +`rustup `_: + +.. code-block:: bash + + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh + +If ``cargo`` is not installed the Rust examples are silently skipped. + Installation ------------