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 <[email protected]> --- meta-ti-bsp/recipes-security/optee/optee-os-ti.inc | 6 ++++++ 1 file changed, 6 insertions(+) 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() { install -m 644 ${B}/*.optee ${D}${nonarch_base_libdir}/firmware/ || true install -m 644 ${B}/bl32.bin ${D}${nonarch_base_libdir}/firmware/ || true install -m 644 ${B}/bl32.elf ${D}${nonarch_base_libdir}/firmware/ || true + + # Install embedded TAs + mkdir -p ${D}${nonarch_base_libdir}/optee_armtz/ + install -D -p -m0444 ${B}/ta/*/*.ta ${D}${nonarch_base_libdir}/optee_armtz/ } optee_deploy_legacyhs() { @@ -67,5 +71,7 @@ do_deploy:append:k3() { ln -sf optee/bl32.elf ${DEPLOYDIR}/ } +FILES:${PN} += "${nonarch_base_libdir}/optee_armtz/" + # This is needed for bl32.elf INSANE_SKIP:${PN}:append:k3 = " textrel" -- 2.39.2
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#17017): https://lists.yoctoproject.org/g/meta-ti/message/17017 Mute This Topic: https://lists.yoctoproject.org/mt/101627316/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
