1*43f35ef5SPaul BeesleyTest Secure Payload (TSP) and Dispatcher (TSPD) 2*43f35ef5SPaul Beesley=============================================== 3*43f35ef5SPaul Beesley 4*43f35ef5SPaul BeesleyBuilding the Test Secure Payload 5*43f35ef5SPaul Beesley-------------------------------- 6*43f35ef5SPaul Beesley 7*43f35ef5SPaul BeesleyThe TSP is coupled with a companion runtime service in the BL31 firmware, 8*43f35ef5SPaul Beesleycalled the TSPD. Therefore, if you intend to use the TSP, the BL31 image 9*43f35ef5SPaul Beesleymust be recompiled as well. For more information on SPs and SPDs, see the 10*43f35ef5SPaul Beesley:ref:`firmware_design_sel1_spd` section in the :ref:`Firmware Design`. 11*43f35ef5SPaul Beesley 12*43f35ef5SPaul BeesleyFirst clean the TF-A build directory to get rid of any previous BL31 binary. 13*43f35ef5SPaul BeesleyThen to build the TSP image use: 14*43f35ef5SPaul Beesley 15*43f35ef5SPaul Beesley.. code:: shell 16*43f35ef5SPaul Beesley 17*43f35ef5SPaul Beesley make PLAT=<platform> SPD=tspd all 18*43f35ef5SPaul Beesley 19*43f35ef5SPaul BeesleyAn additional boot loader binary file is created in the ``build`` directory: 20*43f35ef5SPaul Beesley 21*43f35ef5SPaul Beesley:: 22*43f35ef5SPaul Beesley 23*43f35ef5SPaul Beesley build/<platform>/<build-type>/bl32.bin 24*43f35ef5SPaul Beesley 25*43f35ef5SPaul Beesley-------------- 26*43f35ef5SPaul Beesley 27*43f35ef5SPaul Beesley*Copyright (c) 2019, Arm Limited. All rights reserved.* 28