Joakim Bech | 8e5c5b3 | 2018-10-25 08:18:32 +0200 | [diff] [blame] | 1 | .. _prerequisites: |
| 2 | |
| 3 | ############# |
| 4 | Prerequisites |
| 5 | ############# |
| 6 | We believe that you can use any Linux distribution to build OP-TEE, but as |
| 7 | maintainers of OP-TEE we are mainly using Ubuntu-based distributions and to be |
Sander Visser | b7d2f98 | 2020-04-21 12:08:52 +0200 | [diff] [blame] | 8 | able to build and run OP-TEE there are a few packages that needs to be available. |
| 9 | |
| 10 | First enable installation of i386 architecture packages and update the package |
| 11 | managers database. |
| 12 | |
| 13 | .. code-block:: bash |
| 14 | |
| 15 | $ sudo dpkg --add-architecture i386 |
| 16 | $ sudo apt-get update |
| 17 | |
| 18 | Install the following packages regardless of what target you will use in the end. |
Joakim Bech | 8e5c5b3 | 2018-10-25 08:18:32 +0200 | [diff] [blame] | 19 | |
| 20 | .. code-block:: bash |
| 21 | |
| 22 | $ sudo apt-get install android-tools-adb android-tools-fastboot autoconf \ |
Jens Wiklander | 035f0b0 | 2019-06-24 10:41:23 +0200 | [diff] [blame] | 23 | automake bc bison build-essential ccache cscope curl device-tree-compiler \ |
Joakim Bech | 8e5c5b3 | 2018-10-25 08:18:32 +0200 | [diff] [blame] | 24 | expect flex ftp-upload gdisk iasl libattr1-dev libc6:i386 libcap-dev \ |
| 25 | libfdt-dev libftdi-dev libglib2.0-dev libhidapi-dev libncurses5-dev \ |
| 26 | libpixman-1-dev libssl-dev libstdc++6:i386 libtool libz1:i386 make \ |
Victor Chong | d76b6d0 | 2019-10-16 06:25:28 +0100 | [diff] [blame] | 27 | mtools netcat python-crypto python3-crypto python-pyelftools \ |
Christina Quast | cfc4ff3 | 2020-02-11 21:14:35 +0100 | [diff] [blame] | 28 | python3-pycryptodome python3-pyelftools python-serial python3-serial \ |
| 29 | rsync unzip uuid-dev xdg-utils xterm xz-utils zlib1g-dev |
| 30 | |
| 31 | For older versions, you might need to pull `pycryptodome` as a pip package: |
| 32 | |
| 33 | .. code-block:: bash |
| 34 | |
| 35 | $ python3 -m pip install --user pycryptodome |