diff options
author | Olivier Deprez <olivier.deprez@arm.com> | 2020-03-19 09:27:11 +0100 |
---|---|---|
committer | Manish Pandey <manish.pandey2@arm.com> | 2020-03-23 19:30:48 +0000 |
commit | c33ff1985eb64f0e74db4d519ff71617dd7d5381 (patch) | |
tree | 336e26f624e3da9eddc2329822910ce4811e250f /Makefile | |
parent | c9796852718f66fab99f9e27d58e18fd757dbe60 (diff) | |
download | platform_external_arm-trusted-firmware-c33ff1985eb64f0e74db4d519ff71617dd7d5381.tar.gz platform_external_arm-trusted-firmware-c33ff1985eb64f0e74db4d519ff71617dd7d5381.tar.bz2 platform_external_arm-trusted-firmware-c33ff1985eb64f0e74db4d519ff71617dd7d5381.zip |
spmd: skip loading of secure partitions on pre-v8.4 platforms
When SPD=spmd and SPMD_SPM_AT_SEL2=0, that is SPMC sits at S-EL1
then there is no need for TF-A to load secure partitions individually.
In this configuration, SPMC handles secure partition loading at
S-EL1/EL0 levels.
Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
Signed-off-by: Manish Pandey <manish.pandey2@arm.com>
Change-Id: I06a0d88a4811274a8c347ce57b56bb5f64e345df
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -938,13 +938,18 @@ $(eval $(call add_define,USE_ARM_LINK)) endif # Generate and include sp_gen.mk if SPD is spmd and SP_LAYOUT_FILE is defined -ifdef SP_LAYOUT_FILE 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 NEED_SP_PKG := yes else - $(error "SP_LAYOUT_FILE will be used only if SPD=spmd") + ifeq (${SPMD_SPM_AT_SEL2},1) + $(error "SPMD with SPM at S-EL2 require SP_LAYOUT_FILE") + endif endif endif |