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