xref: /arm-trusted-firmware/docs/perf/tsp.rst (revision 91f16700b400a8c0651d24a598fc48ee2997a0d7)
1*91f16700SchasingluluTest Secure Payload (TSP) and Dispatcher (TSPD)
2*91f16700Schasinglulu===============================================
3*91f16700Schasinglulu
4*91f16700SchasingluluBuilding the Test Secure Payload
5*91f16700Schasinglulu--------------------------------
6*91f16700Schasinglulu
7*91f16700SchasingluluThe TSP is coupled with a companion runtime service in the BL31 firmware,
8*91f16700Schasinglulucalled the TSPD. Therefore, if you intend to use the TSP, the BL31 image
9*91f16700Schasinglulumust be recompiled as well. For more information on SPs and SPDs, see the
10*91f16700Schasinglulu:ref:`firmware_design_sel1_spd` section in the :ref:`Firmware Design`.
11*91f16700Schasinglulu
12*91f16700SchasingluluFirst clean the TF-A build directory to get rid of any previous BL31 binary.
13*91f16700SchasingluluThen to build the TSP image use:
14*91f16700Schasinglulu
15*91f16700Schasinglulu.. code:: shell
16*91f16700Schasinglulu
17*91f16700Schasinglulu    make PLAT=<platform> SPD=tspd all
18*91f16700Schasinglulu
19*91f16700SchasingluluAn additional boot loader binary file is created in the ``build`` directory:
20*91f16700Schasinglulu
21*91f16700Schasinglulu::
22*91f16700Schasinglulu
23*91f16700Schasinglulu    build/<platform>/<build-type>/bl32.bin
24*91f16700Schasinglulu
25*91f16700Schasinglulu--------------
26*91f16700Schasinglulu
27*91f16700Schasinglulu*Copyright (c) 2019, Arm Limited. All rights reserved.*
28