From 46789a7c711d650ae9b2bad0c2b817c4ba4a214a Mon Sep 17 00:00:00 2001 From: Balint Dobszay Date: Fri, 26 Mar 2021 16:23:18 +0100 Subject: build(bl2): enable SP pkg loading for S-EL1 SPMC Currently the SP package loading mechanism is only enabled when S-EL2 SPMC is selected. Remove this limitation. Signed-off-by: Balint Dobszay Change-Id: I5bf5a32248e85a26d0345cacff7d539eed824cfc --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9d1e945662..a76d01fce6 100644 --- a/Makefile +++ b/Makefile @@ -529,6 +529,10 @@ ifneq (${SPD},none) ifneq ($(ARM_BL2_SP_LIST_DTS),) DTC_CPPFLAGS += -DARM_BL2_SP_LIST_DTS=$(ARM_BL2_SP_LIST_DTS) endif + + ifneq ($(SP_LAYOUT_FILE),) + BL2_ENABLE_SP_LOAD := 1 + endif else # All other SPDs in spd directory SPD_DIR := spd @@ -902,6 +906,7 @@ endif $(eval $(call assert_booleans,\ $(sort \ ALLOW_RO_XLAT_TABLES \ + BL2_ENABLE_SP_LOAD \ COLD_BOOT_SINGLE_CPU \ CREATE_KEYS \ CTX_INCLUDE_AARCH32_REGS \ @@ -1002,6 +1007,7 @@ $(eval $(call add_defines,\ ALLOW_RO_XLAT_TABLES \ ARM_ARCH_MAJOR \ ARM_ARCH_MINOR \ + BL2_ENABLE_SP_LOAD \ COLD_BOOT_SINGLE_CPU \ CTX_INCLUDE_AARCH32_REGS \ CTX_INCLUDE_FPREGS \ @@ -1103,9 +1109,6 @@ endif # Generate and include sp_gen.mk if SPD is spmd and SP_LAYOUT_FILE is defined ifeq (${SPD},spmd) ifdef SP_LAYOUT_FILE - ifeq (${SPMD_SPM_AT_SEL2},0) - $(error "SPMD with SPM at S-EL1 does not require SP_LAYOUT_FILE") - endif -include $(BUILD_PLAT)/sp_gen.mk FIP_DEPS += sp CRT_DEPS += sp -- cgit v1.2.3