diff options
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 | 48 |
1 files changed, 48 insertions, 0 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 new file mode 100644 index 00000000..b0fb9178 --- /dev/null +++ b/recipes-security/optee-imx/optee-client_3.19.0.imx.bb | |||
@@ -0,0 +1,48 @@ | |||
1 | # Copyright (C) 2017-2021 NXP | ||
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" | ||
12 | 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)" | ||