From 7453f06afc9b3d9021a44af60e8d8fa6638c1668 Mon Sep 17 00:00:00 2001 From: Arunachalam Ganapathy Date: Tue, 12 Jan 2021 15:20:45 +0000 Subject: [PATCH] arm-bsp/tc0: Enable optee core with SPMC at SEL2 Sets config flag CFG_CORE_SEL2_SPMC. Copies optee manifest file and sp_layout files to deploy directory. Signed-off-by: Arunachalam Ganapathy Change-Id: If2104e2d588cbc9fbd9db3d8c4ba9fb74732901b Signed-off-by: Jon Mason --- .../recipes-security/optee/optee-os-tc0.inc | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/meta-arm-bsp/recipes-security/optee/optee-os-tc0.inc b/meta-arm-bsp/recipes-security/optee/optee-os-tc0.inc index fc89a9f4..fff6381e 100644 --- a/meta-arm-bsp/recipes-security/optee/optee-os-tc0.inc +++ b/meta-arm-bsp/recipes-security/optee/optee-os-tc0.inc @@ -27,3 +27,25 @@ SRC_URI_append = " \ COMPATIBLE_MACHINE = "tc0" OPTEEMACHINE = "totalcompute-tc0" + +# Enable optee memory layout and boot logs +EXTRA_OEMAKE += " CFG_TEE_CORE_LOG_LEVEL=3" + +# default disable latency benchmarks (over all OP-TEE layers) +EXTRA_OEMAKE += " CFG_TEE_BENCHMARK=n" + +# Enable stats +EXTRA_OEMAKE += " CFG_WITH_STATS=y" + +EXTRA_OEMAKE += " CFG_CORE_SEL2_SPMC=y" + +# Copy optee manifest file and sp_layout +# This function will be modified or removed once upstream optee-os adds support +# for SEL2 SPMC config +do_install_append() { + install -d ${D}${nonarch_base_libdir}/firmware/ + install -m 644 ${S}/core/arch/arm/plat-totalcompute/sp_layout.json \ + ${D}${nonarch_base_libdir}/firmware/ + install -m 644 ${S}/core/arch/arm/plat-totalcompute/optee_manifest.dts \ + ${D}${nonarch_base_libdir}/firmware/ +}