1 # 2 # Copyright (c) 2013-2016, ARM Limited and Contributors. All rights reserved. 3 # 4 # SPDX-License-Identifier: BSD-3-Clause 5 # 6 7 INCLUDES += -Iinclude/bl32/tsp 8 9 BL32_SOURCES += bl32/tsp/tsp_main.c \ 10 bl32/tsp/aarch64/tsp_entrypoint.S \ 11 bl32/tsp/aarch64/tsp_exceptions.S \ 12 bl32/tsp/aarch64/tsp_request.S \ 13 bl32/tsp/tsp_interrupt.c \ 14 bl32/tsp/tsp_timer.c \ 15 common/aarch64/early_exceptions.S \ 16 lib/locks/exclusive/aarch64/spinlock.S 17 18 BL32_LINKERFILE := bl32/tsp/tsp.ld.S 19 20 # This flag determines if the TSPD initializes BL32 in tspd_init() (synchronous 21 # method) or configures BL31 to pass control to BL32 instead of BL33 22 # (asynchronous method). 23 TSP_INIT_ASYNC := 0 24 25 $(eval $(call assert_boolean,TSP_INIT_ASYNC)) 26 $(eval $(call add_define,TSP_INIT_ASYNC)) 27 28 # Include the platform-specific TSP Makefile 29 # If no platform-specific TSP Makefile exists, it means TSP is not supported 30 # on this platform. 31 TSP_PLAT_MAKEFILE := $(wildcard ${PLAT_DIR}/tsp/tsp-${PLAT}.mk) 32 ifeq (,${TSP_PLAT_MAKEFILE}) 33 $(error TSP is not supported on platform ${PLAT}) 34 else 35 include ${TSP_PLAT_MAKEFILE} 36 endif 37