summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeroBurner <pyro4hell@gmail.com>2021-09-10 19:39:58 +0200
committerReinhold Gschweicher <pyro4hell@gmail.com>2021-10-11 21:46:06 +0200
commit55ff9b0c81ff32caaa18069a26057ad18589d022 (patch)
tree8b98f1f8435b1fc8e7e42db7b55fa368c556722a
parent91b2e50252f488b490ce6659293d633b029c34c7 (diff)
Add python packages click and cryptography to build instructions
The script `tools/mcuboot/imgtool/main.py` imports the python packages `click` and `cryptography` to create the target `pinetime-mcuboot-app`. Add it tothe build instructions, as it was not installed on my system. https://github.com/JF002/InfiniTime/blob/6f9f0e8b0e42a5526d47ca664534fb6b0ccb6ace/tools/mcuboot/imgtool/main.py#L19 https://github.com/JF002/InfiniTime/blob/6f9f0e8b0e42a5526d47ca664534fb6b0ccb6ace/tools/mcuboot/imgtool/keys/__init__.py#L19 Also add the commands to install the python requirements into a python venv virtual environment.
-rw-r--r--doc/buildAndProgram.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/buildAndProgram.md b/doc/buildAndProgram.md
index e97bb30d..5b22014e 100644
--- a/doc/buildAndProgram.md
+++ b/doc/buildAndProgram.md
@@ -3,7 +3,14 @@
To build this project, you'll need:
- A cross-compiler : [ARM-GCC (9-2020-q2-update)](https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads/9-2020-q2-update)
- The NRF52 SDK 15.3.0 : [nRF-SDK v15.3.0](https://developer.nordicsemi.com/nRF5_SDK/nRF5_SDK_v15.x.x/nRF5_SDK_15.3.0_59ac345.zip)
- - The `cbor` and `intelhex` modules for Python 3
+ - The Python 3 modules `cbor`, `intelhex`, `click` and `cryptography` modules for the `mcuboot` tool (see [requirements.txt](../tools/mcuboot/requirements.txt))
+ - To to keep the system clean a python virtual environment (`venv`) can be used to install the python modules into
+ ```sh
+ python -m venv .venv
+ source .venv/bin/activate
+ python -m pip install wheel
+ python -m pip install -r tools/mcuboot/requirements.txt
+ ```
- A reasonably recent version of CMake (I use 3.16.5)
## Build steps