blob: 64b41a8edea57ef9b5fe786c45bbee2aaf12adfb [file] [log] [blame]
Brad Bishopbec4ebc2022-08-03 09:55:16 -04001SUMMARY = "OP-TEE sanity testsuite"
2DESCRIPTION = "Open Portable Trusted Execution Environment - Test suite"
3HOMEPAGE = "https://www.op-tee.org/"
4
5LICENSE = "BSD-2-Clause & GPL-2.0-only"
6LIC_FILES_CHKSUM = "file://LICENSE.md;md5=daa2bcccc666345ab8940aab1315a4fa"
7
8inherit python3native ptest
9require optee.inc
10
11DEPENDS = "optee-client optee-os-tadevkit python3-cryptography-native"
12
13SRC_URI = "git://github.com/OP-TEE/optee_test.git;branch=master;protocol=https \
14 file://run-ptest \
15 "
16
17S = "${WORKDIR}/git"
18B = "${WORKDIR}/build"
19
20EXTRA_OEMAKE += "TA_DEV_KIT_DIR=${TA_DEV_KIT_DIR} \
21 CROSS_COMPILE_HOST=${HOST_PREFIX} \
22 CROSS_COMPILE_TA=${HOST_PREFIX} \
23 O=${B} \
24 "
25
26do_compile() {
27 cd ${S}
28 # Top level makefile doesn't seem to handle parallel make gracefully
29 oe_runmake xtest
30 oe_runmake ta
31 oe_runmake test_plugin
32}
33do_compile[cleandirs] = "${B}"
34
35do_install () {
36 install -D -p -m0755 ${B}/xtest/xtest ${D}${bindir}/xtest
37
38 # install path should match the value set in optee-client/tee-supplicant
39 # default TEEC_LOAD_PATH is /lib
40 mkdir -p ${D}${nonarch_base_libdir}/optee_armtz/
41 install -D -p -m0444 ${B}/ta/*/*.ta ${D}${nonarch_base_libdir}/optee_armtz/
42 mkdir -p ${D}${libdir}/tee-supplicant/plugins
43 install -D -p -m0444 ${B}/supp_plugin/*.plugin ${D}${libdir}/tee-supplicant/plugins/
44}
45
46FILES:${PN} += "${nonarch_base_libdir}/optee_armtz/ \
47 ${libdir}/tee-supplicant/plugins/ \
48 "
49
50# Imports machine specific configs from staging to build
51PACKAGE_ARCH = "${MACHINE_ARCH}"