diff options
author | Ting Liu <ting.liu@nxp.com> | 2020-12-15 16:45:57 +0800 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2020-12-16 11:37:59 -0300 |
commit | 3f501cdb5b1fb6da41a94a6d48e4d9d7cbe61b73 (patch) | |
tree | f6392db675e112f3f834c5a88a1bc7867fc391c0 /recipes-security/optee/optee-test-qoriq_3.8.0.bb | |
parent | b665fe6ad0a3eac583cab3cb606038a20a53523e (diff) | |
download | meta-freescale-3f501cdb5b1fb6da41a94a6d48e4d9d7cbe61b73.tar.gz |
optee-test-qoriq: upgrade to 3.8.0
Switch to use codes from https://github.com/OP-TEE/optee_test,
tag: 3.8.0
Signed-off-by: Ting Liu <ting.liu@nxp.com>
Diffstat (limited to 'recipes-security/optee/optee-test-qoriq_3.8.0.bb')
-rw-r--r-- | recipes-security/optee/optee-test-qoriq_3.8.0.bb | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/recipes-security/optee/optee-test-qoriq_3.8.0.bb b/recipes-security/optee/optee-test-qoriq_3.8.0.bb new file mode 100644 index 00000000..f46f8c6f --- /dev/null +++ b/recipes-security/optee/optee-test-qoriq_3.8.0.bb | |||
@@ -0,0 +1,47 @@ | |||
1 | SUMMARY = "OP-TEE sanity testsuite" | ||
2 | HOMEPAGE = "https://github.com/OP-TEE/optee_test" | ||
3 | |||
4 | LICENSE = "BSD & GPLv2" | ||
5 | LIC_FILES_CHKSUM = "file://${S}/LICENSE.md;md5=daa2bcccc666345ab8940aab1315a4fa" | ||
6 | |||
7 | DEPENDS = "optee-client-qoriq optee-os-qoriq python3-pycryptodome-native" | ||
8 | |||
9 | inherit python3native | ||
10 | |||
11 | SRC_URI = "git://github.com/OP-TEE/optee_test;nobranch=1" | ||
12 | SRCREV = "30481e381cb4285706e7516853495a7699c93b2c" | ||
13 | |||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | OPTEE_CLIENT_EXPORT = "${STAGING_DIR_HOST}${prefix}" | ||
17 | TEEC_EXPORT = "${STAGING_DIR_HOST}${prefix}" | ||
18 | TA_DEV_KIT_DIR = "${STAGING_INCDIR}/optee/export-user_ta" | ||
19 | |||
20 | EXTRA_OEMAKE = " TA_DEV_KIT_DIR=${TA_DEV_KIT_DIR} \ | ||
21 | OPTEE_CLIENT_EXPORT=${OPTEE_CLIENT_EXPORT} \ | ||
22 | CFG_ARM64=y \ | ||
23 | CROSS_COMPILE_HOST=${TARGET_PREFIX} \ | ||
24 | CROSS_COMPILE_TA=${TARGET_PREFIX} \ | ||
25 | V=1 \ | ||
26 | " | ||
27 | |||
28 | do_compile() { | ||
29 | # Top level makefile doesn't seem to handle parallel make gracefully | ||
30 | oe_runmake xtest | ||
31 | oe_runmake ta | ||
32 | } | ||
33 | |||
34 | do_install () { | ||
35 | install -D -p -m0755 ${S}/out/xtest/xtest ${D}${bindir}/xtest | ||
36 | |||
37 | # install path should match the value set in optee-client/tee-supplicant | ||
38 | # default TEEC_LOAD_PATH is /lib | ||
39 | mkdir -p ${D}/lib/optee_armtz/ | ||
40 | install -D -p -m0444 ${S}/out/ta/*/*.ta ${D}/lib/optee_armtz/ | ||
41 | } | ||
42 | |||
43 | FILES_${PN} += "/lib/optee_armtz/" | ||
44 | |||
45 | # Imports machine specific configs from staging to build | ||
46 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
47 | COMPATIBLE_MACHINE = "(qoriq-arm64)" | ||