blob: c4049f5afba4f8dbd66a9ae7668a822e619c92bf [file] [log] [blame]
Brad Bishopbec4ebc2022-08-03 09:55:16 -04001# TC0 specific configuration
2
Andrew Geissler2edf0642023-09-11 08:24:07 -04003# Total Compute (tc) specific configuration for optee-os and optee-os-tadevkit
4
5FILESEXTRAPATHS:prepend := "${THISDIR}/files/optee-os/tc:"
6SRC_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
11COMPATIBLE_MACHINE = "(tc?)"
12
13OPTEEMACHINE:tc1 = "totalcompute-tc1"
Brad Bishopbec4ebc2022-08-03 09:55:16 -040014
15# Enable optee memory layout and boot logs
16EXTRA_OEMAKE += " CFG_TEE_CORE_LOG_LEVEL=3"
17
18# default disable latency benchmarks (over all OP-TEE layers)
19EXTRA_OEMAKE += " CFG_TEE_BENCHMARK=n"
20
21# Enable stats
22EXTRA_OEMAKE += " CFG_WITH_STATS=y"
23
24EXTRA_OEMAKE += " CFG_CORE_SEL2_SPMC=y"
25
26# Copy optee manifest file
27do_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}