summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZelan Zou <zelan.zou@nxp.com>2025-09-01 14:18:50 +0800
committerZelan Zou <zelan.zou@nxp.com>2025-09-03 11:25:53 +0800
commit14ba349001e475230a54470e69d532a7b02f53fc (patch)
tree9c28934dca88f498ed48358512f5f3f212888d1a
parent54e05b2601526981869da84d74fd2cb7c4ce6f69 (diff)
downloadmeta-freescale-14ba349001e475230a54470e69d532a7b02f53fc.tar.gz
optee-client-qoriq: Upgrade 3.13.0 -> 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-client-qoriq_3.13.0.bb5
-rw-r--r--recipes-security/optee-qoriq/optee-client-qoriq_4.6.0.bb4
-rw-r--r--recipes-security/optee-qoriq/optee-client.nxp.inc58
-rw-r--r--recipes-security/optee-qoriq/optee-client/tee-supplicant.service11
4 files changed, 18 insertions, 60 deletions
diff --git a/recipes-security/optee-qoriq/optee-client-qoriq_3.13.0.bb b/recipes-security/optee-qoriq/optee-client-qoriq_3.13.0.bb
deleted file mode 100644
index 94123e435..000000000
--- a/recipes-security/optee-qoriq/optee-client-qoriq_3.13.0.bb
+++ /dev/null
@@ -1,5 +0,0 @@
1require optee-client.nxp.inc
2
3PV:append = "+git${SRCPV}"
4
5COMPATIBLE_MACHINE = "(qoriq-arm64)"
diff --git a/recipes-security/optee-qoriq/optee-client-qoriq_4.6.0.bb b/recipes-security/optee-qoriq/optee-client-qoriq_4.6.0.bb
new file mode 100644
index 000000000..4b61f7c04
--- /dev/null
+++ b/recipes-security/optee-qoriq/optee-client-qoriq_4.6.0.bb
@@ -0,0 +1,4 @@
1require optee-client.nxp.inc
2
3OPTEE_CLIENT_BRANCH = "lf-6.12.20_2.0.0"
4SRCREV = "02e7f9213b0d7db9c35ebf1e41e733fc9c5a3f75"
diff --git a/recipes-security/optee-qoriq/optee-client.nxp.inc b/recipes-security/optee-qoriq/optee-client.nxp.inc
index a7e51a29d..590540cd8 100644
--- a/recipes-security/optee-qoriq/optee-client.nxp.inc
+++ b/recipes-security/optee-qoriq/optee-client.nxp.inc
@@ -1,52 +1,22 @@
1# Copyright 2020-2021 NXP 1# Copyright 2020-2021,2025 NXP
2 2
3SUMMARY = "OPTEE Client libs" 3require recipes-security/optee-imx/optee-client-fslc.inc
4HOMEPAGE = "http://www.optee.org/"
5LICENSE = "BSD"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=69663ab153298557a59c67a60a743e5b"
7 4
8inherit python3native systemd 5# The patch same as imx-optee, so point FILESEXTRAPATHS to optee-imx/optee-client,
6# avoid duplicate copy files to optee-qoriq
7FILESEXTRAPATHS:prepend := "${THISDIR}/../optee-imx/optee-client:"
9 8
10SRC_URI = "git://github.com/nxp-qoriq/optee_client.git;protocol=https;nobranch=1" 9DEPENDS = "util-linux-libuuid"
11SRCREV = "7c9c423d00e96bf51debd5fe10fd70dce83be5cc"
12 10
13FILESEXTRAPATHS:prepend := "${THISDIR}/optee-client:" 11SRC_URI:remove = "git://github.com/OP-TEE/optee_client.git;branch=master;protocol=https"
14SRC_URI += "file://tee-supplicant.service" 12SRC_URI:prepend = "${OPTEE_CLIENT_SRC};branch=${OPTEE_CLIENT_BRANCH} "
15 13
16B = "${WORKDIR}/build" 14OPTEE_CLIENT_SRC ?= "git://github.com/nxp-qoriq/optee_client.git;protocol=https"
17 15
18OPTEE_ARCH ?= "arm32" 16inherit pkgconfig
19OPTEE_ARCH:armv7a = "arm32"
20OPTEE_ARCH:aarch64 = "arm64"
21 17
22EXTRA_OEMAKE = "ARCH=${OPTEE_ARCH} O=${B}" 18do_install:append () {
23 19 if ! ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
24do_install () { 20 rm -rf ${D}${libdir}/systemd
25 oe_runmake -C ${S} install 21 fi
26
27 install -d ${D}${libdir}/
28 install -p -m0644 ${B}/export${libdir}/libteec.so.1.0.0 ${D}${libdir}/
29 ln -sf libteec.so.1.0.0 ${D}${libdir}/libteec.so.1.0
30 ln -sf libteec.so.1.0.0 ${D}${libdir}/libteec.so.1
31 ln -sf libteec.so.1 ${D}${libdir}/libteec.so
32
33 install -D -p -m0644 ${B}/export/usr/lib/libckteec.so.0.1.0 ${D}${libdir}/libckteec.so.0.1.0
34 ln -sf libckteec.so.0.1.0 ${D}${libdir}/libckteec.so.0.1
35 ln -sf libckteec.so.0.1.0 ${D}${libdir}/libckteec.so.0
36 ln -sf libckteec.so.0.1.0 ${D}${libdir}/libckteec.so
37
38 install -D -p -m0755 ${B}/export/usr/sbin/tee-supplicant ${D}${bindir}/tee-supplicant
39
40 cp -a ${B}/export/usr/include ${D}${includedir}
41
42 install -d ${D}${systemd_system_unitdir}/
43 install -m0644 ${UNPACKDIR}/tee-supplicant.service ${D}${systemd_system_unitdir}/
44 sed -i -e s:/etc:${sysconfdir}:g -e s:/usr/bin:${bindir}:g ${D}${systemd_system_unitdir}/tee-supplicant.service
45} 22}
46
47SYSTEMD_SERVICE:${PN} = "tee-supplicant.service"
48
49FILES:${PN} += "${libdir}/* ${includedir}/*"
50
51INSANE_SKIP:${PN} = "ldflags dev-elf"
52INSANE_SKIP:${PN}-dev = "ldflags dev-elf"
diff --git a/recipes-security/optee-qoriq/optee-client/tee-supplicant.service b/recipes-security/optee-qoriq/optee-client/tee-supplicant.service
deleted file mode 100644
index 0e2b4f6ba..000000000
--- a/recipes-security/optee-qoriq/optee-client/tee-supplicant.service
+++ /dev/null
@@ -1,11 +0,0 @@
1[Unit]
2Description=TEE Supplicant
3
4[Service]
5User=root
6EnvironmentFile=-/etc/default/tee-supplicant
7ExecStart=/usr/bin/tee-supplicant $OPTARGS
8
9[Install]
10WantedBy=basic.target
11