Skip to content

Commit a618b6e

Browse files
committed
stompduck: Add support for optee in TF-A
Using sp_min as secure payload is now deprecated. Add support for optee secure payload in the FIP image by adding the right OPTEE-OS build option and TFA path to OPTEE BL32 parts. Signed-off-by: Kory Maincent <[email protected]>
1 parent 6ea9cb8 commit a618b6e

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

meta-kiss/conf/machine/stompduck.conf

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,24 @@ TFA_BUILD_TARGET = "fip all"
3636
TFA_INSTALL_TARGET = "fip tf-a-stm32mp157a-dk1.stm32"
3737
EXTRA_OEMAKE:append:pn-trusted-firmware-a = " \
3838
ARCH=aarch32 ARM_ARCH_MAJOR=7 \
39-
AARCH32_SP=sp_min \
39+
AARCH32_SP=optee \
4040
DTB_FILE_NAME=stm32mp157a-dk1.dtb \
41+
STM32MP1_OPTEE_IN_SYSRAM=1 \
42+
BL32=${DEPLOY_DIR_IMAGE}/optee/tee-header_v2.bin \
43+
BL32_EXTRA1=${DEPLOY_DIR_IMAGE}/optee/tee-pager_v2.bin \
44+
BL32_EXTRA2=${DEPLOY_DIR_IMAGE}/optee/tee-pageable_v2.bin \
4145
BL33_CFG=${DEPLOY_DIR_IMAGE}/u-boot.dtb \
4246
STM32MP_SDMMC=1 \
4347
BL33=${DEPLOY_DIR_IMAGE}/u-boot-nodtb.bin \
4448
"
4549

50+
# Build optee-os for STM32MP1
51+
OPTEEMACHINE = "stm32mp1"
52+
EXTRA_OEMAKE:append:pn-optee-os = " \
53+
PLATFORM_FLAVOR=157A_DK1 \
54+
CFG_STM32MP1_OPTEE_IN_SYSRAM=y \
55+
"
56+
4657
# This machine has the rootfs on partition 5
4758
UBOOT_EXTLINUX_ROOT = "root=/dev/mmcblk0p5"
4859

meta-kiss/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ COMPATIBLE_MACHINE:freiheit93 = "^freiheit93$"
55
# Here the dependency is only needed for stompduck. Freiheit93 also use
66
# trusted-firmware-a, but its binary is embedded in an image generated by
77
# u-boot: the dependency is the other way around.
8-
DEPENDS:append:stompduck = " virtual/bootloader"
8+
DEPENDS:append:stompduck = " virtual/bootloader optee-os"

0 commit comments

Comments
 (0)