mirror of
git://git.yoctoproject.org/meta-freescale.git
synced 2025-10-22 14:52:19 +02:00
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>
(cherry picked from commit a54f269cde
)
This commit is contained in:
parent
8b4cfabe83
commit
16fd254d37
|
@ -1,13 +0,0 @@
|
|||
require optee-test.nxp.inc
|
||||
|
||||
PV:append = "+git${SRCPV}"
|
||||
|
||||
DEPENDS += "optee-client-qoriq optee-os-qoriq"
|
||||
|
||||
TEEC_EXPORT = "${STAGING_DIR_HOST}${prefix}"
|
||||
|
||||
EXTRA_OEMAKE += " \
|
||||
TEEC_EXPORT=${TEEC_EXPORT} \
|
||||
"
|
||||
|
||||
COMPATIBLE_MACHINE = "(qoriq-arm64)"
|
10
recipes-security/optee-qoriq/optee-test-qoriq_4.6.0.bb
Normal file
10
recipes-security/optee-qoriq/optee-test-qoriq_4.6.0.bb
Normal file
|
@ -0,0 +1,10 @@
|
|||
require optee-test.nxp.inc
|
||||
|
||||
# The BSD and GPL license files are now included in the source
|
||||
# https://github.com/OP-TEE/optee_test/commit/a748f5fcd9ec8a574dc86a5aa56d05bc6ac174e7
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=a8fa504109e4cd7ea575bc49ea4be560 \
|
||||
file://LICENSE-BSD;md5=dca16d6efa93b55d0fd662ae5cd6feeb \
|
||||
file://LICENSE-GPL;md5=10e86b5d2a6cb0e2b9dcfdd26a9ac58d"
|
||||
|
||||
OPTEE_TEST_BRANCH = "lf-6.12.20_2.0.0"
|
||||
SRCREV = "010f088f05b5ebf392c6e235d6e53d391755722f"
|
|
@ -1,61 +1,17 @@
|
|||
# Copyright 2020-2021 NXP
|
||||
# Copyright 2020-2021,2025 NXP
|
||||
require recipes-security/optee-imx/optee-test-fslc.inc
|
||||
|
||||
SUMMARY = "OPTEE test"
|
||||
HOMEPAGE = "http://www.optee.org/"
|
||||
DEPENDS:remove = "optee-client optee-os-tadevkit"
|
||||
DEPENDS:append = "optee-client-qoriq optee-os-qoriq-tadevkit openssl"
|
||||
|
||||
LICENSE = "BSD & GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=daa2bcccc666345ab8940aab1315a4fa"
|
||||
SRC_URI:remove = "git://github.com/OP-TEE/optee_test.git;branch=master;protocol=https"
|
||||
SRC_URI:remove = "file://run-ptest"
|
||||
SRC_URI:prepend = "${OPTEE_TEST_SRC};branch=${OPTEE_TEST_BRANCH} "
|
||||
|
||||
DEPENDS = "python3-pycryptodome-native python3-pycryptodomex-native openssl"
|
||||
inherit python3native cmake
|
||||
OPTEE_TEST_SRC ?= "git://github.com/nxp-qoriq/optee_test.git;protocol=https"
|
||||
|
||||
SRC_URI = "git://github.com/nxp-qoriq/optee_test.git;protocol=https;nobranch=1"
|
||||
SRCREV = "69722dab8c1f2683e30e0ee3b536053367e37aad"
|
||||
CFLAGS += " -Wno-error=unterminated-string-initialization"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
B = "${WORKDIR}/build"
|
||||
|
||||
TA_DEV_KIT_DIR ?= "${STAGING_INCDIR}/optee/export-user_ta"
|
||||
OPTEE_CLIENT_EXPORT ?= "${STAGING_DIR_HOST}${prefix}"
|
||||
|
||||
EXTRA_OEMAKE = " \
|
||||
TA_DEV_KIT_DIR=${TA_DEV_KIT_DIR} \
|
||||
OPTEE_CLIENT_EXPORT=${OPTEE_CLIENT_EXPORT} \
|
||||
CROSS_COMPILE_HOST=${HOST_PREFIX} \
|
||||
CROSS_COMPILE_TA=${HOST_PREFIX} \
|
||||
OPTEE_OPENSSL_EXPORT=${STAGING_INCDIR}/ \
|
||||
-C ${S} O=${B} \
|
||||
"
|
||||
|
||||
EXTRA_OECMAKE = " \
|
||||
-DOPTEE_TEST_SDK=${TA_DEV_KIT_DIR} \
|
||||
"
|
||||
|
||||
do_compile() {
|
||||
export CXXFLAGS="${CXXFLAGS} --sysroot=${STAGING_DIR_HOST}"
|
||||
oe_runmake xtest
|
||||
oe_runmake ta
|
||||
oe_runmake test_plugin
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${bindir}/
|
||||
install ${B}/xtest/xtest ${D}${bindir}/
|
||||
|
||||
install -d ${D}${nonarch_base_libdir}/optee_armtz
|
||||
find ${B}/ta -name '*.ta' | while read name; do
|
||||
install -m 444 $name ${D}${nonarch_base_libdir}/optee_armtz/
|
||||
done
|
||||
|
||||
install -d ${D}${libdir}/tee-supplicant/plugins/
|
||||
find ${B}/supp_plugin -name '*.plugin' | while read name; do
|
||||
install -m 755 $name ${D}${libdir}/tee-supplicant/plugins/
|
||||
done
|
||||
}
|
||||
|
||||
FILES:${PN} += "${nonarch_base_libdir} ${libdir}/tee-supplicant/plugins/"
|
||||
|
||||
DEBUG_OPTIMIZATION:append = " -Wno-error=maybe-uninitialized -Wno-deprecated-declarations"
|
||||
FULL_OPTIMIZATION:append = " -Wno-error=maybe-uninitialized -Wno-deprecated-declarations"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
COMPATIBLE_MACHINE = "(qoriq-arm64)"
|
||||
|
|
Loading…
Reference in New Issue
Block a user