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