diff options
author | Aymeric Aillet <aymeric.aillet@iot.bzh> | 2019-09-20 16:48:04 +0200 |
---|---|---|
committer | Stephane Desneux <stephane.desneux@iot.bzh> | 2020-05-19 18:57:44 +0000 |
commit | 88d94ef02988376c22bf493e40ba339b2572236e (patch) | |
tree | 1cdcd718945da1ab555883197fdb6d60fdeb1ce0 /meta-rcar-gen3/recipes-bsp/optee/optee-user-app-template_git.bb | |
parent | a9eb8fa93867b8012e0e2d520961221a2a3ffffa (diff) |
[Community] Add optee packages recipes
Allow us to use the xtest suite and examples in order to test the functionning of optee.
More information on the optee official website.
Add a user-app example.
Allow us to build a custom app working in both optee side.
Fix optee examples recipe.
Allow us to to access functions from examples TA's from other apps.
BUG-AGL: SPEC-3030
Change-Id: I28f2c117dfa7a66ef2ebc0ede2ec32d7b218b549
Signed-off-by: Aymeric Aillet <aymeric.aillet@iot.bzh>
Diffstat (limited to 'meta-rcar-gen3/recipes-bsp/optee/optee-user-app-template_git.bb')
-rw-r--r-- | meta-rcar-gen3/recipes-bsp/optee/optee-user-app-template_git.bb | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/meta-rcar-gen3/recipes-bsp/optee/optee-user-app-template_git.bb b/meta-rcar-gen3/recipes-bsp/optee/optee-user-app-template_git.bb new file mode 100644 index 0000000..8d45a3c --- /dev/null +++ b/meta-rcar-gen3/recipes-bsp/optee/optee-user-app-template_git.bb @@ -0,0 +1,57 @@ +SUMMARY = "OP-TEE user_app_template" + +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=cd95ab417e23b94f381dafc453d70c30" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +inherit pythonnative + +PV = "0.1+git${SRCPV}" + +SRCREV = "0.1" + +SRC_URI = " \ + git://github.com/iotbzh/optee_user_app_template;branch=master \ +" + +COMPATIBLE_MACHINE = "(salvator-x|h3ulcb|m3ulcb|m3nulcb|ebisu)" +PLATFORM = "rcar" + +DEPENDS = "optee-os optee-client python-pycrypto-native" + +CFLAGS += "-Wno-extra -Wno-error=format" +TARGET_CFLAGS += "-Wno-extra -Wno-error=format" + +TARGET_CC_ARCH += "${LDFLAGS}" +INSANE_SKIP_${PN} = "ldflags" + +TA_DEV_KIT_DIR = "${STAGING_DIR_TARGET}/usr/share/optee/export-ta_arm64" + +OPTEE_CLIENT_EXPORT = "${STAGING_DIR_TARGET}/usr" + +TEEC_EXPORT = "${STAGING_DIR_TARGET}/usr" + +S = "${WORKDIR}/git" +EXTRA_OEMAKE = "\ + TEEC_EXPORT=${TEEC_EXPORT} \ + OPTEE_CLIENT_EXPORT=${OPTEE_CLIENT_EXPORT} \ + TA_DEV_KIT_DIR=${TA_DEV_KIT_DIR} \ + HOST_CROSS_COMPILE=${TARGET_PREFIX} \ + TA_CROSS_COMPILE=${TARGET_PREFIX} \ + PLATFORM=${PLATFORM} \ + V=1 \ + " + +do_compile() { + oe_runmake +} + +do_install () { + mkdir -p ${D}${nonarch_base_libdir}/optee_armtz + mkdir -p ${D}${bindir} + install -D -p -m0755 ${S}/out/ca/* ${D}${bindir} + install -D -p -m0444 ${S}/out/ta/* ${D}${nonarch_base_libdir}/optee_armtz +} + +FILES_${PN} += "${nonarch_base_libdir}/optee_armtz/" |