mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-14 01:10:58 +00:00
core: update build instructions
This commit is contained in:
parent
917f5c6534
commit
b89d1db0e4
@ -5,8 +5,8 @@
|
|||||||
Run the following to checkout the project:
|
Run the following to checkout the project:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone --recursive https://github.com/trezor/trezor-core.git
|
git clone --recursive https://github.com/trezor/trezor-firmware.git
|
||||||
cd trezor-core
|
cd trezor-firmware/core
|
||||||
```
|
```
|
||||||
|
|
||||||
If you are building from an existing checkout, don't forget to use the following to refresh the submodules:
|
If you are building from an existing checkout, don't forget to use the following to refresh the submodules:
|
||||||
@ -19,33 +19,41 @@ Install the required packages, depending on your operating system.
|
|||||||
|
|
||||||
* __Debian/Ubuntu__:
|
* __Debian/Ubuntu__:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo apt-get install scons libsdl2-dev libsdl2-image-dev
|
sudo apt-get install scons libsdl2-dev libsdl2-image-dev
|
||||||
```
|
```
|
||||||
|
|
||||||
* __Fedora__:
|
* __Fedora__:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo yum install scons SDL2-devel SDL2_image-devel
|
sudo yum install scons SDL2-devel SDL2_image-devel
|
||||||
```
|
```
|
||||||
|
|
||||||
* __OpenSUSE__:
|
* __OpenSUSE__:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo zypper install scons libSDL2-devel libSDL2_image-devel
|
sudo zypper install scons libSDL2-devel libSDL2_image-devel
|
||||||
```
|
```
|
||||||
|
|
||||||
* __Arch__:
|
* __Arch__:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo pacman -S scons sdl2 sdl2_image
|
sudo pacman -S scons sdl2 sdl2_image
|
||||||
```
|
```
|
||||||
|
|
||||||
|
* __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__:
|
* __Mac OS X__:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
brew install scons sdl2 sdl2_image pkg-config
|
brew install scons sdl2 sdl2_image pkg-config
|
||||||
```
|
```
|
||||||
|
|
||||||
* __Windows__: not supported yet, sorry.
|
* __Windows__: not supported yet, sorry.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user