diff options
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, 29 insertions, 30 deletions
diff --git a/recipes-security/optee-imx/optee-client-fslc.inc b/recipes-security/optee-imx/optee-client-fslc.inc index 92f9f1d1f..2c1a0f450 100644 --- a/recipes-security/optee-imx/optee-client-fslc.inc +++ b/recipes-security/optee-imx/optee-client-fslc.inc | |||
@@ -1,42 +1,41 @@ | |||
1 | # Copyright (C) 2017-2021 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 | |||
13 | inherit python3native systemd features_check pkgconfig | ||
14 | |||
15 | DEPENDS = "util-linux-libuuid" | ||
16 | |||
17 | REQUIRED_MACHINE_FEATURES = "optee" | ||
18 | 12 | ||
19 | SYSTEMD_SERVICE:${PN} = "tee-supplicant.service" | 13 | SRC_URI = " \ |
20 | 14 | git://github.com/OP-TEE/optee_client.git;branch=master;protocol=https \ | |
21 | EXTRA_OEMAKE = " \ | 15 | file://tee-supplicant@.service \ |
22 | -C ${S} O=${B} \ | 16 | file://tee-supplicant.sh \ |
23 | " | 17 | " |
24 | 18 | ||
25 | do_install () { | 19 | UPSTREAM_CHECK_GITTAGREGEX = "^(?P<pver>\d+(\.\d+)+)$" |
26 | oe_runmake -C ${S} install | ||
27 | 20 | ||
28 | install -D -p -m0644 ${B}/export/usr/lib/libteec.so.1.0.0 ${D}${libdir}/libteec.so.1.0.0 | 21 | EXTRA_OECMAKE = " \ |
29 | ln -sf libteec.so.1.0.0 ${D}${libdir}/libteec.so.1 | 22 | -DBUILD_SHARED_LIBS=ON \ |
30 | ln -sf libteec.so.1.0.0 ${D}${libdir}/libteec.so | 23 | -DCFG_TEE_FS_PARENT_PATH='${localstatedir}/lib/tee' \ |
24 | " | ||
25 | EXTRA_OECMAKE:append:toolchain-clang = " -DCFG_WERROR=0" | ||
31 | 26 | ||
32 | install -D -p -m0644 ${B}/export/usr/lib/libckteec.so.0.1.0 ${D}${libdir}/libckteec.so.0.1.0 | 27 | do_install:append() { |
33 | ln -sf libckteec.so.0.1.0 ${D}${libdir}/libckteec.so.0 | 28 | install -D -p -m0644 ${UNPACKDIR}/tee-supplicant@.service ${D}${systemd_system_unitdir}/tee-supplicant@.service |
34 | ln -sf libckteec.so.0.1.0 ${D}${libdir}/libckteec.so | 29 | install -D -p -m0755 ${UNPACKDIR}/tee-supplicant.sh ${D}${sysconfdir}/init.d/tee-supplicant |
35 | 30 | ||
36 | install -D -p -m0755 ${B}/export/usr/sbin/tee-supplicant ${D}${bindir}/tee-supplicant | 31 | sed -i -e s:@sysconfdir@:${sysconfdir}:g \ |
32 | -e s:@sbindir@:${sbindir}:g \ | ||
33 | ${D}${systemd_system_unitdir}/tee-supplicant@.service \ | ||
34 | ${D}${sysconfdir}/init.d/tee-supplicant | ||
35 | } | ||
37 | 36 | ||
38 | cp -a ${B}/export/usr/include ${D}${includedir} | 37 | SYSTEMD_SERVICE:${PN} = "tee-supplicant@.service" |
39 | 38 | ||
40 | sed -i -e s:/etc:${sysconfdir}:g -e s:/usr/bin:${bindir}:g ${WORKDIR}/tee-supplicant.service | 39 | INITSCRIPT_PACKAGES = "${PN}" |
41 | install -D -p -m0644 ${WORKDIR}/tee-supplicant.service ${D}${systemd_system_unitdir}/tee-supplicant.service | 40 | INITSCRIPT_NAME:${PN} = "tee-supplicant" |
42 | } | 41 | INITSCRIPT_PARAMS:${PN} = "start 10 1 2 3 4 5 . stop 90 0 6 ." |