diff options
Diffstat (limited to 'recipes-security/optee-qoriq/optee-client.nxp.inc')
-rw-r--r-- | recipes-security/optee-qoriq/optee-client.nxp.inc | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/recipes-security/optee-qoriq/optee-client.nxp.inc b/recipes-security/optee-qoriq/optee-client.nxp.inc new file mode 100644 index 00000000..fa187e84 --- /dev/null +++ b/recipes-security/optee-qoriq/optee-client.nxp.inc | |||
@@ -0,0 +1,53 @@ | |||
1 | # Copyright 2020-2021 NXP | ||
2 | |||
3 | SUMMARY = "OPTEE Client libs" | ||
4 | HOMEPAGE = "http://www.optee.org/" | ||
5 | LICENSE = "BSD" | ||
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=69663ab153298557a59c67a60a743e5b" | ||
7 | |||
8 | inherit python3native systemd | ||
9 | |||
10 | SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/optee_client.git;nobranch=1" | ||
11 | SRCREV = "7c9c423d00e96bf51debd5fe10fd70dce83be5cc" | ||
12 | |||
13 | FILESEXTRAPATHS:prepend := "${THISDIR}/optee-client:" | ||
14 | SRC_URI += "file://tee-supplicant.service" | ||
15 | |||
16 | S = "${WORKDIR}/git" | ||
17 | B = "${WORKDIR}/build" | ||
18 | |||
19 | OPTEE_ARCH ?= "arm32" | ||
20 | OPTEE_ARCH:armv7a = "arm32" | ||
21 | OPTEE_ARCH:aarch64 = "arm64" | ||
22 | |||
23 | EXTRA_OEMAKE = "ARCH=${OPTEE_ARCH} O=${B}" | ||
24 | |||
25 | do_install () { | ||
26 | oe_runmake -C ${S} install | ||
27 | |||
28 | install -d ${D}${libdir}/ | ||
29 | install -p -m0644 ${B}/export${libdir}/libteec.so.1.0.0 ${D}${libdir}/ | ||
30 | ln -sf libteec.so.1.0.0 ${D}${libdir}/libteec.so.1.0 | ||
31 | ln -sf libteec.so.1.0.0 ${D}${libdir}/libteec.so.1 | ||
32 | ln -sf libteec.so.1 ${D}${libdir}/libteec.so | ||
33 | |||
34 | install -D -p -m0644 ${B}/export/usr/lib/libckteec.so.0.1.0 ${D}${libdir}/libckteec.so.0.1.0 | ||
35 | ln -sf libckteec.so.0.1.0 ${D}${libdir}/libckteec.so.0.1 | ||
36 | ln -sf libckteec.so.0.1.0 ${D}${libdir}/libckteec.so.0 | ||
37 | ln -sf libckteec.so.0.1.0 ${D}${libdir}/libckteec.so | ||
38 | |||
39 | install -D -p -m0755 ${B}/export/usr/sbin/tee-supplicant ${D}${bindir}/tee-supplicant | ||
40 | |||
41 | cp -a ${B}/export/usr/include ${D}${includedir} | ||
42 | |||
43 | install -d ${D}${systemd_system_unitdir}/ | ||
44 | install -m0644 ${WORKDIR}/tee-supplicant.service ${D}${systemd_system_unitdir}/ | ||
45 | sed -i -e s:/etc:${sysconfdir}:g -e s:/usr/bin:${bindir}:g ${D}${systemd_system_unitdir}/tee-supplicant.service | ||
46 | } | ||
47 | |||
48 | SYSTEMD_SERVICE:${PN} = "tee-supplicant.service" | ||
49 | |||
50 | FILES:${PN} += "${libdir}/* ${includedir}/*" | ||
51 | |||
52 | INSANE_SKIP:${PN} = "ldflags dev-elf" | ||
53 | INSANE_SKIP:${PN}-dev = "ldflags dev-elf" | ||