diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2022-10-25 19:30:59 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-25 19:30:59 -0300 |
commit | 3747641f1e71d8e4edd5b587b49d09dc2d243942 (patch) | |
tree | bd3395c664ea7e08bacb2a689f26941a2d7c67ce /recipes-security/optee-imx/optee-test_3.17.0.imx.bb | |
parent | 9f544ada2af55eebc10dd1cb932cf4899223398a (diff) | |
parent | 0d2e41d1dd60b4f8ba42def0e15b59f01e893677 (diff) | |
download | meta-freescale-3747641f1e71d8e4edd5b587b49d09dc2d243942.tar.gz |
Merge pull request #1281 from nsdrude/kirkstone
[Backport Kirkstone] optee
Diffstat (limited to 'recipes-security/optee-imx/optee-test_3.17.0.imx.bb')
-rw-r--r-- | recipes-security/optee-imx/optee-test_3.17.0.imx.bb | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/recipes-security/optee-imx/optee-test_3.17.0.imx.bb b/recipes-security/optee-imx/optee-test_3.17.0.imx.bb new file mode 100644 index 00000000..54f92d72 --- /dev/null +++ b/recipes-security/optee-imx/optee-test_3.17.0.imx.bb | |||
@@ -0,0 +1,60 @@ | |||
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://source.codeaurora.org/external/imx/imx-optee-test.git;protocol=https;branch=${SRCBRANCH}" | ||
12 | SRCBRANCH = "lf-5.15.32_2.0.0" | ||
13 | SRCREV = "e064126a9769f168d1d0e178b74955e6648683b4" | ||
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)" | ||