Skip to content

Commit 76e518f

Browse files
committed
[ot] scripts/opentitan: add Python requirement file
Signed-off-by: Emmanuel Blot <eblot@rivosinc.com>
1 parent beed80d commit 76e518f

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

docs/opentitan/tools.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
All the OpenTitan tools and associated files are stored in the `scripts/opentitan` directory.
44

5+
## Installation
6+
7+
Most tools are implemented in Python language. They require Python 3.10 or newer.
8+
9+
It is recommended to install Python dependencies using a [virtual environment](https://virtualenv.pypa.io).
10+
11+
To install Python dependencies, use:
12+
```sh
13+
pip3 install -r scripts/opentitan/requirements.txt
14+
```
15+
516
## Execution wrapper
617

718
Launching a QEMU VM with the right option switches may rapidly become complex due to the number

scripts/opentitan/requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Python requirements
2+
pylint>=3.3.3
3+
pyyaml>=6
4+
hjson>=3.1
5+
pyelftools>=0.30
6+

0 commit comments

Comments
 (0)