Achin Gupta | 86f2353 | 2019-10-11 15:41:16 +0100 | [diff] [blame] | 1 | # |
Jayanth Dodderi Chidanand | 605419a | 2023-03-06 23:56:14 +0000 | [diff] [blame] | 2 | # Copyright (c) 2021-2023, 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 | |
Achin Gupta | 86f2353 | 2019-10-11 15:41:16 +0100 | [diff] [blame] | 7 | SPMD_SOURCES += $(addprefix services/std_svc/spmd/, \ |
| 8 | ${ARCH}/spmd_helpers.S \ |
Olivier Deprez | 9afca12 | 2019-10-28 09:15:52 +0000 | [diff] [blame] | 9 | spmd_pm.c \ |
Raghu Krishnamurthy | 7f046c1 | 2023-02-25 13:26:10 -0800 | [diff] [blame] | 10 | spmd_main.c \ |
| 11 | spmd_logical_sp.c) |
Achin Gupta | 86f2353 | 2019-10-11 15:41:16 +0100 | [diff] [blame] | 12 | |
Raghu Krishnamurthy | 2a8361d | 2023-03-03 19:30:25 -0800 | [diff] [blame] | 13 | # Specify platform specific SPMD logical partition implementation. |
| 14 | SPMD_LP_SOURCES := $(wildcard $(addprefix ${PLAT_DIR}/, \ |
| 15 | ${PLAT}_spmd_logical_sp*.c)) |
| 16 | |
| 17 | ifeq (${ENABLE_SPMD_LP}, 1) |
| 18 | ifneq ($(wildcard $(SPMD_LP_SOURCES)),) |
| 19 | SPMD_SOURCES += $(SPMD_LP_SOURCES) |
| 20 | endif |
| 21 | endif |
| 22 | |
Achin Gupta | 86f2353 | 2019-10-11 15:41:16 +0100 | [diff] [blame] | 23 | # Let the top-level Makefile know that we intend to include a BL32 image |
| 24 | NEED_BL32 := yes |
| 25 | |
| 26 | # Enable dynamic memory mapping |
| 27 | # The SPMD component maps the SPMC DTB within BL31 virtual space. |
| 28 | PLAT_XLAT_TABLES_DYNAMIC := 1 |
| 29 | $(eval $(call add_define,PLAT_XLAT_TABLES_DYNAMIC)) |