diff options
author | Tom Hochstein <tom.hochstein@nxp.com> | 2025-03-26 06:59:25 -0700 |
---|---|---|
committer | Rodrigo M. Duarte <rodrigo.duarte@ossystems.com.br> | 2025-03-31 17:06:06 -0300 |
commit | c611cefd8038dce0c7e1e4ecfb0ce5bebff2d809 (patch) | |
tree | 24ddaca1aecd76540860673a5c130926af0de444 /recipes-security/optee-imx/optee-test-fslc.inc | |
parent | 13b8d981e7e41acb5ba383e600680ace25ed6d88 (diff) | |
download | meta-freescale-c611cefd8038dce0c7e1e4ecfb0ce5bebff2d809.tar.gz |
optee-imx: Upgrade 4.2.0.imx -> 4.4.0.imx
Copy latest support from NXP BSP LF6.6.52_2.2.0.
Note that clang is disabled in optee-os-fslc.inc, which is copied from
meta-arm optee-os.inc.
Fixes: Issue 2048 - Upgrade BSP to LF6.6.52_2.2.0
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Diffstat (limited to 'recipes-security/optee-imx/optee-test-fslc.inc')
-rw-r--r-- | recipes-security/optee-imx/optee-test-fslc.inc | 67 |
1 files changed, 47 insertions, 20 deletions
diff --git a/recipes-security/optee-imx/optee-test-fslc.inc b/recipes-security/optee-imx/optee-test-fslc.inc index e0c133a7..0fb5f878 100644 --- a/recipes-security/optee-imx/optee-test-fslc.inc +++ b/recipes-security/optee-imx/optee-test-fslc.inc | |||
@@ -1,38 +1,65 @@ | |||
1 | # Copyright (C) 2017-2021 NXP | 1 | # Copied from meta-arm/recipes-security/optee/optee-test.inc. |
2 | # See: https://github.com/nxp-imx/imx-manifest/blob/imx-linux-scarthgap/imx-6.6.52-2.2.0.xml#L30 | ||
3 | |||
4 | SUMMARY = "OP-TEE sanity testsuite" | ||
5 | DESCRIPTION = "Open Portable Trusted Execution Environment - Test suite" | ||
6 | HOMEPAGE = "https://www.op-tee.org/" | ||
2 | 7 | ||
3 | SUMMARY = "OPTEE test" | ||
4 | LICENSE = "BSD-2-Clause & GPL-2.0-only" | 8 | LICENSE = "BSD-2-Clause & GPL-2.0-only" |
5 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=daa2bcccc666345ab8940aab1315a4fa" | 9 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=daa2bcccc666345ab8940aab1315a4fa" |
6 | 10 | ||
11 | inherit python3native ptest | ||
12 | inherit deploy | ||
7 | require optee-fslc.inc | 13 | require optee-fslc.inc |
8 | 14 | ||
9 | DEPENDS += "optee-os optee-client openssl" | 15 | DEPENDS = "optee-client optee-os-tadevkit python3-cryptography-native openssl" |
16 | |||
17 | SRC_URI = "git://github.com/OP-TEE/optee_test.git;branch=master;protocol=https \ | ||
18 | file://run-ptest \ | ||
19 | " | ||
20 | |||
21 | S = "${WORKDIR}/git" | ||
22 | B = "${WORKDIR}/build" | ||
10 | 23 | ||
11 | EXTRA_OEMAKE += " \ | 24 | EXTRA_OEMAKE += "TA_DEV_KIT_DIR=${TA_DEV_KIT_DIR} \ |
12 | TA_DEV_KIT_DIR=${STAGING_INCDIR}/optee/export-user_ta_${OPTEE_ARCH}/ \ | 25 | OPTEE_OPENSSL_EXPORT=${STAGING_INCDIR} \ |
13 | CROSS_COMPILE_HOST=${HOST_PREFIX} \ | 26 | CROSS_COMPILE_HOST=${HOST_PREFIX} \ |
14 | CROSS_COMPILE_TA=${HOST_PREFIX} \ | 27 | CROSS_COMPILE_TA=${HOST_PREFIX} \ |
15 | CROSS_COMPILE=${HOST_PREFIX} \ | 28 | O=${B} \ |
16 | " | 29 | " |
30 | |||
31 | CFLAGS += "-Wno-error=deprecated-declarations" | ||
17 | 32 | ||
18 | do_compile() { | 33 | do_compile() { |
19 | oe_runmake all | 34 | cd ${S} |
35 | # Top level makefile doesn't seem to handle parallel make gracefully | ||
36 | oe_runmake xtest | ||
37 | oe_runmake ta | ||
38 | oe_runmake test_plugin | ||
20 | } | 39 | } |
21 | do_compile[cleandirs] = "${B}" | 40 | do_compile[cleandirs] = "${B}" |
22 | 41 | ||
23 | do_install () { | 42 | do_install () { |
24 | install -d ${D}${bindir} | 43 | install -D -p -m0755 ${B}/xtest/xtest ${D}${bindir}/xtest |
25 | install ${B}/xtest/xtest ${D}${bindir} | ||
26 | 44 | ||
27 | install -d ${D}${nonarch_base_libdir}/optee_armtz | 45 | # install path should match the value set in optee-client/tee-supplicant |
28 | find ${B}/ta -name '*.ta' | while read name; do | 46 | # default TEEC_LOAD_PATH is /lib |
29 | install -m 444 $name ${D}${nonarch_base_libdir}/optee_armtz/ | 47 | mkdir -p ${D}${nonarch_base_libdir}/optee_armtz/ |
30 | done | 48 | install -D -p -m0444 ${B}/ta/*/*.ta ${D}${nonarch_base_libdir}/optee_armtz/ |
49 | mkdir -p ${D}${libdir}/tee-supplicant/plugins | ||
50 | install -D -p -m0444 ${B}/supp_plugin/*.plugin ${D}${libdir}/tee-supplicant/plugins/ | ||
51 | } | ||
31 | 52 | ||
32 | install -d ${D}${libdir}/tee-supplicant/plugins/ | 53 | do_deploy () { |
33 | install ${B}/supp_plugin/*plugin ${D}${libdir}/tee-supplicant/plugins/ | 54 | install -d ${DEPLOYDIR}/${MLPREFIX}optee/ta |
55 | install -m 644 ${B}/ta/*/*.elf ${DEPLOYDIR}/${MLPREFIX}optee/ta | ||
34 | } | 56 | } |
35 | 57 | ||
36 | FILES:${PN} += "${nonarch_base_libdir}/optee_armtz/ ${libdir}/tee-supplicant/plugins/" | 58 | addtask deploy before do_build after do_install |
59 | |||
60 | FILES:${PN} += "${nonarch_base_libdir}/optee_armtz/ \ | ||
61 | ${libdir}/tee-supplicant/plugins/ \ | ||
62 | " | ||
37 | 63 | ||
38 | RDEPENDS:${PN} = "optee-os" | 64 | # Imports machine specific configs from staging to build |
65 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||