diff options
author | Oleksandr Suvorov <oleksandr.suvorov@foundries.io> | 2023-05-01 18:14:59 +0300 |
---|---|---|
committer | Oleksandr Suvorov <oleksandr.suvorov@foundries.io> | 2023-05-02 17:30:14 +0300 |
commit | c4288a04f82cea6763f12448e87d95e5c0364cf7 (patch) | |
tree | 1102b21395908b4427ca053a93a27f12ded53729 /recipes-security/optee-imx/optee-test-fslc.inc | |
parent | c112655d9b4b4ca79a14237c658a9fec7db325c0 (diff) | |
download | meta-freescale-c4288a04f82cea6763f12448e87d95e5c0364cf7.tar.gz |
optee: optimize optee-os and optee-test recipes to reuse code
Add include files for optee-os and optee-test.
The include files feature requirements that are specific to
optee/optee-os/optee-test projects and i.MX platforms.
Recipe files with version number feature the git branch, commit hash
and optionally repo URL/patch set.
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
Diffstat (limited to 'recipes-security/optee-imx/optee-test-fslc.inc')
-rw-r--r-- | recipes-security/optee-imx/optee-test-fslc.inc | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/recipes-security/optee-imx/optee-test-fslc.inc b/recipes-security/optee-imx/optee-test-fslc.inc new file mode 100644 index 00000000..e0c133a7 --- /dev/null +++ b/recipes-security/optee-imx/optee-test-fslc.inc | |||
@@ -0,0 +1,38 @@ | |||
1 | # Copyright (C) 2017-2021 NXP | ||
2 | |||
3 | SUMMARY = "OPTEE test" | ||
4 | LICENSE = "BSD-2-Clause & GPL-2.0-only" | ||
5 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=daa2bcccc666345ab8940aab1315a4fa" | ||
6 | |||
7 | require optee-fslc.inc | ||
8 | |||
9 | DEPENDS += "optee-os optee-client openssl" | ||
10 | |||
11 | EXTRA_OEMAKE += " \ | ||
12 | TA_DEV_KIT_DIR=${STAGING_INCDIR}/optee/export-user_ta_${OPTEE_ARCH}/ \ | ||
13 | CROSS_COMPILE_HOST=${HOST_PREFIX} \ | ||
14 | CROSS_COMPILE_TA=${HOST_PREFIX} \ | ||
15 | CROSS_COMPILE=${HOST_PREFIX} \ | ||
16 | " | ||
17 | |||
18 | do_compile() { | ||
19 | oe_runmake all | ||
20 | } | ||
21 | do_compile[cleandirs] = "${B}" | ||
22 | |||
23 | do_install () { | ||
24 | install -d ${D}${bindir} | ||
25 | install ${B}/xtest/xtest ${D}${bindir} | ||
26 | |||
27 | install -d ${D}${nonarch_base_libdir}/optee_armtz | ||
28 | find ${B}/ta -name '*.ta' | while read name; do | ||
29 | install -m 444 $name ${D}${nonarch_base_libdir}/optee_armtz/ | ||
30 | done | ||
31 | |||
32 | install -d ${D}${libdir}/tee-supplicant/plugins/ | ||
33 | install ${B}/supp_plugin/*plugin ${D}${libdir}/tee-supplicant/plugins/ | ||
34 | } | ||
35 | |||
36 | FILES:${PN} += "${nonarch_base_libdir}/optee_armtz/ ${libdir}/tee-supplicant/plugins/" | ||
37 | |||
38 | RDEPENDS:${PN} = "optee-os" | ||