diff options
Diffstat (limited to 'recipes-security/optee-imx/optee-client_3.10.0.imx.bb')
-rw-r--r-- | recipes-security/optee-imx/optee-client_3.10.0.imx.bb | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/recipes-security/optee-imx/optee-client_3.10.0.imx.bb b/recipes-security/optee-imx/optee-client_3.10.0.imx.bb new file mode 100644 index 00000000..58b6b8a4 --- /dev/null +++ b/recipes-security/optee-imx/optee-client_3.10.0.imx.bb | |||
@@ -0,0 +1,52 @@ | |||
1 | # Copyright (C) 2017-2020 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 | SRCBRANCH = "imx_5.4.70_2.3.0" | ||
9 | SRC_URI = " \ | ||
10 | git://source.codeaurora.org/external/imx/imx-optee-client.git;protocol=https;branch=${SRCBRANCH} \ | ||
11 | file://tee-supplicant.service \ | ||
12 | " | ||
13 | |||
14 | SRCREV = "2a77cf88d956c34cb4a1c191bea6113e327f5fe0" | ||
15 | |||
16 | S = "${WORKDIR}/git" | ||
17 | B = "${WORKDIR}/build" | ||
18 | |||
19 | inherit python3native systemd | ||
20 | |||
21 | SYSTEMD_SERVICE_${PN} = "tee-supplicant.service" | ||
22 | |||
23 | OPTEE_ARCH ?= "arm32" | ||
24 | OPTEE_ARCH_armv7a = "arm32" | ||
25 | OPTEE_ARCH_aarch64 = "arm64" | ||
26 | |||
27 | EXTRA_OEMAKE = "ARCH=${OPTEE_ARCH} O=${B}" | ||
28 | |||
29 | do_install () { | ||
30 | oe_runmake -C ${S} install | ||
31 | |||
32 | install -D -p -m0644 ${B}/export/usr/lib/libteec.so.1.0 ${D}${libdir}/libteec.so.1.0 | ||
33 | ln -sf libteec.so.1.0 ${D}${libdir}/libteec.so | ||
34 | ln -sf libteec.so.1.0 ${D}${libdir}/libteec.so.1 | ||
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}/usr/ | ||
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 | } | ||
43 | |||
44 | PACKAGES += "tee-supplicant" | ||
45 | FILES_${PN} += "${libdir}/* ${includedir}/*" | ||
46 | FILES_tee-supplicant += "${bindir}/tee-supplicant" | ||
47 | |||
48 | INSANE_SKIP_${PN} = "ldflags dev-elf" | ||
49 | INSANE_SKIP_${PN}-dev = "ldflags dev-elf" | ||
50 | INSANE_SKIP_tee-supplicant = "ldflags" | ||
51 | |||
52 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | ||