blob: 135b80a057f0f64fc38234bfe3736ff7b018409a [file] [log] [blame]
Joakim Bech8e5c5b32018-10-25 08:18:32 +02001.. _prerequisites:
2
3#############
4Prerequisites
5#############
6We believe that you can use any Linux distribution to build OP-TEE, but as
7maintainers of OP-TEE we are mainly using Ubuntu-based distributions and to be
Sander Visserb7d2f982020-04-21 12:08:52 +02008able to build and run OP-TEE there are a few packages that needs to be available.
9
10First enable installation of i386 architecture packages and update the package
11managers database.
12
13.. code-block:: bash
14
15 $ sudo dpkg --add-architecture i386
16 $ sudo apt-get update
17
18Install the following packages regardless of what target you will use in the end.
Joakim Bech8e5c5b32018-10-25 08:18:32 +020019
20.. code-block:: bash
21
22 $ sudo apt-get install android-tools-adb android-tools-fastboot autoconf \
Jens Wiklander035f0b02019-06-24 10:41:23 +020023 automake bc bison build-essential ccache cscope curl device-tree-compiler \
Joakim Bech8e5c5b32018-10-25 08:18:32 +020024 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 Chongd76b6d02019-10-16 06:25:28 +010027 mtools netcat python-crypto python3-crypto python-pyelftools \
Christina Quastcfc4ff32020-02-11 21:14:35 +010028 python3-pycryptodome python3-pyelftools python-serial python3-serial \
29 rsync unzip uuid-dev xdg-utils xterm xz-utils zlib1g-dev
30
31For 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