From 1677edcc93b21c6273e2ba9d40d55fe429306a48 Mon Sep 17 00:00:00 2001 From: Aymeric Aillet Date: Fri, 20 Sep 2019 16:40:28 +0200 Subject: [Community] Optee_os recipe modification In order to build trusted applications from the official optee sources we need files that weren't built with the current version of the recipe. This modification allow us to build trusted applications in the AGL environment. BUG-AGL: SPEC-2848 Change-Id: Ic34121428abbaf316656519f71d876abfc1f95d5 Signed-off-by: Aymeric Aillet --- meta-rcar-gen3/recipes-bsp/optee/optee-os_git.bb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'meta-rcar-gen3') diff --git a/meta-rcar-gen3/recipes-bsp/optee/optee-os_git.bb b/meta-rcar-gen3/recipes-bsp/optee/optee-os_git.bb index aeea185..e338631 100644 --- a/meta-rcar-gen3/recipes-bsp/optee/optee-os_git.bb +++ b/meta-rcar-gen3/recipes-bsp/optee/optee-os_git.bb @@ -50,8 +50,10 @@ do_compile() { oe_runmake PLATFORM=${PLATFORM} CFG_ARM64_core=y } -# do_install() nothing -do_install[noexec] = "1" +do_install() { + install -d ${D}/usr/share/optee + cp -r ${S}/out/arm-plat-${PLATFORM}/export-ta_arm64 ${D}/usr/share/optee +} do_deploy() { # Create deploy folder @@ -63,3 +65,6 @@ do_deploy() { install -m 0644 ${S}/out/arm-plat-${PLATFORM}/core/tee.srec ${DEPLOYDIR}/tee-${MACHINE}.srec } addtask deploy before do_build after do_compile + +FILES_${PN}-staticdev += "${datadir}/optee/export-ta_arm64/lib/*.a" +FILES_${PN}-dev += "${datadir}/optee/export-ta_arm64" -- cgit 1.2.3-korg