Please make sure you have all required software installed as explained in the software requirements.
TF-M uses cmake to provide an out-of-tree build environment. The instructions are below.
Both need to be cloned manually in the current release.
cd <TF-M base folder> git clone https://github.com/ARM-software/trusted-firmware-m.git git clone https://github.com/ARMmbed/mbedtls.git -b mbedtls-2.5.1 git clone https://github.com/ARM-software/CMSIS_5.git -b 5.2.0 cd trusted-firmware-m mkdir cmake_build cd cmake_build cmake ../ -G"Unix Makefiles" make
The default option build doesn't include regression tests. Procedure for building the regression tests is below.
It is recommended that tests are built in a different directory.
TF-M build regression tests on Linux
cd <TF-M base folder> cd trusted-firmware-m mkdir cmake_test cd cmake_test cmake -G"Unix Makefiles" -DPROJ_CONFIG=`readlink -f ../ConfigRegression.cmake` ../ make
TF-M build regression tests on Windows
cd <TF-M base folder> cd trusted-firmware-m mkdir cmake_test cd cmake_test cmake -G"Unix Makefiles" -DPROJ_CONFIG=`cygpath -m ../ConfigRegression.cmake` ../ make
An NS application requires a number of files to run with TF-M. The build system can export these files using "install" target in to a single folder.
On Windows
cmake -G"Unix Makefiles" -DPROJ_CONFIG=`cygpath -m ../ConfigRegression.cmake` ../ make install
On Linux
cmake -G"Unix Makefiles" -DPROJ_CONFIG=`readlink -f ../ConfigRegression.cmake` ../ make install
The integration guide explains further details of creating a new NS app.
Copyright (c) 2017 - 2018, Arm Limited. All rights reserved.