summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Davis <afd@ti.com>2023-09-27 17:03:02 -0500
committerRyan Eatmon <reatmon@ti.com>2023-09-29 11:21:44 -0500
commit50ba626ebf36659d22eb9d6628a7849a12d03338 (patch)
tree0433d12c766327bc62f7c113a52747209af816cb
parent1ca59a8eae9c2c4fe5e3dbda5193e978c3583c0c (diff)
downloadmeta-ti-50ba626ebf36659d22eb9d6628a7849a12d03338.tar.gz
optee-os: Install OP-TEE OS provided TAs
OP-TEE OS provides a handful of TAs itself. While these are often meant to be built-in, when they are not we should deploy them as part of the OP-TEE OS package so they can be loaded at runtime. Signed-off-by: Andrew Davis <afd@ti.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
-rw-r--r--meta-ti-bsp/recipes-security/optee/optee-os-ti.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta-ti-bsp/recipes-security/optee/optee-os-ti.inc b/meta-ti-bsp/recipes-security/optee/optee-os-ti.inc
index 1f898a6d..e2a15428 100644
--- a/meta-ti-bsp/recipes-security/optee/optee-os-ti.inc
+++ b/meta-ti-bsp/recipes-security/optee/optee-os-ti.inc
@@ -44,6 +44,10 @@ do_install:append() {
44 install -m 644 ${B}/*.optee ${D}${nonarch_base_libdir}/firmware/ || true 44 install -m 644 ${B}/*.optee ${D}${nonarch_base_libdir}/firmware/ || true
45 install -m 644 ${B}/bl32.bin ${D}${nonarch_base_libdir}/firmware/ || true 45 install -m 644 ${B}/bl32.bin ${D}${nonarch_base_libdir}/firmware/ || true
46 install -m 644 ${B}/bl32.elf ${D}${nonarch_base_libdir}/firmware/ || true 46 install -m 644 ${B}/bl32.elf ${D}${nonarch_base_libdir}/firmware/ || true
47
48 # Install embedded TAs
49 mkdir -p ${D}${nonarch_base_libdir}/optee_armtz/
50 install -D -p -m0444 ${B}/ta/*/*.ta ${D}${nonarch_base_libdir}/optee_armtz/
47} 51}
48 52
49optee_deploy_legacyhs() { 53optee_deploy_legacyhs() {
@@ -66,5 +70,7 @@ do_deploy:append:k3() {
66 ln -sf optee/bl32.elf ${DEPLOYDIR}/ 70 ln -sf optee/bl32.elf ${DEPLOYDIR}/
67} 71}
68 72
73FILES:${PN} += "${nonarch_base_libdir}/optee_armtz/"
74
69# This is needed for bl32.elf 75# This is needed for bl32.elf
70INSANE_SKIP:${PN}:append:k3 = " textrel" 76INSANE_SKIP:${PN}:append:k3 = " textrel"