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:22:12 -0500
commit11bc9de0c99ba90cea8c05c769eeaaa81e1afe48 (patch)
tree29d55ef09f76fbd518ed6f32bf9a63221d64a264
parentacddc8924d925ea7e7b07e030b3f9b6582a6f8f1 (diff)
downloadmeta-ti-11bc9de0c99ba90cea8c05c769eeaaa81e1afe48.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 ff87f37a..19386295 100644
--- a/meta-ti-bsp/recipes-security/optee/optee-os-ti.inc
+++ b/meta-ti-bsp/recipes-security/optee/optee-os-ti.inc
@@ -45,6 +45,10 @@ do_install:append() {
45 install -m 644 ${B}/*.optee ${D}${nonarch_base_libdir}/firmware/ || true 45 install -m 644 ${B}/*.optee ${D}${nonarch_base_libdir}/firmware/ || true
46 install -m 644 ${B}/bl32.bin ${D}${nonarch_base_libdir}/firmware/ || true 46 install -m 644 ${B}/bl32.bin ${D}${nonarch_base_libdir}/firmware/ || true
47 install -m 644 ${B}/bl32.elf ${D}${nonarch_base_libdir}/firmware/ || true 47 install -m 644 ${B}/bl32.elf ${D}${nonarch_base_libdir}/firmware/ || true
48
49 # Install embedded TAs
50 mkdir -p ${D}${nonarch_base_libdir}/optee_armtz/
51 install -D -p -m0444 ${B}/ta/*/*.ta ${D}${nonarch_base_libdir}/optee_armtz/
48} 52}
49 53
50optee_deploy_legacyhs() { 54optee_deploy_legacyhs() {
@@ -67,5 +71,7 @@ do_deploy:append:k3() {
67 ln -sf optee/bl32.elf ${DEPLOYDIR}/ 71 ln -sf optee/bl32.elf ${DEPLOYDIR}/
68} 72}
69 73
74FILES:${PN} += "${nonarch_base_libdir}/optee_armtz/"
75
70# This is needed for bl32.elf 76# This is needed for bl32.elf
71INSANE_SKIP:${PN}:append:k3 = " textrel" 77INSANE_SKIP:${PN}:append:k3 = " textrel"