1# 2# Copyright (c) 2021, ARM Limited and Contributors. All rights reserved. 3# 4# SPDX-License-Identifier: BSD-3-Clause 5# 6 7ifneq (${ARCH},aarch64) 8 $(error "Error: SPMC is only supported on aarch64.") 9endif 10 11SPMC_SOURCES := $(addprefix services/std_svc/spm/spmc/, \ 12 spmc_main.c \ 13 spmc_setup.c \ 14 spmc_pm.c \ 15 spmc_shared_mem.c \ 16 logical_sp_test.c) 17 18 19# Let the top-level Makefile know that we intend to include a BL32 image 20NEED_BL32 := yes 21 22# Enable save and restore for non-secure timer register 23NS_TIMER_SWITCH := 1 24 25# The SPMC is paired with a Test Secure Payload source and we intend to 26# build the Test Secure Payload along with this dispatcher. 27# 28# In cases where an associated Secure Payload lies outside this build 29# system/source tree, the the dispatcher Makefile can either invoke an external 30# build command or assume it pre-built 31 32BL32_ROOT := bl32/tsp 33 34# Include SP's Makefile. The assumption is that the TSP's build system is 35# compatible with that of Trusted Firmware, and it'll add and populate necessary 36# build targets and variables 37include ${BL32_ROOT}/tsp.mk 38