From 0dfd5d1f3c6b0d31fe3357ff6dbe24bf9365bb9f Mon Sep 17 00:00:00 2001 From: Rouven Czerwinski Date: Fri, 30 Jun 2023 13:23:41 +0200 Subject: [PATCH] optee-test: add TA elfs to deploydir Same as for OP-TEE client, this eases debugging and is required to use the OP-TEE symbolize.py script. Signed-off-by: Rouven Czerwinski Signed-off-by: Jon Mason --- meta-arm/recipes-security/optee/optee-test.inc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/meta-arm/recipes-security/optee/optee-test.inc b/meta-arm/recipes-security/optee/optee-test.inc index 64b41a8e..90b72b9f 100644 --- a/meta-arm/recipes-security/optee/optee-test.inc +++ b/meta-arm/recipes-security/optee/optee-test.inc @@ -6,6 +6,7 @@ LICENSE = "BSD-2-Clause & GPL-2.0-only" LIC_FILES_CHKSUM = "file://LICENSE.md;md5=daa2bcccc666345ab8940aab1315a4fa" inherit python3native ptest +inherit deploy require optee.inc DEPENDS = "optee-client optee-os-tadevkit python3-cryptography-native" @@ -43,6 +44,13 @@ do_install () { install -D -p -m0444 ${B}/supp_plugin/*.plugin ${D}${libdir}/tee-supplicant/plugins/ } +do_deploy () { + install -d ${DEPLOYDIR}/${MLPREFIX}optee/ta + install -m 644 ${B}/ta/*/*.elf ${DEPLOYDIR}/${MLPREFIX}optee/ta +} + +addtask deploy before do_build after do_install + FILES:${PN} += "${nonarch_base_libdir}/optee_armtz/ \ ${libdir}/tee-supplicant/plugins/ \ "