Antonio Nino Diaz | c41f206 | 2017-10-24 10:07:35 +0100 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | ifneq (${SPD},none) |
| 8 | $(error "Error: SPD and SPM are incompatible build options.") |
| 9 | endif |
| 10 | ifneq (${ARCH},aarch64) |
| 11 | $(error "Error: SPM is only supported on aarch64.") |
| 12 | endif |
| 13 | |
| 14 | # SPM sources |
| 15 | |
| 16 | |
| 17 | SPM_SOURCES := $(addprefix services/std_svc/spm/, \ |
| 18 | spm_main.c \ |
| 19 | ${ARCH}/spm_helpers.S \ |
| 20 | secure_partition_setup.c \ |
| 21 | ${ARCH}/spm_shim_exceptions.S) |
| 22 | |
| 23 | |
| 24 | # Let the top-level Makefile know that we intend to include a BL32 image |
| 25 | NEED_BL32 := yes |