diff options
| author | Zelan Zou <zelan.zou@nxp.com> | 2025-09-01 14:18:50 +0800 |
|---|---|---|
| committer | Zelan Zou <zelan.zou@nxp.com> | 2025-09-03 11:25:53 +0800 |
| commit | 14ba349001e475230a54470e69d532a7b02f53fc (patch) | |
| tree | 9c28934dca88f498ed48358512f5f3f212888d1a | |
| parent | 54e05b2601526981869da84d74fd2cb7c4ce6f69 (diff) | |
| download | meta-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>
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 @@ | |||
| 1 | require optee-client.nxp.inc | ||
| 2 | |||
| 3 | PV:append = "+git${SRCPV}" | ||
| 4 | |||
| 5 | COMPATIBLE_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 @@ | |||
| 1 | require optee-client.nxp.inc | ||
| 2 | |||
| 3 | OPTEE_CLIENT_BRANCH = "lf-6.12.20_2.0.0" | ||
| 4 | SRCREV = "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 | ||
| 3 | SUMMARY = "OPTEE Client libs" | 3 | require recipes-security/optee-imx/optee-client-fslc.inc |
| 4 | HOMEPAGE = "http://www.optee.org/" | ||
| 5 | LICENSE = "BSD" | ||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=69663ab153298557a59c67a60a743e5b" | ||
| 7 | 4 | ||
| 8 | inherit 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 | ||
| 7 | FILESEXTRAPATHS:prepend := "${THISDIR}/../optee-imx/optee-client:" | ||
| 9 | 8 | ||
| 10 | SRC_URI = "git://github.com/nxp-qoriq/optee_client.git;protocol=https;nobranch=1" | 9 | DEPENDS = "util-linux-libuuid" |
| 11 | SRCREV = "7c9c423d00e96bf51debd5fe10fd70dce83be5cc" | ||
| 12 | 10 | ||
| 13 | FILESEXTRAPATHS:prepend := "${THISDIR}/optee-client:" | 11 | SRC_URI:remove = "git://github.com/OP-TEE/optee_client.git;branch=master;protocol=https" |
| 14 | SRC_URI += "file://tee-supplicant.service" | 12 | SRC_URI:prepend = "${OPTEE_CLIENT_SRC};branch=${OPTEE_CLIENT_BRANCH} " |
| 15 | 13 | ||
| 16 | B = "${WORKDIR}/build" | 14 | OPTEE_CLIENT_SRC ?= "git://github.com/nxp-qoriq/optee_client.git;protocol=https" |
| 17 | 15 | ||
| 18 | OPTEE_ARCH ?= "arm32" | 16 | inherit pkgconfig |
| 19 | OPTEE_ARCH:armv7a = "arm32" | ||
| 20 | OPTEE_ARCH:aarch64 = "arm64" | ||
| 21 | 17 | ||
| 22 | EXTRA_OEMAKE = "ARCH=${OPTEE_ARCH} O=${B}" | 18 | do_install:append () { |
| 23 | 19 | if ! ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | |
| 24 | do_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 | |||
| 47 | SYSTEMD_SERVICE:${PN} = "tee-supplicant.service" | ||
| 48 | |||
| 49 | FILES:${PN} += "${libdir}/* ${includedir}/*" | ||
| 50 | |||
| 51 | INSANE_SKIP:${PN} = "ldflags dev-elf" | ||
| 52 | INSANE_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] | ||
| 2 | Description=TEE Supplicant | ||
| 3 | |||
| 4 | [Service] | ||
| 5 | User=root | ||
| 6 | EnvironmentFile=-/etc/default/tee-supplicant | ||
| 7 | ExecStart=/usr/bin/tee-supplicant $OPTARGS | ||
| 8 | |||
| 9 | [Install] | ||
| 10 | WantedBy=basic.target | ||
| 11 | |||
