diff options
author | Tom Hochstein <tom.hochstein@nxp.com> | 2025-03-26 06:59:25 -0700 |
---|---|---|
committer | Rodrigo M. Duarte <rodrigo.duarte@ossystems.com.br> | 2025-03-31 17:06:06 -0300 |
commit | c611cefd8038dce0c7e1e4ecfb0ce5bebff2d809 (patch) | |
tree | 24ddaca1aecd76540860673a5c130926af0de444 /recipes-security/optee-imx/optee-client-fslc.inc | |
parent | 13b8d981e7e41acb5ba383e600680ace25ed6d88 (diff) | |
download | meta-freescale-c611cefd8038dce0c7e1e4ecfb0ce5bebff2d809.tar.gz |
optee-imx: Upgrade 4.2.0.imx -> 4.4.0.imx
Copy latest support from NXP BSP LF6.6.52_2.2.0.
Note that clang is disabled in optee-os-fslc.inc, which is copied from
meta-arm optee-os.inc.
Fixes: Issue 2048 - Upgrade BSP to LF6.6.52_2.2.0
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Diffstat (limited to 'recipes-security/optee-imx/optee-client-fslc.inc')
-rw-r--r-- | recipes-security/optee-imx/optee-client-fslc.inc | 59 |
1 files changed, 30 insertions, 29 deletions
diff --git a/recipes-security/optee-imx/optee-client-fslc.inc b/recipes-security/optee-imx/optee-client-fslc.inc index f55f0ab2..455bdd78 100644 --- a/recipes-security/optee-imx/optee-client-fslc.inc +++ b/recipes-security/optee-imx/optee-client-fslc.inc | |||
@@ -1,42 +1,43 @@ | |||
1 | # Copyright 2017-2024 NXP | 1 | # Copied from meta-arm/recipes-security/optee/optee-client.inc. |
2 | # See: https://github.com/nxp-imx/imx-manifest/blob/imx-linux-scarthgap/imx-6.6.52-2.2.0.xml#L30 | ||
3 | |||
4 | SUMMARY = "OP-TEE Client API" | ||
5 | DESCRIPTION = "Open Portable Trusted Execution Environment - Normal World Client side of the TEE" | ||
6 | HOMEPAGE = "https://www.op-tee.org/" | ||
2 | 7 | ||
3 | SUMMARY = "OPTEE Client libs" | ||
4 | HOMEPAGE = "http://www.optee.org/" | ||
5 | LICENSE = "BSD-2-Clause" | 8 | LICENSE = "BSD-2-Clause" |
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=69663ab153298557a59c67a60a743e5b" | 9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=69663ab153298557a59c67a60a743e5b" |
7 | 10 | ||
8 | SRC_URI = "file://tee-supplicant.service" | 11 | inherit systemd update-rc.d cmake |
9 | |||
10 | S = "${WORKDIR}/git" | ||
11 | B = "${WORKDIR}/build" | ||
12 | 12 | ||
13 | inherit python3native systemd features_check pkgconfig | 13 | SRC_URI = " \ |
14 | 14 | git://github.com/OP-TEE/optee_client.git;branch=master;protocol=https \ | |
15 | DEPENDS = "util-linux-libuuid" | 15 | file://tee-supplicant@.service \ |
16 | file://tee-supplicant.sh \ | ||
17 | " | ||
16 | 18 | ||
17 | REQUIRED_MACHINE_FEATURES = "optee" | 19 | UPSTREAM_CHECK_GITTAGREGEX = "^(?P<pver>\d+(\.\d+)+)$" |
18 | 20 | ||
19 | SYSTEMD_SERVICE:${PN} = "tee-supplicant.service" | 21 | S = "${WORKDIR}/git" |
20 | 22 | ||
21 | EXTRA_OEMAKE = " \ | 23 | EXTRA_OECMAKE = " \ |
22 | -C ${S} O=${B} \ | 24 | -DBUILD_SHARED_LIBS=ON \ |
25 | -DCFG_TEE_FS_PARENT_PATH='${localstatedir}/lib/tee' \ | ||
23 | " | 26 | " |
27 | EXTRA_OECMAKE:append:toolchain-clang = " -DCFG_WERROR=0" | ||
24 | 28 | ||
25 | do_install () { | 29 | do_install:append() { |
26 | oe_runmake -C ${S} install | 30 | install -D -p -m0644 ${UNPACKDIR}/tee-supplicant@.service ${D}${systemd_system_unitdir}/tee-supplicant@.service |
27 | 31 | install -D -p -m0755 ${UNPACKDIR}/tee-supplicant.sh ${D}${sysconfdir}/init.d/tee-supplicant | |
28 | install -D -p -m0644 ${B}/export/usr/lib/libteec.so.2.0.0 ${D}${libdir}/libteec.so.2.0.0 | ||
29 | ln -sf libteec.so.2.0.0 ${D}${libdir}/libteec.so.2 | ||
30 | ln -sf libteec.so.2.0.0 ${D}${libdir}/libteec.so | ||
31 | |||
32 | install -D -p -m0644 ${B}/export/usr/lib/libckteec.so.0.1.0 ${D}${libdir}/libckteec.so.0.1.0 | ||
33 | ln -sf libckteec.so.0.1.0 ${D}${libdir}/libckteec.so.0 | ||
34 | ln -sf libckteec.so.0.1.0 ${D}${libdir}/libckteec.so | ||
35 | 32 | ||
36 | install -D -p -m0755 ${B}/export/usr/sbin/tee-supplicant ${D}${bindir}/tee-supplicant | 33 | sed -i -e s:@sysconfdir@:${sysconfdir}:g \ |
34 | -e s:@sbindir@:${sbindir}:g \ | ||
35 | ${D}${systemd_system_unitdir}/tee-supplicant@.service \ | ||
36 | ${D}${sysconfdir}/init.d/tee-supplicant | ||
37 | } | ||
37 | 38 | ||
38 | cp -a ${B}/export/usr/include ${D}${includedir} | 39 | SYSTEMD_SERVICE:${PN} = "tee-supplicant@.service" |
39 | 40 | ||
40 | sed -i -e s:/etc:${sysconfdir}:g -e s:/usr/bin:${bindir}:g ${UNPACKDIR}/tee-supplicant.service | 41 | INITSCRIPT_PACKAGES = "${PN}" |
41 | install -D -p -m0644 ${UNPACKDIR}/tee-supplicant.service ${D}${systemd_system_unitdir}/tee-supplicant.service | 42 | INITSCRIPT_NAME:${PN} = "tee-supplicant" |
42 | } | 43 | INITSCRIPT_PARAMS:${PN} = "start 10 1 2 3 4 5 . stop 90 0 6 ." |