From a6303fa2249d7e4b8253fee7757f1de64864bb2d Mon Sep 17 00:00:00 2001 From: Yifei Zhan Date: Tue, 14 Jul 2026 14:22:57 +0000 Subject: [PATCH] Use packaged version of rustup for Debian-like Rustup has been packaged for Debian and is available for Debian stable (trixie). Installing it via apt ensures that it removes conflicting versions of rustc/cargo previously installed via the package manager, and gets updated with the rest of the system. It works OK for developing microkit. Signed-off-by: Yifei Zhan --- DEVELOPER.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/DEVELOPER.md b/DEVELOPER.md index eeacd5eeb..fb57c15b6 100644 --- a/DEVELOPER.md +++ b/DEVELOPER.md @@ -37,10 +37,7 @@ To build the documentation you also need On a Debian-like system you can do: - $ curl https://sh.rustup.rs -sSf | sh - $ rustup target add x86_64-unknown-linux-musl - $ rustup component add rust-src --toolchain stable-x86_64-unknown-linux-gnu - $ sudo apt install build-essential git cmake ninja-build \ + $ sudo apt install rustup build-essential git cmake ninja-build \ device-tree-compiler libxml2-utils \ pandoc texlive-latex-base texlive-latex-recommended \ texlive-fonts-recommended texlive-fonts-extra \ @@ -48,6 +45,8 @@ On a Debian-like system you can do: qemu-system-arm qemu-system-misc qemu-system-x86 \ gcc-riscv64-unknown-elf \ gcc-x86-64-linux-gnu + $ rustup target add x86_64-unknown-linux-musl + $ rustup component add rust-src --toolchain stable-x86_64-unknown-linux-gnu $ python3.12 -m venv pyenv $ ./pyenv/bin/pip install --upgrade pip setuptools wheel $ ./pyenv/bin/pip install -r requirements.txt