From dabf6b5d835ff8bba36764d3db4dcc07f826dc3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonny=20Sv=C3=A4rd?= Date: Tue, 22 Jun 2021 16:21:14 +0200 Subject: Add a requirements.txt to scripts folder Some scripts require external modules (from pip). Install using: python -m pip install -r requirements.txt NOTE: On some distributions python2 is still default, so to use python 3 it might be necessary to replace python on the above command line with python3 Update README.md to mention the python requirements. Change-Id: Ia7581c874570d92846095775f680238328f651b4 --- README.md | 12 ++++++++++-- requirements.txt | 2 ++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 requirements.txt diff --git a/README.md b/README.md index ff92bbd..fb93008 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,16 @@ downloaded from the Ecosystem page at ### Building -Building with default settings requires CMake for the configuration and make for -building. This will produce an elf file which can be run on the FVP. +Building with default settings requires CMake for the configuration, make for +building and Python 3 for helper scripts. + +Before the first time building, install the required Python modules. + +``` +$ pip install -r requirements.txt +``` + +The following commands will produce an elf file which can be run on the FVP. ``` $ cmake -B build/corstone-300 targets/corstone-300 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..5e03a5c --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +numpy +pyelftools -- cgit v1.2.1