Achin Gupta | 86f2353 | 2019-10-11 15:41:16 +0100 | [diff] [blame] | 1 | # |
johpow01 | 9baade3 | 2021-07-08 14:14:00 -0500 | [diff] [blame] | 2 | # Copyright (c) 2021, ARM Limited and Contributors. All rights reserved. |
Achin Gupta | 86f2353 | 2019-10-11 15:41:16 +0100 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | ifneq (${ARCH},aarch64) |
johpow01 | 9baade3 | 2021-07-08 14:14:00 -0500 | [diff] [blame] | 8 | $(error "Error: SPMD is only supported on aarch64.") |
| 9 | endif |
| 10 | |
| 11 | ifeq (${ENABLE_SME_FOR_NS},1) |
| 12 | $(error "Error: SPMD is not compatible with ENABLE_SME_FOR_NS") |
Achin Gupta | 86f2353 | 2019-10-11 15:41:16 +0100 | [diff] [blame] | 13 | endif |
| 14 | |
| 15 | SPMD_SOURCES += $(addprefix services/std_svc/spmd/, \ |
| 16 | ${ARCH}/spmd_helpers.S \ |
Olivier Deprez | 9afca12 | 2019-10-28 09:15:52 +0000 | [diff] [blame] | 17 | spmd_pm.c \ |
Achin Gupta | 86f2353 | 2019-10-11 15:41:16 +0100 | [diff] [blame] | 18 | spmd_main.c) |
| 19 | |
| 20 | # Let the top-level Makefile know that we intend to include a BL32 image |
| 21 | NEED_BL32 := yes |
| 22 | |
| 23 | # Enable dynamic memory mapping |
| 24 | # The SPMD component maps the SPMC DTB within BL31 virtual space. |
| 25 | PLAT_XLAT_TABLES_DYNAMIC := 1 |
| 26 | $(eval $(call add_define,PLAT_XLAT_TABLES_DYNAMIC)) |