blob: 900decc2b9216e269275a661433b48d4270e0314 [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"
8TFA_PLATFORM = "n1sdp"
9TFA_BUILD_TARGET = "all fip"
10TFA_INSTALL_TARGET = "bl1 bl2 bl31 n1sdp-multi-chip n1sdp-single-chip n1sdp_fw_config n1sdp_tb_fw_config fip"
11TFA_DEBUG = "1"
12TFA_MBEDTLS = "1"
13TFA_UBOOT = "0"
14TFA_UEFI = "1"
15
Patrick Williams2a254922023-08-11 09:48:11 -050016FILESEXTRAPATHS:prepend := "${THISDIR}/files/n1sdp:"
17
18SRC_URI:append = " \
19 file://0001-Reserve-OP-TEE-memory-from-nwd.patch \
20 "
21
Brad Bishopbec4ebc2022-08-03 09:55:16 -040022TFA_ROT_KEY= "plat/arm/board/common/rotpk/arm_rotprivk_rsa.pem"
23
Patrick Williams92b42cb2022-09-03 06:53:57 -050024# Enabling Secure-EL1 Payload Dispatcher (SPD)
25TFA_SPD = "spmd"
26# Cortex-A35 supports Armv8.0-A (no S-EL2 execution state).
27# So, the SPD SPMC component should run at the S-EL1 execution state
28TFA_SPMD_SPM_AT_SEL2 = "0"
29
30# BL2 loads BL32 (optee). So, optee needs to be built first:
31DEPENDS += "optee-os"
32
Brad Bishopbec4ebc2022-08-03 09:55:16 -040033EXTRA_OEMAKE:append = "\
34 TRUSTED_BOARD_BOOT=1 \
Patrick Williams92b42cb2022-09-03 06:53:57 -050035 GENERATE_COT=1 \
36 CREATE_KEYS=1 \
37 ARM_ROTPK_LOCATION="devel_rsa" \
38 ROT_KEY="${TFA_ROT_KEY}" \
Andrew Geissler220dafd2023-10-04 10:18:08 -050039 BL32=${RECIPE_SYSROOT}/${nonarch_base_libdir}/firmware/tee-pager_v2.bin \
Patrick Williams92b42cb2022-09-03 06:53:57 -050040 BL33=${RECIPE_SYSROOT}/firmware/uefi.bin \
41 "