Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 1 | # N1SDP specific TFA support |
| 2 | |
Andrew Geissler | 2edf064 | 2023-09-11 08:24:07 -0400 | [diff] [blame] | 3 | # Align with N1SDP-2023.06.22 Manifest |
| 4 | SRCREV_tfa = "31f60a968347497562b0129134928d7ac4767710" |
| 5 | PV .= "+git" |
| 6 | |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 7 | COMPATIBLE_MACHINE = "n1sdp" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 8 | TFA_BUILD_TARGET = "all fip" |
| 9 | TFA_INSTALL_TARGET = "bl1 bl2 bl31 n1sdp-multi-chip n1sdp-single-chip n1sdp_fw_config n1sdp_tb_fw_config fip" |
| 10 | TFA_DEBUG = "1" |
| 11 | TFA_MBEDTLS = "1" |
| 12 | TFA_UBOOT = "0" |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 13 | TFA_UEFI ?= "1" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 14 | |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 15 | FILESEXTRAPATHS:prepend := "${THISDIR}/files/n1sdp:" |
| 16 | |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 17 | SRC_URI:append = " \ |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 18 | file://0001-Reserve-OP-TEE-memory-from-nwd.patch \ |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 19 | file://0002-Modify-BL32-Location-to-DDR4.patch \ |
| 20 | file://0003-Modify-SPMC-Base-to-DDR4.patch \ |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 21 | " |
| 22 | |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 23 | TFA_ROT_KEY= "plat/arm/board/common/rotpk/arm_rotprivk_rsa.pem" |
| 24 | |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 25 | # Enabling Secure-EL1 Payload Dispatcher (SPD) |
| 26 | TFA_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 |
| 29 | TFA_SPMD_SPM_AT_SEL2 = "0" |
| 30 | |
| 31 | # BL2 loads BL32 (optee). So, optee needs to be built first: |
| 32 | DEPENDS += "optee-os" |
| 33 | |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 34 | EXTRA_OEMAKE:append = "\ |
| 35 | TRUSTED_BOARD_BOOT=1 \ |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 36 | GENERATE_COT=1 \ |
| 37 | CREATE_KEYS=1 \ |
| 38 | ARM_ROTPK_LOCATION="devel_rsa" \ |
| 39 | ROT_KEY="${TFA_ROT_KEY}" \ |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 40 | BL32=${RECIPE_SYSROOT}/${nonarch_base_libdir}/firmware/tee-pager_v2.bin \ |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 41 | " |