Marc Bonnici | 758bd24 | 2021-12-19 21:37:50 +0000 | [diff] [blame] | 1 | # |
Nishant Sharma | 09aebce | 2022-03-25 23:03:31 +0000 | [diff] [blame] | 2 | # Copyright (c) 2022-2023, ARM Limited and Contributors. All rights reserved. |
Marc Bonnici | 758bd24 | 2021-12-19 21:37:50 +0000 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | ifneq (${ARCH},aarch64) |
| 8 | $(error "Error: SPM is only supported on aarch64.") |
| 9 | endif |
| 10 | |
| 11 | INCLUDES += -Iservices/std_svc/spm/common/include |
| 12 | |
Nishant Sharma | 09aebce | 2022-03-25 23:03:31 +0000 | [diff] [blame] | 13 | SPM_SOURCES := $(addprefix services/std_svc/spm/common/, \ |
| 14 | ${ARCH}/spm_helpers.S \ |
| 15 | ${ARCH}/spm_shim_exceptions.S) |
Marc Bonnici | 758bd24 | 2021-12-19 21:37:50 +0000 | [diff] [blame] | 16 | |
Nishant Sharma | 96107d7 | 2022-04-28 00:13:50 +0100 | [diff] [blame] | 17 | ifeq (1, $(filter 1, ${SPM_MM} ${SPMC_AT_EL3_SEL0_SP})) |
| 18 | SPM_SOURCES += $(addprefix services/std_svc/spm/common/, \ |
| 19 | spm_xlat_common.c) |
| 20 | endif |
| 21 | |
Marc Bonnici | 758bd24 | 2021-12-19 21:37:50 +0000 | [diff] [blame] | 22 | # Let the top-level Makefile know that we intend to include a BL32 image |
| 23 | NEED_BL32 := yes |