diff options
| author | Govindraj Raja <govindraj.raja@arm.com> | 2022-11-21 13:10:40 +0000 |
|---|---|---|
| committer | Govindraj Raja <govindraj.raja@arm.com> | 2022-12-01 12:04:40 +0200 |
| commit | f1910cc178fe1488e30f66aa9a4f9e450b955eb1 (patch) | |
| tree | bd5952fe179d20b007ecb0f6dc05cfed7e7c29eb /Makefile | |
| parent | 4ccbdd86bc83ac57a9069daf5723b4197acf6181 (diff) | |
| download | arm-trusted-firmware-f1910cc178fe1488e30f66aa9a4f9e450b955eb1.tar.gz | |
build: restrict usage of CTX_INCLUDE_EL2_REGS
CTX_INCLUDE_EL2_REGS is used to save/restore EL2 registers and
it should be only used when there is SPMD or RME enabled.
Make CTX_INCLUDE_EL2_REGS an internal macro and remove
from documentation.
Signed-off-by: Govindraj Raja <govindraj.raja@arm.com>
Change-Id: I6a70edfd88163423ff0482de094601cf794246d6
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -526,9 +526,7 @@ ifneq (${SPD},none) SPD_DIR := std_svc ifeq ($(SPMD_SPM_AT_SEL2),1) - ifeq ($(CTX_INCLUDE_EL2_REGS),0) - $(error SPMD with SPM at S-EL2 requires CTX_INCLUDE_EL2_REGS option) - endif + CTX_INCLUDE_EL2_REGS := 1 ifeq ($(SPMC_AT_EL3),1) $(error SPM cannot be enabled in both S-EL2 and EL3.) endif @@ -574,6 +572,14 @@ ifneq (${SPD},none) # over the sources. endif +ifeq (${CTX_INCLUDE_EL2_REGS}, 1) +ifeq (${SPD},none) +ifeq (${ENABLE_RME},0) + $(error CTX_INCLUDE_EL2_REGS is available only when SPD or RME is enabled) +endif +endif +endif + ################################################################################ # Include rmmd Makefile if RME is enabled ################################################################################ |
