diff options
author | Oleksandr Suvorov <oleksandr.suvorov@foundries.io> | 2023-05-01 18:34:20 +0300 |
---|---|---|
committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2023-05-02 15:56:42 +0000 |
commit | 54c30ad9f6bcf5a827c05f43b9e729ce2990d755 (patch) | |
tree | 50d459c95454426b66ccb0741f5e106a62ac0915 /recipes-security/optee-imx/optee-client_3.19.0.imx.bb | |
parent | 2cc4b5933bc895a460cdc436635832d516fb1cbb (diff) | |
download | meta-freescale-54c30ad9f6bcf5a827c05f43b9e729ce2990d755.tar.gz |
optee: restructure optee-client recipe
Add include files for optee-client.
The include files feature requirements that are specific to
optee/optee-client projects and i.MX platforms.
The recipe file with version number features the git branch and
commit hash.
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
(cherry picked from commit 5b1cce6b7020b954db045009b4956b7f71349bb2)
Diffstat (limited to 'recipes-security/optee-imx/optee-client_3.19.0.imx.bb')
-rw-r--r-- | recipes-security/optee-imx/optee-client_3.19.0.imx.bb | 46 |
1 files changed, 1 insertions, 45 deletions
diff --git a/recipes-security/optee-imx/optee-client_3.19.0.imx.bb b/recipes-security/optee-imx/optee-client_3.19.0.imx.bb index b0fb9178..40675e35 100644 --- a/recipes-security/optee-imx/optee-client_3.19.0.imx.bb +++ b/recipes-security/optee-imx/optee-client_3.19.0.imx.bb | |||
@@ -1,48 +1,4 @@ | |||
1 | # Copyright (C) 2017-2021 NXP | 1 | require optee-client-fslc-imx.inc |
2 | 2 | ||
3 | SUMMARY = "OPTEE Client libs" | ||
4 | HOMEPAGE = "http://www.optee.org/" | ||
5 | LICENSE = "BSD-2-Clause" | ||
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=69663ab153298557a59c67a60a743e5b" | ||
7 | |||
8 | SRC_URI = " \ | ||
9 | git://github.com/nxp-imx/imx-optee-client.git;protocol=https;branch=${SRCBRANCH} \ | ||
10 | file://tee-supplicant.service" | ||
11 | SRCBRANCH = "lf-5.15.71_2.2.0" | 3 | SRCBRANCH = "lf-5.15.71_2.2.0" |
12 | SRCREV = "644022f8970c832a40be00747fcec70c7b5d488c" | 4 | SRCREV = "644022f8970c832a40be00747fcec70c7b5d488c" |
13 | |||
14 | S = "${WORKDIR}/git" | ||
15 | B = "${WORKDIR}/build" | ||
16 | |||
17 | inherit python3native systemd features_check pkgconfig | ||
18 | |||
19 | DEPENDS = "util-linux-libuuid" | ||
20 | |||
21 | REQUIRED_MACHINE_FEATURES = "optee" | ||
22 | |||
23 | SYSTEMD_SERVICE:${PN} = "tee-supplicant.service" | ||
24 | |||
25 | EXTRA_OEMAKE = " \ | ||
26 | -C ${S} O=${B} \ | ||
27 | " | ||
28 | |||
29 | do_install () { | ||
30 | oe_runmake -C ${S} install | ||
31 | |||
32 | install -D -p -m0644 ${B}/export/usr/lib/libteec.so.1.0.0 ${D}${libdir}/libteec.so.1.0.0 | ||
33 | ln -sf libteec.so.1.0.0 ${D}${libdir}/libteec.so.1 | ||
34 | ln -sf libteec.so.1.0.0 ${D}${libdir}/libteec.so | ||
35 | |||
36 | install -D -p -m0644 ${B}/export/usr/lib/libckteec.so.0.1.0 ${D}${libdir}/libckteec.so.0.1.0 | ||
37 | ln -sf libckteec.so.0.1.0 ${D}${libdir}/libckteec.so.0 | ||
38 | ln -sf libckteec.so.0.1.0 ${D}${libdir}/libckteec.so | ||
39 | |||
40 | install -D -p -m0755 ${B}/export/usr/sbin/tee-supplicant ${D}${bindir}/tee-supplicant | ||
41 | |||
42 | cp -a ${B}/export/usr/include ${D}${includedir} | ||
43 | |||
44 | sed -i -e s:/etc:${sysconfdir}:g -e s:/usr/bin:${bindir}:g ${WORKDIR}/tee-supplicant.service | ||
45 | install -D -p -m0644 ${WORKDIR}/tee-supplicant.service ${D}${systemd_system_unitdir}/tee-supplicant.service | ||
46 | } | ||
47 | |||
48 | COMPATIBLE_MACHINE = "(imx-nxp-bsp)" | ||