Marc Bonnici | 8e1a755 | 2021-12-01 17:57:04 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2022, ARM Limited and Contributors. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | ifneq (${ARCH},aarch64) |
| 8 | $(error "Error: SPMC is only supported on aarch64.") |
| 9 | endif |
| 10 | |
| 11 | SPMC_SOURCES := $(addprefix services/std_svc/spm/el3_spmc/, \ |
| 12 | spmc_main.c \ |
Marc Bonnici | 9a29704 | 2022-02-14 17:06:09 +0000 | [diff] [blame] | 13 | spmc_setup.c \ |
Marc Bonnici | 25f4b54 | 2022-04-12 17:18:13 +0100 | [diff] [blame] | 14 | logical_sp.c \ |
Marc Bonnici | 9f23c8d | 2021-10-01 16:06:04 +0100 | [diff] [blame] | 15 | spmc_pm.c \ |
| 16 | spmc_shared_mem.c) |
Marc Bonnici | 8e1a755 | 2021-12-01 17:57:04 +0000 | [diff] [blame] | 17 | |
Marc Bonnici | 35248f1 | 2021-08-19 14:42:19 +0100 | [diff] [blame] | 18 | # Specify platform specific logical partition implementation. |
| 19 | SPMC_LP_SOURCES := $(addprefix ${PLAT_DIR}/, \ |
| 20 | ${PLAT}_el3_spmc_logical_sp.c) |
| 21 | |
| 22 | |
| 23 | SPMC_SOURCES += $(SPMC_LP_SOURCES) |
| 24 | |
Marc Bonnici | 8e1a755 | 2021-12-01 17:57:04 +0000 | [diff] [blame] | 25 | # Let the top-level Makefile know that we intend to include a BL32 image |
| 26 | NEED_BL32 := yes |
Achin Gupta | 6b4ec24 | 2021-10-04 20:13:36 +0100 | [diff] [blame] | 27 | |
| 28 | ifndef BL32 |
| 29 | # The SPMC is paired with a Test Secure Payload source and we intend to |
| 30 | # build the Test Secure Payload if no other image has been provided |
| 31 | # for BL32. |
| 32 | # |
| 33 | # In cases where an associated Secure Payload lies outside this build |
| 34 | # system/source tree, the dispatcher Makefile can either invoke an external |
| 35 | # build command or assume it is pre-built. |
| 36 | |
| 37 | BL32_ROOT := bl32/tsp |
| 38 | |
| 39 | # Conditionally include SP's Makefile. The assumption is that the TSP's build |
| 40 | # system is compatible with that of Trusted Firmware, and it'll add and populate |
| 41 | # necessary build targets and variables. |
| 42 | |
| 43 | include ${BL32_ROOT}/tsp.mk |
| 44 | endif |