Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 1 | # TC0 specific configuration |
| 2 | |
Andrew Geissler | 2edf064 | 2023-09-11 08:24:07 -0400 | [diff] [blame] | 3 | # Total Compute (tc) specific configuration for optee-os and optee-os-tadevkit |
| 4 | |
| 5 | FILESEXTRAPATHS:prepend := "${THISDIR}/files/optee-os/tc:" |
| 6 | SRC_URI:append:tc = " file://sp_layout.json \ |
| 7 | file://0001-WIP-Enable-managed-exit.patch \ |
| 8 | file://0002-plat-totalcompute-fix-TZDRAM-start-and-size.patch \ |
| 9 | " |
| 10 | |
| 11 | COMPATIBLE_MACHINE = "(tc?)" |
| 12 | |
| 13 | OPTEEMACHINE:tc1 = "totalcompute-tc1" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 14 | |
| 15 | # Enable optee memory layout and boot logs |
| 16 | EXTRA_OEMAKE += " CFG_TEE_CORE_LOG_LEVEL=3" |
| 17 | |
| 18 | # default disable latency benchmarks (over all OP-TEE layers) |
| 19 | EXTRA_OEMAKE += " CFG_TEE_BENCHMARK=n" |
| 20 | |
| 21 | # Enable stats |
| 22 | EXTRA_OEMAKE += " CFG_WITH_STATS=y" |
| 23 | |
| 24 | EXTRA_OEMAKE += " CFG_CORE_SEL2_SPMC=y" |
| 25 | |
| 26 | # Copy optee manifest file |
| 27 | do_install:append() { |
| 28 | install -d ${D}${nonarch_base_libdir}/firmware/ |
| 29 | install -m 644 ${WORKDIR}/sp_layout.json ${D}${nonarch_base_libdir}/firmware/ |
| 30 | install -m 644 \ |
| 31 | ${S}/core/arch/arm/plat-totalcompute/fdts/optee_sp_manifest.dts \ |
| 32 | ${D}${nonarch_base_libdir}/firmware/ |
| 33 | } |