Achin Gupta | 375f538 | 2014-02-18 18:12:48 +0000 | [diff] [blame] | 1 | # |
Jeenu Viswambharan | 2f40f32 | 2018-01-11 14:30:22 +0000 | [diff] [blame] | 2 | # Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved. |
Achin Gupta | 375f538 | 2014-02-18 18:12:48 +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 | 375f538 | 2014-02-18 18:12:48 +0000 | [diff] [blame] | 5 | # |
| 6 | |
| 7 | TSPD_DIR := services/spd/tspd |
Antonio Nino Diaz | 31a157f | 2019-02-11 11:57:57 +0000 | [diff] [blame] | 8 | |
| 9 | ifeq (${ERROR_DEPRECATED},0) |
Dan Handley | 4fd2f5c | 2014-08-04 11:41:20 +0100 | [diff] [blame] | 10 | SPD_INCLUDES := -Iinclude/bl32/tsp |
Antonio Nino Diaz | 31a157f | 2019-02-11 11:57:57 +0000 | [diff] [blame] | 11 | endif |
Achin Gupta | 375f538 | 2014-02-18 18:12:48 +0000 | [diff] [blame] | 12 | |
Dan Handley | 176e7b4 | 2014-04-15 18:20:09 +0100 | [diff] [blame] | 13 | SPD_SOURCES := services/spd/tspd/tspd_common.c \ |
| 14 | services/spd/tspd/tspd_helpers.S \ |
| 15 | services/spd/tspd/tspd_main.c \ |
| 16 | services/spd/tspd/tspd_pm.c |
Achin Gupta | 375f538 | 2014-02-18 18:12:48 +0000 | [diff] [blame] | 17 | |
| 18 | # This dispatcher is paired with a Test Secure Payload source and we intend to |
| 19 | # build the Test Secure Payload along with this dispatcher. |
| 20 | # |
| 21 | # In cases where an associated Secure Payload lies outside this build |
| 22 | # system/source tree, the the dispatcher Makefile can either invoke an external |
| 23 | # build command or assume it pre-built |
| 24 | |
| 25 | BL32_ROOT := bl32/tsp |
| 26 | |
| 27 | # Include SP's Makefile. The assumption is that the TSP's build system is |
| 28 | # compatible with that of Trusted Firmware, and it'll add and populate necessary |
| 29 | # build targets and variables |
| 30 | include ${BL32_ROOT}/tsp.mk |
| 31 | |
| 32 | # Let the top-level Makefile know that we intend to build the SP from source |
| 33 | NEED_BL32 := yes |
Soby Mathew | 47903c0 | 2015-01-13 15:48:26 +0000 | [diff] [blame] | 34 | |
| 35 | # Flag used to enable routing of non-secure interrupts to EL3 when they are |
| 36 | # generated while the code is executing in S-EL1/0. |
Soby Mathew | bec9851 | 2015-09-03 18:29:38 +0100 | [diff] [blame] | 37 | TSP_NS_INTR_ASYNC_PREEMPT := 0 |
| 38 | |
Jeenu Viswambharan | 2f40f32 | 2018-01-11 14:30:22 +0000 | [diff] [blame] | 39 | ifeq ($(EL3_EXCEPTION_HANDLING),1) |
| 40 | ifeq ($(TSP_NS_INTR_ASYNC_PREEMPT),0) |
| 41 | $(error When EL3_EXCEPTION_HANDLING=1, TSP_NS_INTR_ASYNC_PREEMPT must also be 1) |
| 42 | endif |
| 43 | endif |
| 44 | |
Soby Mathew | bec9851 | 2015-09-03 18:29:38 +0100 | [diff] [blame] | 45 | $(eval $(call assert_boolean,TSP_NS_INTR_ASYNC_PREEMPT)) |
| 46 | $(eval $(call add_define,TSP_NS_INTR_ASYNC_PREEMPT)) |