diff options
Diffstat (limited to 'recipes-security/optee-imx/optee-test_3.19.0.imx.bb')
| -rw-r--r-- | recipes-security/optee-imx/optee-test_3.19.0.imx.bb | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/recipes-security/optee-imx/optee-test_3.19.0.imx.bb b/recipes-security/optee-imx/optee-test_3.19.0.imx.bb new file mode 100644 index 000000000..25cd86ddd --- /dev/null +++ b/recipes-security/optee-imx/optee-test_3.19.0.imx.bb | |||
| @@ -0,0 +1,62 @@ | |||
| 1 | # Copyright (C) 2017-2021 NXP | ||
| 2 | |||
| 3 | SUMMARY = "OPTEE test" | ||
| 4 | HOMEPAGE = "http://www.optee.org/" | ||
| 5 | |||
| 6 | LICENSE = "BSD-2-Clause & GPL-2.0-only" | ||
| 7 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=daa2bcccc666345ab8940aab1315a4fa" | ||
| 8 | |||
| 9 | DEPENDS = "python3-cryptography-native optee-os optee-client openssl" | ||
| 10 | |||
| 11 | SRC_URI = "git://github.com/nxp-imx/imx-optee-test.git;protocol=https;branch=${SRCBRANCH}" | ||
| 12 | SRCBRANCH = "lf-5.15.71_2.2.0" | ||
| 13 | SRCREV = "5c1dbb531b304f7ae100958f6261b6cefea49b62" | ||
| 14 | |||
| 15 | S = "${WORKDIR}/git" | ||
| 16 | B = "${WORKDIR}/build" | ||
| 17 | |||
| 18 | inherit python3native features_check | ||
| 19 | |||
| 20 | REQUIRED_MACHINE_FEATURES = "optee" | ||
| 21 | |||
| 22 | OPTEE_ARCH:arm = "arm32" | ||
| 23 | OPTEE_ARCH:aarch64 = "arm64" | ||
| 24 | |||
| 25 | CFLAGS += "--sysroot=${STAGING_DIR_HOST}" | ||
| 26 | CXXFLAGS += "--sysroot=${STAGING_DIR_HOST}" | ||
| 27 | |||
| 28 | EXTRA_OEMAKE = " \ | ||
| 29 | TA_DEV_KIT_DIR=${STAGING_INCDIR}/optee/export-user_ta_${OPTEE_ARCH}/ \ | ||
| 30 | OPTEE_CLIENT_EXPORT=${STAGING_DIR_HOST}${exec_prefix} \ | ||
| 31 | CROSS_COMPILE_HOST=${HOST_PREFIX} \ | ||
| 32 | CROSS_COMPILE_TA=${HOST_PREFIX} \ | ||
| 33 | CROSS_COMPILE=${HOST_PREFIX} \ | ||
| 34 | OPENSSL_MODULES=${STAGING_LIBDIR_NATIVE}/ossl-modules \ | ||
| 35 | -C ${S} O=${B} \ | ||
| 36 | " | ||
| 37 | |||
| 38 | do_compile() { | ||
| 39 | oe_runmake all | ||
| 40 | } | ||
| 41 | do_compile[cleandirs] = "${B}" | ||
| 42 | |||
| 43 | do_install () { | ||
| 44 | install -d ${D}${bindir} | ||
| 45 | install ${B}/xtest/xtest ${D}${bindir} | ||
| 46 | |||
| 47 | install -d ${D}${nonarch_base_libdir}/optee_armtz | ||
| 48 | find ${B}/ta -name '*.ta' | while read name; do | ||
| 49 | install -m 444 $name ${D}${nonarch_base_libdir}/optee_armtz/ | ||
| 50 | done | ||
| 51 | |||
| 52 | install -d ${D}${libdir}/tee-supplicant/plugins/ | ||
| 53 | install ${B}/supp_plugin/*plugin ${D}${libdir}/tee-supplicant/plugins/ | ||
| 54 | } | ||
| 55 | |||
| 56 | FILES:${PN} += "${nonarch_base_libdir}/optee_armtz/ ${libdir}/tee-supplicant/plugins/" | ||
| 57 | |||
| 58 | RDEPENDS:${PN} = "optee-os" | ||
| 59 | |||
| 60 | COMPATIBLE_MACHINE = "(imx-nxp-bsp)" | ||
| 61 | |||
| 62 | TOOLCHAIN = "gcc" | ||
