]> code.ossystems Code Review - meta-freescale.git/commitdiff
optee-os: Install embedded TAs
authorTom Hochstein <tom.hochstein@nxp.com>
Wed, 16 Feb 2022 19:01:04 +0000 (13:01 -0600)
committerTom Hochstein <tom.hochstein@nxp.com>
Thu, 24 Feb 2022 19:32:53 +0000 (13:32 -0600)
optee-os has some embedded TAs like AVB or PKCS11 that must be installed
in the filesystem.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
recipes-security/optee-imx/optee-os_3.15.0.imx.bb

index e3b8eff404e9104d9e9c6a4e5c69234bf8835026..58b238a7faadb83d9935a553db4fe325d9080fcc 100644 (file)
@@ -82,12 +82,18 @@ do_install () {
     for f in ${B}/export-ta_${OPTEE_ARCH}/*; do
         cp -aR $f ${D}${includedir}/optee/export-user_ta_${OPTEE_ARCH}/
     done
+
+    # Install embedded TAs
+    install -d ${D}${nonarch_base_libdir}/optee_armtz
+    find ${B}/ta -name '*.ta' | while read name; do
+        install -m 444 $name ${D}${nonarch_base_libdir}/optee_armtz/
+    done
 }
 
 addtask deploy after do_compile before do_install
 
 
-FILES:${PN} = "${nonarch_base_libdir}/firmware/"
+FILES:${PN} = "${nonarch_base_libdir}/firmware/ ${nonarch_base_libdir}/optee_armtz/"
 FILES:${PN}-staticdev = "/usr/include/optee/"
 RDEPENDS:${PN}-dev += "${PN}-staticdev"