From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailout4.zoneedit.com (mailout4.zoneedit.com [64.68.198.64]) by mx.groups.io with SMTP id smtpd.web11.22660.1602871950552430572 for ; Fri, 16 Oct 2020 11:12:31 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: denix.org, ip: 64.68.198.64, mailfrom: denis@denix.org) Received: from localhost (localhost [127.0.0.1]) by mailout4.zoneedit.com (Postfix) with ESMTP id D057140BD6; Fri, 16 Oct 2020 18:12:29 +0000 (UTC) Received: from mailout4.zoneedit.com ([127.0.0.1]) by localhost (zmo14-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9tquVcSEOOw7; Fri, 16 Oct 2020 18:12:29 +0000 (UTC) Received: from mail.denix.org (pool-100-15-86-127.washdc.fios.verizon.net [100.15.86.127]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout4.zoneedit.com (Postfix) with ESMTPSA id A4A0540BC7; Fri, 16 Oct 2020 18:12:28 +0000 (UTC) Received: by mail.denix.org (Postfix, from userid 1000) id 5D13817449A; Fri, 16 Oct 2020 14:12:28 -0400 (EDT) Date: Fri, 16 Oct 2020 14:12:28 -0400 From: "Denys Dmytriyenko" To: Brett Warren Cc: meta-arm@lists.yoctoproject.org Subject: Re: [meta-arm] [PATCH 2/6] optee: upgraded recipes to 3.10 Message-ID: <20201016181228.GX19155@denix.org> References: <8kyH.1602675228543077329.RykC@lists.yoctoproject.org> <163DE717EFAA897E.741@lists.yoctoproject.org> MIME-Version: 1.0 In-Reply-To: <163DE717EFAA897E.741@lists.yoctoproject.org> User-Agent: Mutt/1.5.20 (2009-06-14) Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 14, 2020 at 11:58:48AM -0400, Denys Dmytriyenko wrote: > Maybe passing --find-copies-harder would yield a smaller and more readab= le=20 > patch (i.e. diff between 3.8 and 3.10)? ^^^ as I suspected - see my resend. > Also, are there any details on backward compatibility needs to preserve = 3.8? >=20 > Thanks. >=20 > --=20 > Denys >=20 >=20 > On Wed, Oct 14, 2020 at 04:33:48AM -0700, Brett Warren wrote: > > The optee recipes were upgraded due to issues booting with 3.8 > > on qemuarm64-secureboot, which were resolved by the upgrade. > > The 3.8 recipes are retained for backwards compatibility. > >=20 > > optee-test and optee-examples were modified to pass a sysroot > > to the LIBGCC_LOCATE_CFLAGS parameter, to ensure proper location > > of the libgcc library. > >=20 > > Recipes have been renamed to reflect their current version. > > As this makes the PV variables redundent, these have been removed. > >=20 > > Change-Id: Iacaba02d64570a790d5cc20eca8be58246e39019 > > Signed-off-by: Brett Warren > > --- > > .../optee/optee-client_3.10.0.bb=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0 | 59 +++++++++++++ > > ...ee-client_git.bb =3D> optee-client_3.8.0.bb} |=A0 2 - > > .../optee/optee-examples_3.10.0.bb=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 | = 52 ++++++++++++ > > ...xamples_git.bb =3D> optee-examples_3.8.0.bb} |=A0 3 +- > > .../recipes-security/optee/optee-os_3.10.0.bb | 83 +++++++++++++++++++ > > .../{optee-os_git.bb =3D> optee-os_3.8.0.bb}=A0=A0=A0 |=A0 2 - > > .../optee/optee-test_3.10.0.bb=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 | 55 ++++++++++++ > > ...{optee-test_git.bb =3D> optee-test_3.8.0.bb} |=A0 3 +- > > 8 files changed, 251 insertions(+), 8 deletions(-) > > create mode 100644 meta-arm/recipes-security/optee/optee-client_3.10.0= .bb > > rename meta-arm/recipes-security/optee/{optee-client_git.bb =3D> optee= -client_3.8.0.bb} (98%) > > create mode 100644 meta-arm/recipes-security/optee/optee-examples_3.10= .0.bb > > rename meta-arm/recipes-security/optee/{optee-examples_git.bb =3D> opt= ee-examples_3.8.0.bb} (95%) > > create mode 100644 meta-arm/recipes-security/optee/optee-os_3.10.0.bb > > rename meta-arm/recipes-security/optee/{optee-os_git.bb =3D> optee-os_= 3.8.0.bb} (98%) > > create mode 100644 meta-arm/recipes-security/optee/optee-test_3.10.0.b= b > > rename meta-arm/recipes-security/optee/{optee-test_git.bb =3D> optee-t= est_3.8.0.bb} (96%) > >=20 > > diff --git a/meta-arm/recipes-security/optee/optee-client_3.10.0.bb b/= meta-arm/recipes-security/optee/optee-client_3.10.0.bb > > new file mode 100644 > > index 0000000..cbd3b93 > > --- /dev/null > > +++ b/meta-arm/recipes-security/optee/optee-client_3.10.0.bb > > @@ -0,0 +1,59 @@ > > +SUMMARY =3D "OP-TEE Client API" > > +DESCRIPTION =3D "Open Portable Trusted Execution Environment - Normal= World Client side of the TEE" > > +HOMEPAGE =3D "https://www.op-tee.org/" > > + > > +LICENSE =3D "BSD" > > +LIC_FILES_CHKSUM =3D "file://${S}/LICENSE;md5=3D69663ab153298557a59c6= 7a60a743e5b" > > + > > +require optee.inc > > + > > +inherit python3native systemd update-rc.d > > + > > +SRCREV =3D "2a77cf88d956c34cb4a1c191bea6113e327f5fe0" > > +SRC_URI =3D " \ > > +=A0=A0=A0 git://github.com/OP-TEE/optee_client.git \ > > +=A0=A0=A0 file://tee-supplicant.service \ > > +=A0=A0=A0 file://tee-supplicant.sh \ > > +" > > + > > +S =3D "${WORKDIR}/git" > > +B =3D "${WORKDIR}/build" > > + > > +EXTRA_OEMAKE =3D "O=3D${B}" > > + > > +do_compile() { > > +=A0=A0=A0 cd ${S} > > +=A0=A0=A0 oe_runmake > > +} > > +do_compile[cleandirs] =3D "${B}" > > + > > +do_install() { > > +=A0=A0=A0 cd ${S} > > +=A0=A0=A0 oe_runmake install > > + > > +=A0=A0=A0 install -D -p -m0755 ${B}/export/usr/sbin/tee-supplicant ${= D}${sbindir}/tee-supplicant > > + > > +=A0=A0=A0 install -D -p -m0644 ${B}/export/usr/lib/libteec.so.1.0 ${D= }${libdir}/libteec.so.1.0 > > +=A0=A0=A0 ln -sf libteec.so.1.0 ${D}${libdir}/libteec.so > > +=A0=A0=A0 ln -sf libteec.so.1.0 ${D}${libdir}/libteec.so.1 > > + > > +=A0=A0=A0 install -d ${D}${includedir} > > +=A0=A0=A0 install -p -m0644 ${B}/export/usr/include/*.h ${D}${include= dir} > > + > > +=A0=A0=A0 install -D -p -m0644 ${WORKDIR}/tee-supplicant.service ${D}= ${systemd_system_unitdir}/tee-supplicant.service > > + > > +=A0=A0=A0 install -D -p -m0755 ${WORKDIR}/tee-supplicant.sh ${D}${sys= confdir}/init.d/tee-supplicant > > + > > +=A0=A0=A0 sed -i -e s:@sysconfdir@:${sysconfdir}:g \ > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 -e s:@sbindir@:${sbindir}:g \ > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ${D}${systemd_system_unitdir}= /tee-supplicant.service \ > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ${D}${sysconfdir}/init.d/tee-= supplicant > > +} > > + > > +SYSTEMD_SERVICE_${PN} =3D "tee-supplicant.service" > > + > > +INITSCRIPT_PACKAGES =3D "${PN}" > > + > > +INITSCRIPT_NAME_${PN} =3D "tee-supplicant" > > +INITSCRIPT_PARAMS_${PN} =3D "start 10 1 2 3 4 5 . stop 90 0 6 ." > > + > > diff --git a/meta-arm/recipes-security/optee/optee-client_git.bb b/met= a-arm/recipes-security/optee/optee-client_3.8.0.bb > > similarity index 98% > > rename from meta-arm/recipes-security/optee/optee-client_git.bb > > rename to meta-arm/recipes-security/optee/optee-client_3.8.0.bb > > index 5dbbfe9..d43ebf4 100644 > > --- a/meta-arm/recipes-security/optee/optee-client_git.bb > > +++ b/meta-arm/recipes-security/optee/optee-client_3.8.0.bb > > @@ -5,8 +5,6 @@ HOMEPAGE =3D "https://www.op-tee.org/" > > LICENSE =3D "BSD" > > LIC_FILES_CHKSUM =3D "file://${S}/LICENSE;md5=3D69663ab153298557a59c67= a60a743e5b" > >=20 > > -PV =3D "3.8.0+git${SRCPV}" > > - > > require optee.inc > >=20 > > inherit python3native systemd update-rc.d > > diff --git a/meta-arm/recipes-security/optee/optee-examples_3.10.0.bb = b/meta-arm/recipes-security/optee/optee-examples_3.10.0.bb > > new file mode 100644 > > index 0000000..4a7db10 > > --- /dev/null > > +++ b/meta-arm/recipes-security/optee/optee-examples_3.10.0.bb > > @@ -0,0 +1,52 @@ > > +SUMMARY =3D "OP-TEE examples" > > +DESCRIPTION =3D "Open Portable Trusted Execution Environment - Sample= Applications" > > +HOMEPAGE =3D "https://github.com/linaro-swg/optee_examples" > > + > > +LICENSE =3D "GPLv2" > > +LIC_FILES_CHKSUM =3D "file://${S}/LICENSE;md5=3Dcd95ab417e23b94f381da= fc453d70c30" > > + > > +DEPENDS =3D "optee-client optee-os python3-pycryptodomex-native" > > + > > +inherit python3native > > + > > +require optee.inc > > + > > +SRC_URI =3D "git://github.com/linaro-swg/optee_examples.git \ > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 file://0001-make-Pass-ldflags-during-l= ink.patch \ > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 " > > +SRCREV =3D "c6eb00a9d83bf068a37e4806c97f582bb16e2973" > > + > > +S =3D "${WORKDIR}/git" > > +B =3D "${WORKDIR}/build" > > + > > +OPTEE_CLIENT_EXPORT =3D "${STAGING_DIR_HOST}${prefix}" > > +TEEC_EXPORT =3D "${STAGING_DIR_HOST}${prefix}" > > +TA_DEV_KIT_DIR =3D "${STAGING_INCDIR}/optee/export-user_ta" > > + > > +EXTRA_OEMAKE =3D " TA_DEV_KIT_DIR=3D${TA_DEV_KIT_DIR} \ > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 OPTEE_CLIENT_EXPORT= =3D${OPTEE_CLIENT_EXPORT} \ > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 TEEC_EXPORT=3D${TEEC= _EXPORT} \ > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 HOST_CROSS_COMPILE= =3D${TARGET_PREFIX} \ > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 TA_CROSS_COMPILE=3D$= {TARGET_PREFIX} \ > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 LIBGCC_LOCATE_CFLAGS= = =3D--sysroot=3D${STAGING_DIR_HOST} \ > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 V=3D1 \ > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 OUTPUT_DIR=3D${B} \ > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 " > > + > > +do_compile() { > > +=A0=A0=A0 cd ${S} > > +=A0=A0=A0 oe_runmake > > +} > > +do_compile[cleandirs] =3D "${B}" > > + > > +do_install () { > > +=A0=A0=A0 mkdir -p ${D}${nonarch_base_libdir}/optee_armtz > > +=A0=A0=A0 mkdir -p ${D}${bindir} > > +=A0=A0=A0 install -D -p -m0755 ${B}/ca/* ${D}${bindir} > > +=A0=A0=A0 install -D -p -m0444 ${B}/ta/* ${D}${nonarch_base_libdir}/o= ptee_armtz > > +} > > + > > +FILES_${PN} +=3D "${nonarch_base_libdir}/optee_armtz/" > > + > > +# Imports machine specific configs from staging to build > > +PACKAGE_ARCH =3D "${MACHINE_ARCH}" > > diff --git a/meta-arm/recipes-security/optee/optee-examples_git.bb b/m= eta-arm/recipes-security/optee/optee-examples_3.8.0.bb > > similarity index 95% > > rename from meta-arm/recipes-security/optee/optee-examples_git.bb > > rename to meta-arm/recipes-security/optee/optee-examples_3.8.0.bb > > index 71be593..7ed3dfa 100644 > > --- a/meta-arm/recipes-security/optee/optee-examples_git.bb > > +++ b/meta-arm/recipes-security/optee/optee-examples_3.8.0.bb > > @@ -5,8 +5,6 @@ HOMEPAGE =3D "https://github.com/linaro-swg/optee_exam= ples" > > LICENSE =3D "GPLv2" > > LIC_FILES_CHKSUM =3D "file://${S}/LICENSE;md5=3Dcd95ab417e23b94f381daf= c453d70c30" > >=20 > > -PV =3D "3.8.0+git${SRCPV}" > > - > > DEPENDS =3D "optee-client optee-os python3-pycryptodomex-native" > >=20 > > inherit python3native > > @@ -30,6 +28,7 @@ EXTRA_OEMAKE =3D " TA_DEV_KIT_DIR=3D${TA_DEV_KIT_DIR= } \ > > TEEC_EXPORT=3D${TEEC_EXPORT} \ > > HOST_CROSS_COMPILE=3D${TARGET_PREFIX} \ > > TA_CROSS_COMPILE=3D${TARGET_PREFIX} \ > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 LIBGCC_LOCATE_CFLAGS= = =3D--sysroot=3D${STAGING_DIR_HOST} \ > > V=3D1 \ > > OUTPUT_DIR=3D${B} \ > > " > > diff --git a/meta-arm/recipes-security/optee/optee-os_3.10.0.bb b/meta= -arm/recipes-security/optee/optee-os_3.10.0.bb > > new file mode 100644 > > index 0000000..369e011 > > --- /dev/null > > +++ b/meta-arm/recipes-security/optee/optee-os_3.10.0.bb > > @@ -0,0 +1,83 @@ > > +SUMMARY =3D "OP-TEE Trusted OS" > > +DESCRIPTION =3D "Open Portable Trusted Execution Environment - Truste= d side of the TEE" > > +HOMEPAGE =3D "https://www.op-tee.org/" > > + > > +LICENSE =3D "BSD" > > +LIC_FILES_CHKSUM =3D "file://${S}/LICENSE;md5=3Dc1f21c4f72f372ef38a5a= 4aee55ec173" > > + > > +inherit deploy python3native > > +require optee.inc > > + > > +DEPENDS =3D "python3-pycryptodome-native python3-pycryptodomex-native= python3-pyelftools-native" > > + > > +SRCREV =3D "d1c635434c55b7d75eadf471bde04926bd1e50a7" > > +SRC_URI =3D " \ > > +=A0=A0=A0 git://github.com/OP-TEE/optee_os.git \ > > +=A0=A0=A0 file://0006-allow-setting-sysroot-for-libgcc-lookup.patch \ > > +" > > + > > +S =3D "${WORKDIR}/git" > > +B =3D "${WORKDIR}/build" > > + > > +OPTEEMACHINE ?=3D "${MACHINE}" > > +OPTEEMACHINE_aarch64_qemuall ?=3D "vexpress-qemu_armv8a" > > +OPTEE_ARCH =3D "null" > > +OPTEE_ARCH_armv7a =3D "arm32" > > +OPTEE_ARCH_aarch64 =3D "arm64" > > +OPTEE_CORE =3D "${@d.getVar('OPTEE_ARCH').upper()}" > > + > > +EXTRA_OEMAKE =3D " \ > > +=A0=A0=A0 PLATFORM=3D${OPTEEMACHINE} \ > > +=A0=A0=A0 CFG_${OPTEE_CORE}_core=3Dy \ > > +=A0=A0=A0 CROSS_COMPILE_core=3D${HOST_PREFIX} \ > > +=A0=A0=A0 CROSS_COMPILE_ta_${OPTEE_ARCH}=3D${HOST_PREFIX} \ > > +=A0=A0=A0 NOWERROR=3D1 \ > > +=A0=A0=A0 V=3D1 \ > > +=A0=A0=A0 ta-targets=3Dta_${OPTEE_ARCH} \ > > +=A0=A0=A0 LIBGCC_LOCATE_CFLAGS=3D--sysroot=3D${STAGING_DIR_HOST} \ > > +=A0=A0=A0 O=3D${B} \ > > +" > > + > > +CFLAGS[unexport] =3D "1" > > +LDFLAGS[unexport] =3D "1" > > +CPPFLAGS[unexport] =3D "1" > > +AS[unexport] =3D "1" > > +LD[unexport] =3D "1" > > + > > +do_configure[noexec] =3D "1" > > + > > +do_compile() { > > +=A0=A0=A0 cd ${S} > > +=A0=A0=A0 oe_runmake all CFG_TEE_TA_LOG_LEVEL=3D0 > > +} > > +do_compile[cleandirs] =3D "${B}" > > + > > +do_install() { > > +=A0=A0=A0 #install core in firmware > > +=A0=A0=A0 install -d ${D}${nonarch_base_libdir}/firmware/ > > +=A0=A0=A0 install -m 644 ${B}/core/*.bin ${D}${nonarch_base_libdir}/f= irmware/ > > + > > +=A0=A0=A0 #install TA devkit > > +=A0=A0=A0 install -d ${D}${includedir}/optee/export-user_ta/ > > +=A0=A0=A0 for f in ${B}/export-ta_${OPTEE_ARCH}/* ; do > > +=A0=A0=A0=A0=A0=A0=A0 cp -aR $f ${D}${includedir}/optee/export-user_t= a/ > > +=A0=A0=A0 done > > +} > > + > > +PACKAGE_ARCH =3D "${MACHINE_ARCH}" > > + > > +do_deploy() { > > +=A0=A0=A0 install -d ${DEPLOYDIR}/optee > > +=A0=A0=A0 install -m 644 ${D}${nonarch_base_libdir}/firmware/* ${DEPL= OYDIR}/optee/ > > +} > > + > > +addtask deploy before do_build after do_install > > + > > +SYSROOT_DIRS +=3D "${nonarch_base_libdir}/firmware" > > + > > +FILES_${PN} =3D "${nonarch_base_libdir}/firmware/" > > +FILES_${PN}-dev =3D "${includedir}/optee/" > > + > > +INSANE_SKIP_${PN}-dev =3D "staticdev" > > + > > +INHIBIT_PACKAGE_STRIP =3D "1" > > diff --git a/meta-arm/recipes-security/optee/optee-os_git.bb b/meta-ar= m/recipes-security/optee/optee-os_3.8.0.bb > > similarity index 98% > > rename from meta-arm/recipes-security/optee/optee-os_git.bb > > rename to meta-arm/recipes-security/optee/optee-os_3.8.0.bb > > index deeb515..0001271 100644 > > --- a/meta-arm/recipes-security/optee/optee-os_git.bb > > +++ b/meta-arm/recipes-security/optee/optee-os_3.8.0.bb > > @@ -5,8 +5,6 @@ HOMEPAGE =3D "https://www.op-tee.org/" > > LICENSE =3D "BSD" > > LIC_FILES_CHKSUM =3D "file://${S}/LICENSE;md5=3Dc1f21c4f72f372ef38a5a4= aee55ec173" > >=20 > > -PV =3D "3.8.0+git${SRCPV}" > > - > > inherit deploy python3native > > require optee.inc > >=20 > > diff --git a/meta-arm/recipes-security/optee/optee-test_3.10.0.bb b/me= ta-arm/recipes-security/optee/optee-test_3.10.0.bb > > new file mode 100644 > > index 0000000..96e612a > > --- /dev/null > > +++ b/meta-arm/recipes-security/optee/optee-test_3.10.0.bb > > @@ -0,0 +1,55 @@ > > +SUMMARY =3D "OP-TEE sanity testsuite" > > +DESCRIPTION =3D "Open Portable Trusted Execution Environment - Test s= uite" > > +HOMEPAGE =3D "https://www.op-tee.org/" > > + > > +LICENSE =3D "BSD & GPLv2" > > +LIC_FILES_CHKSUM =3D "file://${S}/LICENSE.md;md5=3Ddaa2bcccc666345ab8= 940aab1315a4fa" > > + > > +inherit python3native > > +require optee.inc > > + > > +DEPENDS =3D "optee-client optee-os python3-pycryptodomex-native" > > + > > +SRCREV =3D "30efcbeaf8864d0f2a5c4be593a5411001fab31b" > > +SRC_URI =3D "git://github.com/OP-TEE/optee_test.git \ > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 file://0001-host-xtest-Adjust-order-of= -including-compiler.h.patch \ > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0 " > > + > > +S =3D "${WORKDIR}/git" > > +B =3D "${WORKDIR}/build" > > + > > +OPTEE_CLIENT_EXPORT =3D "${STAGING_DIR_HOST}${prefix}" > > +TEEC_EXPORT=A0=A0=A0=A0=A0=A0=A0=A0 =3D "${STAGING_DIR_HOST}${prefix}= " > > +TA_DEV_KIT_DIR=A0=A0=A0=A0=A0 =3D "${STAGING_INCDIR}/optee/export-use= r_ta" > > + > > +EXTRA_OEMAKE =3D " TA_DEV_KIT_DIR=3D${TA_DEV_KIT_DIR} \ > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 OPTEE_CLIENT_EXPORT= =3D${OPTEE_CLIENT_EXPORT} \ > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 TEEC_EXPORT=3D${TEEC= _EXPORT} \ > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 CROSS_COMPILE_HOST= =3D${TARGET_PREFIX} \ > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 CROSS_COMPILE_TA=3D$= {TARGET_PREFIX} \ > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 LIBGCC_LOCATE_CFLAGS= = =3D--sysroot=3D${STAGING_DIR_HOST} \ > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 V=3D1 \ > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 O=3D${B} \ > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 " > > + > > +do_compile() { > > +=A0=A0=A0 cd ${S} > > +=A0=A0=A0 # Top level makefile doesn't seem to handle parallel make g= racefully > > +=A0=A0=A0 oe_runmake xtest > > +=A0=A0=A0 oe_runmake ta > > +} > > +do_compile[cleandirs] =3D "${B}" > > + > > +do_install () { > > +=A0=A0=A0 install -D -p -m0755 ${B}/xtest/xtest ${D}${bindir}/xtest > > + > > +=A0=A0=A0 # install path should match the value set in optee-client/t= ee-supplicant > > +=A0=A0=A0 # default TEEC_LOAD_PATH is /lib > > +=A0=A0=A0 mkdir -p ${D}${nonarch_base_libdir}/optee_armtz/ > > +=A0=A0=A0 install -D -p -m0444 ${B}/ta/*/*.ta ${D}${nonarch_base_libd= ir}/optee_armtz/ > > +} > > + > > +FILES_${PN} +=3D "${nonarch_base_libdir}/optee_armtz/" > > + > > +# Imports machine specific configs from staging to build > > +PACKAGE_ARCH =3D "${MACHINE_ARCH}" > > diff --git a/meta-arm/recipes-security/optee/optee-test_git.bb b/meta-= arm/recipes-security/optee/optee-test_3.8.0.bb > > similarity index 96% > > rename from meta-arm/recipes-security/optee/optee-test_git.bb > > rename to meta-arm/recipes-security/optee/optee-test_3.8.0.bb > > index 957286c..65e6cd1 100644 > > --- a/meta-arm/recipes-security/optee/optee-test_git.bb > > +++ b/meta-arm/recipes-security/optee/optee-test_3.8.0.bb > > @@ -10,8 +10,6 @@ require optee.inc > >=20 > > DEPENDS =3D "optee-client optee-os python3-pycryptodomex-native" > >=20 > > -PV =3D "3.8.0+git${SRCPV}" > > - > > SRCREV =3D "30481e381cb4285706e7516853495a7699c93b2c" > > SRC_URI =3D "git://github.com/OP-TEE/optee_test.git \ > > file://0001-host-xtest-Adjust-order-of-including-compiler.h.patch \ > > @@ -29,6 +27,7 @@ EXTRA_OEMAKE =3D " TA_DEV_KIT_DIR=3D${TA_DEV_KIT_DIR= } \ > > TEEC_EXPORT=3D${TEEC_EXPORT} \ > > CROSS_COMPILE_HOST=3D${TARGET_PREFIX} \ > > CROSS_COMPILE_TA=3D${TARGET_PREFIX} \ > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 LIBGCC_LOCATE_CFLAGS= = =3D--sysroot=3D${STAGING_DIR_HOST} \ > > V=3D1 \ > > O=3D${B} \ > > " > > -- > > 2.17.1 >=20 > >=20 > >=20 > >=20 >=20 >=20 >=20 >=20