1# 2# Copyright (c) 2013-2019, ARM Limited and Contributors. All rights reserved. 3# 4# SPDX-License-Identifier: BSD-3-Clause 5# 6 7INCLUDES += -Iinclude/bl32/tsp 8 9BL32_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 18BL32_LINKERFILE := bl32/tsp/tsp.ld.S 19 20# This flag determines whether pointer authentication is used in the TSP or not 21ifeq ($(ENABLE_PAUTH),1) 22BL32_CFLAGS += -msign-return-address=non-leaf 23endif 24 25# This flag determines if the TSPD initializes BL32 in tspd_init() (synchronous 26# method) or configures BL31 to pass control to BL32 instead of BL33 27# (asynchronous method). 28TSP_INIT_ASYNC := 0 29 30$(eval $(call assert_boolean,TSP_INIT_ASYNC)) 31$(eval $(call add_define,TSP_INIT_ASYNC)) 32 33# Include the platform-specific TSP Makefile 34# If no platform-specific TSP Makefile exists, it means TSP is not supported 35# on this platform. 36TSP_PLAT_MAKEFILE := $(wildcard ${PLAT_DIR}/tsp/tsp-${PLAT}.mk) 37ifeq (,${TSP_PLAT_MAKEFILE}) 38 $(error TSP is not supported on platform ${PLAT}) 39else 40 include ${TSP_PLAT_MAKEFILE} 41endif 42