diff options
Diffstat (limited to 'recipes-security/optee-imx/optee-test_3.7.0.imx.bb')
-rw-r--r-- | recipes-security/optee-imx/optee-test_3.7.0.imx.bb | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/recipes-security/optee-imx/optee-test_3.7.0.imx.bb b/recipes-security/optee-imx/optee-test_3.7.0.imx.bb new file mode 100644 index 00000000..04240ff0 --- /dev/null +++ b/recipes-security/optee-imx/optee-test_3.7.0.imx.bb | |||
@@ -0,0 +1,55 @@ | |||
1 | # Copyright (C) 2017-2018 NXP | ||
2 | |||
3 | SUMMARY = "OPTEE test" | ||
4 | HOMEPAGE = "http://www.optee.org/" | ||
5 | |||
6 | LICENSE = "BSD" | ||
7 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=daa2bcccc666345ab8940aab1315a4fa" | ||
8 | |||
9 | DEPENDS = "optee-os optee-client python3-pycrypto-native openssl" | ||
10 | inherit python3native | ||
11 | |||
12 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
13 | |||
14 | SRCBRANCH = "imx_5.4.24_2.1.0" | ||
15 | |||
16 | SRC_URI = "git://source.codeaurora.org/external/imx/imx-optee-test.git;protocol=https;branch=${SRCBRANCH} \ | ||
17 | file://0001-use-python3-instead-of-python.patch \ | ||
18 | " | ||
19 | |||
20 | S = "${WORKDIR}/git" | ||
21 | B = "${WORKDIR}/build" | ||
22 | |||
23 | SRCREV = "227d6f4c40eaa6f84fe049b9e48c7b27ad7fab08" | ||
24 | |||
25 | OPTEE_ARCH ?= "arm32" | ||
26 | OPTEE_ARCH_armv7a = "arm32" | ||
27 | OPTEE_ARCH_aarch64 = "arm64" | ||
28 | |||
29 | TA_DEV_KIT_DIR_arm = "${STAGING_INCDIR}/optee/export-user_ta_arm32/" | ||
30 | TA_DEV_KIT_DIR_aarch64 = "${STAGING_INCDIR}/optee/export-user_ta_arm64/" | ||
31 | |||
32 | EXTRA_OEMAKE = " \ | ||
33 | TA_DEV_KIT_DIR=${TA_DEV_KIT_DIR} \ | ||
34 | ARCH=${OPTEE_ARCH} \ | ||
35 | OPTEE_CLIENT_EXPORT=${STAGING_DIR_HOST}/usr \ | ||
36 | CROSS_COMPILE_HOST=${HOST_PREFIX} \ | ||
37 | CROSS_COMPILE_TA=${HOST_PREFIX} \ | ||
38 | CROSS_COMPILE=${HOST_PREFIX} \ | ||
39 | OPTEE_OPENSSL_EXPORT=${STAGING_INCDIR}/ \ | ||
40 | -C ${S} O=${B} \ | ||
41 | " | ||
42 | |||
43 | do_install () { | ||
44 | install -d ${D}/usr/bin | ||
45 | install ${B}/xtest/xtest ${D}/usr/bin/ | ||
46 | |||
47 | install -d ${D}/lib/optee_armtz | ||
48 | find ${B}/ta -name '*.ta' | while read name; do | ||
49 | install -m 444 $name ${D}/lib/optee_armtz/ | ||
50 | done | ||
51 | } | ||
52 | |||
53 | FILES_${PN} = "/usr/bin/ /lib*/optee_armtz/" | ||
54 | |||
55 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | ||