[PATCH 0/2] doc: gcc: Add missing build dependencies
From: Simon Glass <sjg@chromium.org> Add a few missing packages to the Debian dependency list and document the Rust toolchain needed for the ulib examples. Simon Glass (2): doc: gcc: Add acpica-tools and srecord to Debian dependencies doc: gcc: Document Rust toolchain for ulib examples doc/build/gcc.rst | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) -- 2.43.0 base-commit: e1c2d707a19641df66a1c60b66909cb99d2627d9 branch: doca
From: Simon Glass <sjg@chromium.org> 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 <sjg@chromium.org> --- 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 ~~~~~~~~~~ -- 2.43.0
From: Simon Glass <sjg@chromium.org> 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 <sjg@chromium.org> --- 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 <https://rustup.rs/>`_: + +.. 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 ------------ -- 2.43.0
participants (1)
-
Simon Glass