aboutsummaryrefslogtreecommitdiffstats
path: root/plat/rpi3/platform.mk
diff options
context:
space:
mode:
authorYing-Chun Liu (PaulLiu) <paulliu@debian.org>2018-06-10 02:00:27 +0800
committerYing-Chun Liu (PaulLiu) <paulliu@debian.org>2018-06-19 16:40:22 +0800
commit7812abac86bed9bd1b4140b51d9b64207da07e01 (patch)
treeea8a146057452e754a093ed3b19a2b03c5e93785 /plat/rpi3/platform.mk
parent4a581b061c63cbfd68809e4a87b531a0ff75a085 (diff)
downloadplatform_external_arm-trusted-firmware-7812abac86bed9bd1b4140b51d9b64207da07e01.tar.gz
platform_external_arm-trusted-firmware-7812abac86bed9bd1b4140b51d9b64207da07e01.tar.bz2
platform_external_arm-trusted-firmware-7812abac86bed9bd1b4140b51d9b64207da07e01.zip
rpi3: add OPTEE support
Support for loading optee images as BL32 secure payload. Signed-off-by: Ying-Chun Liu (PaulLiu) <paul.liu@linaro.org>
Diffstat (limited to 'plat/rpi3/platform.mk')
-rw-r--r--plat/rpi3/platform.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/plat/rpi3/platform.mk b/plat/rpi3/platform.mk
index 2cb7a1520..2aaf4064e 100644
--- a/plat/rpi3/platform.mk
+++ b/plat/rpi3/platform.mk
@@ -120,3 +120,17 @@ endif
ifeq (${ARCH},aarch32)
$(error Error: AArch32 not supported on rpi3)
endif
+
+ifeq (${SPD},opteed)
+BL2_SOURCES += \
+ lib/optee/optee_utils.c
+endif
+
+# Add the build options to pack Trusted OS Extra1 and Trusted OS Extra2 images
+# in the FIP if the platform requires.
+ifneq ($(BL32_EXTRA1),)
+$(eval $(call TOOL_ADD_IMG,BL32_EXTRA1,--tos-fw-extra1))
+endif
+ifneq ($(BL32_EXTRA2),)
+$(eval $(call TOOL_ADD_IMG,BL32_EXTRA2,--tos-fw-extra2))
+endif