diff options
| author | Zelan Zou <zelan.zou@nxp.com> | 2025-09-01 14:22:28 +0800 |
|---|---|---|
| committer | Zelan Zou <zelan.zou@nxp.com> | 2025-09-03 11:32:25 +0800 |
| commit | a54f269cde8b55aa6393032f427f04648c78d270 (patch) | |
| tree | 7df6b9b5cd5dd6b9e65772ee57f7b431dadf2a60 | |
| parent | a12bf597b54404c440e6fab2316173ff275c3242 (diff) | |
| download | meta-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.bb | 13 | ||||
| -rw-r--r-- | recipes-security/optee-qoriq/optee-test-qoriq_4.6.0.bb | 10 | ||||
| -rw-r--r-- | recipes-security/optee-qoriq/optee-test.nxp.inc | 65 |
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 @@ | |||
| 1 | require optee-test.nxp.inc | ||
| 2 | |||
| 3 | PV:append = "+git${SRCPV}" | ||
| 4 | |||
| 5 | DEPENDS += "optee-client-qoriq optee-os-qoriq" | ||
| 6 | |||
| 7 | TEEC_EXPORT = "${STAGING_DIR_HOST}${prefix}" | ||
| 8 | |||
| 9 | EXTRA_OEMAKE += " \ | ||
| 10 | TEEC_EXPORT=${TEEC_EXPORT} \ | ||
| 11 | " | ||
| 12 | |||
| 13 | COMPATIBLE_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 @@ | |||
| 1 | require 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 | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=a8fa504109e4cd7ea575bc49ea4be560 \ | ||
| 6 | file://LICENSE-BSD;md5=dca16d6efa93b55d0fd662ae5cd6feeb \ | ||
| 7 | file://LICENSE-GPL;md5=10e86b5d2a6cb0e2b9dcfdd26a9ac58d" | ||
| 8 | |||
| 9 | OPTEE_TEST_BRANCH = "lf-6.12.20_2.0.0" | ||
| 10 | SRCREV = "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 |
| 2 | require recipes-security/optee-imx/optee-test-fslc.inc | ||
| 2 | 3 | ||
| 3 | SUMMARY = "OPTEE test" | 4 | DEPENDS:remove = "optee-client optee-os-tadevkit" |
| 4 | HOMEPAGE = "http://www.optee.org/" | 5 | DEPENDS:append = "optee-client-qoriq optee-os-qoriq-tadevkit openssl" |
| 5 | 6 | ||
| 6 | LICENSE = "BSD & GPL-2.0-only" | 7 | SRC_URI:remove = "git://github.com/OP-TEE/optee_test.git;branch=master;protocol=https" |
| 7 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=daa2bcccc666345ab8940aab1315a4fa" | 8 | SRC_URI:remove = "file://run-ptest" |
| 9 | SRC_URI:prepend = "${OPTEE_TEST_SRC};branch=${OPTEE_TEST_BRANCH} " | ||
| 8 | 10 | ||
| 9 | DEPENDS = "python3-pycryptodome-native python3-pycryptodomex-native openssl" | 11 | OPTEE_TEST_SRC ?= "git://github.com/nxp-qoriq/optee_test.git;protocol=https" |
| 10 | inherit python3native cmake | ||
| 11 | 12 | ||
| 12 | SRC_URI = "git://github.com/nxp-qoriq/optee_test.git;protocol=https;nobranch=1" | 13 | CFLAGS += " -Wno-error=unterminated-string-initialization" |
| 13 | SRCREV = "69722dab8c1f2683e30e0ee3b536053367e37aad" | ||
| 14 | 14 | ||
| 15 | B = "${WORKDIR}/build" | 15 | COMPATIBLE_MACHINE = "(qoriq-arm64)" |
| 16 | |||
| 17 | TA_DEV_KIT_DIR ?= "${STAGING_INCDIR}/optee/export-user_ta" | ||
| 18 | OPTEE_CLIENT_EXPORT ?= "${STAGING_DIR_HOST}${prefix}" | ||
| 19 | |||
| 20 | EXTRA_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 | |||
| 29 | EXTRA_OECMAKE = " \ | ||
| 30 | -DOPTEE_TEST_SDK=${TA_DEV_KIT_DIR} \ | ||
| 31 | " | ||
| 32 | |||
| 33 | do_compile() { | ||
| 34 | export CXXFLAGS="${CXXFLAGS} --sysroot=${STAGING_DIR_HOST}" | ||
| 35 | oe_runmake xtest | ||
| 36 | oe_runmake ta | ||
| 37 | oe_runmake test_plugin | ||
| 38 | } | ||
| 39 | |||
| 40 | do_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 | |||
| 55 | FILES:${PN} += "${nonarch_base_libdir} ${libdir}/tee-supplicant/plugins/" | ||
| 56 | |||
| 57 | DEBUG_OPTIMIZATION:append = " -Wno-error=maybe-uninitialized -Wno-deprecated-declarations" | ||
| 58 | FULL_OPTIMIZATION:append = " -Wno-error=maybe-uninitialized -Wno-deprecated-declarations" | ||
| 59 | |||
| 60 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
