blob: 79dc9b2bb88d66e873a087085bb7b2ae18ecf07c [file] [log] [blame]
Brad Bishopbec4ebc2022-08-03 09:55:16 -04001# N1SDP specific TFA support
2
Andrew Geissler2edf0642023-09-11 08:24:07 -04003# Align with N1SDP-2023.06.22 Manifest
4SRCREV_tfa = "31f60a968347497562b0129134928d7ac4767710"
5PV .= "+git"
6
Brad Bishopbec4ebc2022-08-03 09:55:16 -04007COMPATIBLE_MACHINE = "n1sdp"
Brad Bishopbec4ebc2022-08-03 09:55:16 -04008TFA_BUILD_TARGET = "all fip"
9TFA_INSTALL_TARGET = "bl1 bl2 bl31 n1sdp-multi-chip n1sdp-single-chip n1sdp_fw_config n1sdp_tb_fw_config fip"
10TFA_DEBUG = "1"
11TFA_MBEDTLS = "1"
12TFA_UBOOT = "0"
Patrick Williamsac13d5f2023-11-24 18:59:46 -060013TFA_UEFI ?= "1"
Brad Bishopbec4ebc2022-08-03 09:55:16 -040014
Patrick Williams2a254922023-08-11 09:48:11 -050015FILESEXTRAPATHS:prepend := "${THISDIR}/files/n1sdp:"
16
Patrick Williamsac13d5f2023-11-24 18:59:46 -060017SRC_URI:append = " \
Patrick Williams2a254922023-08-11 09:48:11 -050018 file://0001-Reserve-OP-TEE-memory-from-nwd.patch \
Patrick Williamsac13d5f2023-11-24 18:59:46 -060019 file://0002-Modify-BL32-Location-to-DDR4.patch \
20 file://0003-Modify-SPMC-Base-to-DDR4.patch \
Patrick Williams2a254922023-08-11 09:48:11 -050021 "
22
Brad Bishopbec4ebc2022-08-03 09:55:16 -040023TFA_ROT_KEY= "plat/arm/board/common/rotpk/arm_rotprivk_rsa.pem"
24
Patrick Williams92b42cb2022-09-03 06:53:57 -050025# Enabling Secure-EL1 Payload Dispatcher (SPD)
26TFA_SPD = "spmd"
27# Cortex-A35 supports Armv8.0-A (no S-EL2 execution state).
28# So, the SPD SPMC component should run at the S-EL1 execution state
29TFA_SPMD_SPM_AT_SEL2 = "0"
30
31# BL2 loads BL32 (optee). So, optee needs to be built first:
32DEPENDS += "optee-os"
33
Brad Bishopbec4ebc2022-08-03 09:55:16 -040034EXTRA_OEMAKE:append = "\
35 TRUSTED_BOARD_BOOT=1 \
Patrick Williams92b42cb2022-09-03 06:53:57 -050036 GENERATE_COT=1 \
37 CREATE_KEYS=1 \
38 ARM_ROTPK_LOCATION="devel_rsa" \
39 ROT_KEY="${TFA_ROT_KEY}" \
Andrew Geissler220dafd2023-10-04 10:18:08 -050040 BL32=${RECIPE_SYSROOT}/${nonarch_base_libdir}/firmware/tee-pager_v2.bin \
Patrick Williams92b42cb2022-09-03 06:53:57 -050041 "