summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorOlivier Deprez <olivier.deprez@arm.com>2021-09-29 18:01:55 +0200
committerTrustedFirmware Code Review <review@review.trustedfirmware.org>2021-09-29 18:01:55 +0200
commit5447302feefe8d9be271bacf092b5c3a4f6e3bf8 (patch)
tree6f3a978f58b33aec26f9639ca5b5e570a019470c /Makefile
parent72a56fca722dd09fe2a6a3f124432059d4104090 (diff)
parent46789a7c711d650ae9b2bad0c2b817c4ba4a214a (diff)
downloadarm-trusted-firmware-5447302feefe8d9be271bacf092b5c3a4f6e3bf8.tar.gz
Merge "build(bl2): enable SP pkg loading for S-EL1 SPMC" into integration
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index a11e55f9f..59d14ba02 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 \
@@ -1003,6 +1008,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 \
@@ -1105,9 +1111,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