Achin Gupta | 7c88f3f | 2014-02-18 18:09:12 +0000 | [diff] [blame] | 1 | # |
Evan Lloyd | f269714 | 2015-12-02 18:17:37 +0000 | [diff] [blame] | 2 | # Copyright (c) 2013-2016, ARM Limited and Contributors. All rights reserved. |
Achin Gupta | 7c88f3f | 2014-02-18 18:09:12 +0000 | [diff] [blame] | 3 | # |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | # SPDX-License-Identifier: BSD-3-Clause |
Achin Gupta | 7c88f3f | 2014-02-18 18:09:12 +0000 | [diff] [blame] | 5 | # |
| 6 | |
Dan Handley | 4fd2f5c | 2014-08-04 11:41:20 +0100 | [diff] [blame] | 7 | INCLUDES += -Iinclude/bl32/tsp |
| 8 | |
Dan Handley | 176e7b4 | 2014-04-15 18:20:09 +0100 | [diff] [blame] | 9 | BL32_SOURCES += bl32/tsp/tsp_main.c \ |
| 10 | bl32/tsp/aarch64/tsp_entrypoint.S \ |
Achin Gupta | a4f50c2 | 2014-05-09 12:17:56 +0100 | [diff] [blame] | 11 | bl32/tsp/aarch64/tsp_exceptions.S \ |
Dan Handley | 176e7b4 | 2014-04-15 18:20:09 +0100 | [diff] [blame] | 12 | bl32/tsp/aarch64/tsp_request.S \ |
Achin Gupta | 7671789 | 2014-05-09 11:42:56 +0100 | [diff] [blame] | 13 | bl32/tsp/tsp_interrupt.c \ |
| 14 | bl32/tsp/tsp_timer.c \ |
Dan Handley | 176e7b4 | 2014-04-15 18:20:09 +0100 | [diff] [blame] | 15 | common/aarch64/early_exceptions.S \ |
Soby Mathew | 7b5c9b3 | 2016-08-08 12:42:53 +0100 | [diff] [blame] | 16 | lib/locks/exclusive/aarch64/spinlock.S |
Achin Gupta | 7c88f3f | 2014-02-18 18:09:12 +0000 | [diff] [blame] | 17 | |
Dan Handley | 176e7b4 | 2014-04-15 18:20:09 +0100 | [diff] [blame] | 18 | BL32_LINKERFILE := bl32/tsp/tsp.ld.S |
Achin Gupta | 7c88f3f | 2014-02-18 18:09:12 +0000 | [diff] [blame] | 19 | |
Juan Castillo | 7d19941 | 2015-12-14 09:35:25 +0000 | [diff] [blame] | 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 |
Vikram Kanigiri | 4e81341 | 2014-07-15 16:49:22 +0100 | [diff] [blame] | 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 | |
Sandrine Bailleux | a3a936e | 2014-03-13 14:48:31 +0000 | [diff] [blame] | 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. |
Evan Lloyd | f269714 | 2015-12-02 18:17:37 +0000 | [diff] [blame] | 31 | TSP_PLAT_MAKEFILE := $(wildcard ${PLAT_DIR}/tsp/tsp-${PLAT}.mk) |
| 32 | ifeq (,${TSP_PLAT_MAKEFILE}) |
Sandrine Bailleux | a3a936e | 2014-03-13 14:48:31 +0000 | [diff] [blame] | 33 | $(error TSP is not supported on platform ${PLAT}) |
| 34 | else |
| 35 | include ${TSP_PLAT_MAKEFILE} |
| 36 | endif |