What changed, and why it matters
This commit only updates developer documentation for building the Trezor firmware. It simplifies and reorganizes build instructions, removes duplicated setup steps, and points readers to a shared setup guide. There are no code changes and no security relevance.
No security action needed. Treat as a routine documentation cleanup.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit modifies four Markdown documentation files under docs/core/build/ and docs/core/emulator/. It refactors build instructions to centralize nix-shell and uv setup in index.md, removes redundant requirement sections, and makes minor formatting edits. No source code, build scripts, cryptographic, or firmware logic is changed.
Changed components
docs/core/build/embedded.mddocs/core/build/emulator.mddocs/core/build/index.mddocs/core/emulator/index.mdInspect captured patch +22 / −86
diff --git a/docs/core/build/embedded.md b/docs/core/build/embedded.md
index 890e18aa..d8078153 100644
--- a/docs/core/build/embedded.md
+++ b/docs/core/build/embedded.md
@@ -1,49 +1,15 @@
# Build instructions for Embedded (ARM port)
-
-First, clone the repository and initialize the submodules as defined [here](index.md).
-
-Then, you need to install all necessary requirements.
-
-## Requirements
-
-The recommended way to control the requirements across all systems is to install **nix-shell**, which automatically installs all requirements in an isolated environment using the `shell.nix` configuration file located in the repository root.
-
-To install nix-shell, follow the instructions [here](https://nix.dev/manual/nix/2.18/installation/installing-binary).
-
-Once nix-shell is installed, go to the **repository root** and run:
-
-```sh
-nix-shell
-```
+Complete the setup (nix-shell + uv) described in [index.md](index.md) before proceeding.
### Working with Developer Tools
-If you need to work with embedded development tools such as OpenOCD, gcc-arm-embedded, gdb, etc., you can run nix-shell with the following argument to enable additional development tools:
+If you need embedded development tools such as OpenOCD, gcc-arm-embedded, or gdb, run nix-shell with:
```sh
nix-shell --arg devTools true
```
-### Manual Requirements Installation
-
-If you prefer to install the requirements manually, look into the shell.nix file where you can find a list of requirements with versions.
-
-## Python Dependencies
-
-All Python dependencies and packages are handled with `uv`. If you work in nix-shell, `uv` will be installed automatically. Then, you can install the dependencies and run the `uv` shell in the repository root.
-
-```sh
-uv sync
-source .venv/bin/activate
-```
-
-**Note: The recommended way of initializing your environment is to first run nix-shell and then initialize the `uv` shell within it.**
-
-## Protobuf Compiler
-
-The protocol buffer compiler `protoc` is needed to (unsurprisingly) compile protocol buffer files. [Follow the installation instructions for your system](https://grpc.io/docs/protoc-installation/).
-
## Rust
Install the appropriate target with [`rustup`](https://rustup.rs/):
diff --git a/docs/core/build/emulator.md b/docs/core/build/emulator.md
index 262ba3f9..247e3f2e 100644
--- a/docs/core/build/emulator.md
+++ b/docs/core/build/emulator.md
@@ -3,13 +3,11 @@
> **Hint**:
Using emulator as described here is useful during firmware development. If you intend to use the emulator without modifying the firmware, you might be looking for [Trezor User Env](https://github.com/trezor/trezor-user-env/tree/master).
-First clone, initialize submodules, install `uv` and enter the `uv` shell as
-defined [here](index.md). **Do not forget you need to be in a `uv` shell
-environment!**
+Complete the setup (nix-shell + uv) described in [index.md](index.md) before proceeding.
-## Dependencies
+### Manual Requirements Installation
-Install the required packages, depending on your operating system.
+If you prefer not to use nix-shell, install the following dependencies manually:
* __Debian/Ubuntu__:
@@ -35,43 +33,24 @@ sudo zypper install scons libSDL2-devel libSDL2_image-devel
sudo pacman -S scons sdl2 sdl2_image clang-devel
```
-* __NixOS__:
-
-There is a `shell.nix` file in the root of the project. Just run the following **before** entering the `core` directory:
-
-```sh
-nix-shell
-```
-
* __Mac OS X__:
-_Consider using [Nix](https://nixos.org/download.html). With Nix all you need to do is `nix-shell`._
-
-For other users:
-
```sh
brew install scons sdl2 sdl2_image pkg-config llvm
```
* __Windows__: not supported yet, sorry.
-## Protobuf Compiler
-
-The protocol buffer compiler `protoc` is needed to (unsurprisingly) compile protocol buffer files. [Follow the installation instructions for your system](https://grpc.io/docs/protoc-installation/).
-
-## Rust
+You will also need the protocol buffer compiler `protoc`. [Follow the installation instructions for your system](https://grpc.io/docs/protoc-installation/).
-You will require Rust and Cargo. The currently supported version is 1.96 nightly. The
-recommended way to install both is with [`rustup`](https://rustup.rs/). Make sure you
-are up to date:
+And Rust (currently 1.96 nightly) via [`rustup`](https://rustup.rs/):
```sh
rustup default nightly
rustup update
```
-The [bindgen crate](https://rust-lang.github.io/rust-bindgen/requirements.html)
-requires libclang for generating MicroPython FFI.
+The [bindgen crate](https://rust-lang.github.io/rust-bindgen/requirements.html) requires libclang for generating MicroPython FFI.
## Build
diff --git a/docs/core/build/index.md b/docs/core/build/index.md
index 65eb73f2..e1c108cb 100644
--- a/docs/core/build/index.md
+++ b/docs/core/build/index.md
@@ -2,40 +2,31 @@
_Building for Trezor Model One? See the [legacy](../../legacy/index.md) documentation._
-## New Project
+## Setup
+
+Install [Nix](https://nix.dev/manual/nix/stable/installation/installing-binary) (provides the `nix-shell` command). All system dependencies are managed by it.
+
+We use [uv](https://docs.astral.sh/uv/) to manage Python dependencies. It is installed automatically inside nix-shell.
+
+**The recommended setup is to first enter nix-shell, then initialize the `uv` environment within it.**
-Run the following to checkout the project:
+## New Project
```sh
git clone --recurse-submodules https://github.com/trezor/trezor-firmware.git
cd trezor-firmware
+nix-shell
uv sync
-cd core
+source .venv/bin/activate
```
-After this you will need to install some software dependencies based on what flavor
-of Core you want to build. You can either build the Emulator or the actual firmware
-running on ARM devices. Emulator (also called _unix_ port) is a unix version that can
-run on your computer. See [Emulator](../emulator/index.md) for more information.
-
## Existing Project
-If you are building from an existing checkout, do not forget to refresh the submodules
-and sync the `uv` environment:
-
```sh
git submodule update --init --recursive --force
-uv sync
-```
-
-## Uv
-
-We use [uv](https://docs.astral.sh/uv/) to install and track Python dependencies. You
-need to install it, sync the packages and then use `uv run` for every command or
-activate the `uv` environment before typing any commands. **The commands in this section
-suppose you are in a `uv` environment!**
-
-```sh
+nix-shell
uv sync
source .venv/bin/activate
```
+
+After completing setup, see [Emulator](emulator.md) or [Embedded](embedded.md) build instructions.
diff --git a/docs/core/emulator/index.md b/docs/core/emulator/index.md
index a5f6c585..40d12a5b 100644
--- a/docs/core/emulator/index.md
+++ b/docs/core/emulator/index.md
@@ -1,6 +1,6 @@
# Emulator
-> :bulb: **Hint**:
+> **Hint**:
Using emulator as described here is useful during firmware development. If you intend to use the emulator without modifying the firmware, you might be looking for [Trezor User Env](https://github.com/trezor/trezor-user-env/tree/master).
Emulator is a unix version of Core firmware that runs on your computer.
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.