diff options
Diffstat (limited to 'recipes-security/optee-imx/optee-client-fslc.inc')
-rw-r--r-- | recipes-security/optee-imx/optee-client-fslc.inc | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/recipes-security/optee-imx/optee-client-fslc.inc b/recipes-security/optee-imx/optee-client-fslc.inc new file mode 100644 index 00000000..92f9f1d1 --- /dev/null +++ b/recipes-security/optee-imx/optee-client-fslc.inc | |||
@@ -0,0 +1,42 @@ | |||
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 = "file://tee-supplicant.service" | ||
9 | |||
10 | S = "${WORKDIR}/git" | ||
11 | B = "${WORKDIR}/build" | ||
12 | |||
13 | inherit python3native systemd features_check pkgconfig | ||
14 | |||
15 | DEPENDS = "util-linux-libuuid" | ||
16 | |||
17 | REQUIRED_MACHINE_FEATURES = "optee" | ||
18 | |||
19 | SYSTEMD_SERVICE:${PN} = "tee-supplicant.service" | ||
20 | |||
21 | EXTRA_OEMAKE = " \ | ||
22 | -C ${S} O=${B} \ | ||
23 | " | ||
24 | |||
25 | do_install () { | ||
26 | oe_runmake -C ${S} install | ||
27 | |||
28 | install -D -p -m0644 ${B}/export/usr/lib/libteec.so.1.0.0 ${D}${libdir}/libteec.so.1.0.0 | ||
29 | ln -sf libteec.so.1.0.0 ${D}${libdir}/libteec.so.1 | ||
30 | ln -sf libteec.so.1.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 | |||
36 | install -D -p -m0755 ${B}/export/usr/sbin/tee-supplicant ${D}${bindir}/tee-supplicant | ||
37 | |||
38 | cp -a ${B}/export/usr/include ${D}${includedir} | ||
39 | |||
40 | sed -i -e s:/etc:${sysconfdir}:g -e s:/usr/bin:${bindir}:g ${WORKDIR}/tee-supplicant.service | ||
41 | install -D -p -m0644 ${WORKDIR}/tee-supplicant.service ${D}${systemd_system_unitdir}/tee-supplicant.service | ||
42 | } | ||