From 4fba2e1ff7d8e9386a333fe3624286e1abab35a8 Mon Sep 17 00:00:00 2001 From: Boyan Karatotev Date: Wed, 15 Mar 2023 14:40:54 +0000 Subject: [PATCH] chore(rme): add make rule for SPD=spmd ENABLE_RME is set then SPD must either be spmd or it should not be set. Add a rule to assert this. Signed-off-by: Boyan Karatotev Change-Id: I0556e7b0e55b04c3a8e4c20c991fbbc30486570c --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 5306ddfe5..d79fa9660 100644 --- a/Makefile +++ b/Makefile @@ -642,6 +642,11 @@ endif ifeq ($(SPMC_AT_EL3),1) $(error SPMC_AT_EL3 and ENABLE_RME cannot both be enabled.) endif +ifneq (${SPD}, none) +ifneq (${SPD}, spmd) + $(error ENABLE_RME is incompatible with SPD=${SPD}. Use SPD=spmd) +endif +endif include services/std_svc/rmmd/rmmd.mk $(warning "RME is an experimental feature") endif