summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZelan Zou <zelan.zou@nxp.com>2025-09-01 14:22:28 +0800
committerZelan Zou <zelan.zou@nxp.com>2025-09-03 11:32:25 +0800
commita54f269cde8b55aa6393032f427f04648c78d270 (patch)
tree7df6b9b5cd5dd6b9e65772ee57f7b431dadf2a60
parenta12bf597b54404c440e6fab2316173ff275c3242 (diff)
downloadmeta-freescale-a54f269cde8b55aa6393032f427f04648c78d270.tar.gz
optee-test-qoriq: Upgrade 3.13 -> 4.6.0
Update from LF6.12.20-2.0.0 Signed-off-by: Zelan Zou <zelan.zou@nxp.com>
-rw-r--r--recipes-security/optee-qoriq/optee-test-qoriq_3.13.0.bb13
-rw-r--r--recipes-security/optee-qoriq/optee-test-qoriq_4.6.0.bb10
-rw-r--r--recipes-security/optee-qoriq/optee-test.nxp.inc65
3 files changed, 20 insertions, 68 deletions
diff --git a/recipes-security/optee-qoriq/optee-test-qoriq_3.13.0.bb b/recipes-security/optee-qoriq/optee-test-qoriq_3.13.0.bb
deleted file mode 100644
index 69ef73d3a..000000000
--- a/recipes-security/optee-qoriq/optee-test-qoriq_3.13.0.bb
+++ /dev/null
@@ -1,13 +0,0 @@
1require optee-test.nxp.inc
2
3PV:append = "+git${SRCPV}"
4
5DEPENDS += "optee-client-qoriq optee-os-qoriq"
6
7TEEC_EXPORT = "${STAGING_DIR_HOST}${prefix}"
8
9EXTRA_OEMAKE += " \
10 TEEC_EXPORT=${TEEC_EXPORT} \
11"
12
13COMPATIBLE_MACHINE = "(qoriq-arm64)"
diff --git a/recipes-security/optee-qoriq/optee-test-qoriq_4.6.0.bb b/recipes-security/optee-qoriq/optee-test-qoriq_4.6.0.bb
new file mode 100644
index 000000000..d008a6211
--- /dev/null
+++ b/recipes-security/optee-qoriq/optee-test-qoriq_4.6.0.bb
@@ -0,0 +1,10 @@
1require optee-test.nxp.inc
2
3# The BSD and GPL license files are now included in the source
4# https://github.com/OP-TEE/optee_test/commit/a748f5fcd9ec8a574dc86a5aa56d05bc6ac174e7
5LIC_FILES_CHKSUM = "file://LICENSE.md;md5=a8fa504109e4cd7ea575bc49ea4be560 \
6 file://LICENSE-BSD;md5=dca16d6efa93b55d0fd662ae5cd6feeb \
7 file://LICENSE-GPL;md5=10e86b5d2a6cb0e2b9dcfdd26a9ac58d"
8
9OPTEE_TEST_BRANCH = "lf-6.12.20_2.0.0"
10SRCREV = "010f088f05b5ebf392c6e235d6e53d391755722f"
diff --git a/recipes-security/optee-qoriq/optee-test.nxp.inc b/recipes-security/optee-qoriq/optee-test.nxp.inc
index 17108ff38..48d5a4211 100644
--- a/recipes-security/optee-qoriq/optee-test.nxp.inc
+++ b/recipes-security/optee-qoriq/optee-test.nxp.inc
@@ -1,60 +1,15 @@
1# Copyright 2020-2021 NXP 1# Copyright 2020-2021,2025 NXP
2require recipes-security/optee-imx/optee-test-fslc.inc
2 3
3SUMMARY = "OPTEE test" 4DEPENDS:remove = "optee-client optee-os-tadevkit"
4HOMEPAGE = "http://www.optee.org/" 5DEPENDS:append = "optee-client-qoriq optee-os-qoriq-tadevkit openssl"
5 6
6LICENSE = "BSD & GPL-2.0-only" 7SRC_URI:remove = "git://github.com/OP-TEE/optee_test.git;branch=master;protocol=https"
7LIC_FILES_CHKSUM = "file://LICENSE.md;md5=daa2bcccc666345ab8940aab1315a4fa" 8SRC_URI:remove = "file://run-ptest"
9SRC_URI:prepend = "${OPTEE_TEST_SRC};branch=${OPTEE_TEST_BRANCH} "
8 10
9DEPENDS = "python3-pycryptodome-native python3-pycryptodomex-native openssl" 11OPTEE_TEST_SRC ?= "git://github.com/nxp-qoriq/optee_test.git;protocol=https"
10inherit python3native cmake
11 12
12SRC_URI = "git://github.com/nxp-qoriq/optee_test.git;protocol=https;nobranch=1" 13CFLAGS += " -Wno-error=unterminated-string-initialization"
13SRCREV = "69722dab8c1f2683e30e0ee3b536053367e37aad"
14 14
15B = "${WORKDIR}/build" 15COMPATIBLE_MACHINE = "(qoriq-arm64)"
16
17TA_DEV_KIT_DIR ?= "${STAGING_INCDIR}/optee/export-user_ta"
18OPTEE_CLIENT_EXPORT ?= "${STAGING_DIR_HOST}${prefix}"
19
20EXTRA_OEMAKE = " \
21 TA_DEV_KIT_DIR=${TA_DEV_KIT_DIR} \
22 OPTEE_CLIENT_EXPORT=${OPTEE_CLIENT_EXPORT} \
23 CROSS_COMPILE_HOST=${HOST_PREFIX} \
24 CROSS_COMPILE_TA=${HOST_PREFIX} \
25 OPTEE_OPENSSL_EXPORT=${STAGING_INCDIR}/ \
26 -C ${S} O=${B} \
27"
28
29EXTRA_OECMAKE = " \
30 -DOPTEE_TEST_SDK=${TA_DEV_KIT_DIR} \
31"
32
33do_compile() {
34 export CXXFLAGS="${CXXFLAGS} --sysroot=${STAGING_DIR_HOST}"
35 oe_runmake xtest
36 oe_runmake ta
37 oe_runmake test_plugin
38}
39
40do_install() {
41 install -d ${D}${bindir}/
42 install ${B}/xtest/xtest ${D}${bindir}/
43
44 install -d ${D}${nonarch_base_libdir}/optee_armtz
45 find ${B}/ta -name '*.ta' | while read name; do
46 install -m 444 $name ${D}${nonarch_base_libdir}/optee_armtz/
47 done
48
49 install -d ${D}${libdir}/tee-supplicant/plugins/
50 find ${B}/supp_plugin -name '*.plugin' | while read name; do
51 install -m 755 $name ${D}${libdir}/tee-supplicant/plugins/
52 done
53}
54
55FILES:${PN} += "${nonarch_base_libdir} ${libdir}/tee-supplicant/plugins/"
56
57DEBUG_OPTIMIZATION:append = " -Wno-error=maybe-uninitialized -Wno-deprecated-declarations"
58FULL_OPTIMIZATION:append = " -Wno-error=maybe-uninitialized -Wno-deprecated-declarations"
59
60PACKAGE_ARCH = "${MACHINE_ARCH}"